:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #5d687c;
    --line: #dfe4ee;
    --surface: #ffffff;
    --page: #f3f5fb;
    --brand: #4f46e5;
    --brand-dark: #3730a3;
    --brand-soft: #eef2ff;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --warning: #8a4b08;
    --warning-soft: #fff8e8;
    --success: #176b45;
    --success-soft: #ecfdf3;
    --shadow: 0 18px 45px rgba(26, 35, 58, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--brand-dark);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--brand);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.3);
    outline-offset: 3px;
}

.site-header {
    background: #111827;
    color: #ffffff;
}

.site-header__inner,
.policy-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand__mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #6d5dfc, #4f46e5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    font-size: 0.83rem;
}

.environment-badge {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 5px 10px;
    color: #d6dcf0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.policy-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: start;
    padding: 42px 0 64px;
}

.policy-card,
.toc {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.policy-card {
    padding: clamp(26px, 5vw, 54px);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.25;
    letter-spacing: -0.025em;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
    scroll-margin-top: 24px;
    margin: 46px 0 14px;
    padding-top: 6px;
    font-size: 1.45rem;
}

h3 {
    margin: 24px 0 10px;
    font-size: 1.08rem;
}

.lede {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

p,
ul,
ol {
    margin-top: 0;
    margin-bottom: 14px;
}

ul,
ol {
    padding-left: 23px;
}

li + li {
    margin-top: 7px;
}

.notice {
    margin: 26px 0;
    padding: 18px 20px;
    border: 1px solid #cdd6ff;
    border-left: 5px solid var(--brand);
    border-radius: 12px;
    background: var(--brand-soft);
}

.notice--warning {
    border-color: #f2d594;
    border-left-color: #d98c13;
    background: var(--warning-soft);
    color: #633607;
}

.notice--danger {
    border-color: #fecaca;
    border-left-color: var(--danger);
    background: var(--danger-soft);
    color: #7a271a;
}

.notice--success {
    border-color: #abefc6;
    border-left-color: #039855;
    background: var(--success-soft);
    color: var(--success);
}

.notice p:last-child,
.notice ul:last-child {
    margin-bottom: 0;
}

.data-table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.data-table th,
.data-table td {
    padding: 13px 14px;
    border: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}

.data-table th {
    background: #f8f9fc;
    font-weight: 750;
}

.steps {
    counter-reset: policy-step;
    padding: 0;
    list-style: none;
}

.steps li {
    position: relative;
    min-height: 42px;
    padding: 4px 0 18px 52px;
}

.steps li::before {
    counter-increment: policy-step;
    content: counter(policy-step);
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    font-weight: 800;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 6px 0 10px;
    padding: 11px 18px;
    border-radius: 10px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
}

.action-link:hover {
    background: var(--brand-dark);
    color: #ffffff;
}

.contact-card {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8f9fc;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.toc {
    position: sticky;
    top: 20px;
    padding: 20px;
}

.toc h2 {
    margin: 0 0 12px;
    padding: 0;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc li + li {
    margin-top: 8px;
}

.toc a {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.toc a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.policy-footer {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.policy-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 12px;
}

@media (max-width: 860px) {
    .policy-shell {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

    .toc {
        display: none;
    }
}

@media (max-width: 620px) {
    .site-header__inner,
    .policy-shell {
        width: min(100% - 20px, 1120px);
    }

    .site-header__inner {
        min-height: 60px;
    }

    .policy-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .environment-badge {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table th,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr + tr {
        margin-top: 12px;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    .site-header,
    .toc {
        display: none;
    }

    .policy-shell {
        display: block;
        width: 100%;
        padding: 0;
    }

    .policy-card {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    a {
        color: inherit;
    }
}


