:root {
    color-scheme: dark;
    --page: #050a13;
    --page-soft: #08111f;
    --surface: #0d1828;
    --surface-strong: #111f32;
    --border: #26364b;
    --border-bright: #39506b;
    --text: #f4f8fc;
    --text-soft: #c8d4e3;
    --muted: #91a3b8;
    --brand: #39d6f2;
    --brand-strong: #74e8fa;
    --brand-deep: #168ef5;
    --focus: #f7c95c;
    --max-shell: 74rem;
    --max-reading: 48rem;
    --radius: 1.1rem;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    line-height: 1.65;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--page);
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    min-width: 18rem;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -10rem, rgba(22, 142, 245, 0.13), transparent 34rem),
        linear-gradient(180deg, var(--page-soft), var(--page) 32rem);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--brand-strong);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: #b9f7ff;
}

a:focus-visible {
    outline: 0.2rem solid var(--focus);
    outline-offset: 0.22rem;
    border-radius: 0.2rem;
}

.skip-link {
    position: fixed;
    z-index: 20;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 0.9rem;
    color: #07111e;
    background: var(--focus);
    font-weight: 800;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
.site-footer,
.shell {
    width: min(calc(100% - 2rem), var(--max-shell));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    font-size: 1.03rem;
    font-weight: 780;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.brand img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.65rem;
    padding: 0.55rem 0.8rem;
    color: var(--text-soft);
    border: 1px solid transparent;
    border-radius: 0.7rem;
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
    background: rgba(57, 214, 242, 0.08);
    border-color: var(--border-bright);
}

.shell {
    padding-block: clamp(3.25rem, 8vw, 6.5rem);
}

.hero,
.legal-header,
.legal-content,
.document-nav {
    width: min(100%, var(--max-reading));
    min-width: 0;
    margin-inline: auto;
}

.eyebrow {
    display: block;
    margin-bottom: 0.85rem;
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--text);
    line-height: 1.18;
    text-wrap: balance;
}

h1 {
    max-width: 16ch;
    margin-bottom: 1.2rem;
    font-size: clamp(2.35rem, 7vw, 4.65rem);
    letter-spacing: -0.045em;
}

.legal-header h1 {
    max-width: 19ch;
    font-size: clamp(2.15rem, 6vw, 3.8rem);
}

h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.38rem, 3vw, 1.75rem);
    letter-spacing: -0.018em;
}

h3 {
    margin-bottom: 0.65rem;
    font-size: 1.08rem;
}

p,
li,
td,
th {
    color: var(--text-soft);
    overflow-wrap: anywhere;
}

p {
    margin-block: 0 1rem;
}

.lede {
    max-width: 42rem;
    margin-bottom: 0;
    color: #dce7f3;
    font-size: clamp(1.08rem, 2.3vw, 1.28rem);
    line-height: 1.65;
}

.updated {
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: min(100%, var(--max-reading));
    margin: 3rem auto 0;
}

.document-card {
    display: flex;
    min-height: 14rem;
    flex-direction: column;
    padding: clamp(1.3rem, 4vw, 1.8rem);
    color: var(--text);
    background: linear-gradient(145deg, rgba(17, 31, 50, 0.95), rgba(10, 20, 34, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.2);
}

.document-card:hover {
    color: var(--text);
    border-color: #4b6886;
    background: linear-gradient(145deg, rgba(19, 37, 58, 0.98), rgba(10, 23, 39, 0.98));
}

.document-card h2 {
    margin-bottom: 0.65rem;
}

.document-card p {
    margin-bottom: 1.5rem;
}

.document-card .card-link {
    margin-top: auto;
    color: var(--brand-strong);
    font-weight: 760;
}

.document-nav {
    margin-top: 2.5rem;
    padding: 1.2rem 1.3rem;
    background: rgba(13, 24, 40, 0.76);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
}

.document-nav strong {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--text);
}

.document-nav ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1.75rem;
    margin: 0;
    padding-left: 1.3rem;
}

.document-nav a {
    font-size: 0.91rem;
}

.legal-content {
    margin-top: 3.5rem;
}

.legal-content section {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.legal-content section:first-child {
    margin-top: 0;
}

.legal-content ul {
    margin-block: 0.6rem 1.2rem;
    padding-left: 1.3rem;
}

.legal-content li + li {
    margin-top: 0.42rem;
}

.legal-content strong {
    color: var(--text);
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-block: 1rem 1.35rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
}

table {
    width: 100%;
    min-width: 38rem;
    border-collapse: collapse;
    background: rgba(10, 20, 34, 0.72);
    font-size: 0.91rem;
}

th,
td {
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--text);
    background: var(--surface-strong);
}

tr:last-child td {
    border-bottom: 0;
}

.notice {
    margin-block: 1.3rem;
    padding: 1rem 1.1rem;
    color: var(--text-soft);
    background: rgba(57, 214, 242, 0.07);
    border: 1px solid rgba(57, 214, 242, 0.28);
    border-left: 0.22rem solid var(--brand);
    border-radius: 0.65rem;
}

.back-row {
    width: min(100%, var(--max-reading));
    margin: 3rem auto 0;
}

.back-row a {
    font-weight: 700;
}

.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.8rem 2.4rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.87rem;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 44rem) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav a {
        min-height: 2.75rem;
        padding-inline: 0.65rem;
    }

    .shell {
        padding-top: 3.25rem;
    }

    .document-grid,
    .document-nav ol {
        grid-template-columns: 1fr;
    }

    .document-card {
        min-height: 12rem;
    }

    .site-footer {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media print {
    :root {
        color-scheme: light;
    }

    html,
    body {
        color: #111827;
        background: #ffffff;
    }

    .site-header,
    .site-footer,
    .document-nav,
    .back-row,
    .skip-link {
        display: none;
    }

    .shell,
    .legal-header,
    .legal-content {
        width: 100%;
        max-width: none;
        padding: 0;
        margin-inline: 0;
    }

    .legal-content {
        margin-top: 2rem;
    }

    h1,
    h2,
    h3,
    .legal-content strong,
    th {
        color: #111827;
    }

    p,
    li,
    td,
    .lede,
    .updated {
        color: #27364a;
    }

    a {
        color: #0f4c81;
    }

    .legal-content section {
        break-inside: avoid-page;
        border-color: #cbd5e1;
    }

    .table-wrap {
        overflow: visible;
        border-color: #cbd5e1;
    }

    table {
        min-width: 0;
        background: #ffffff;
        font-size: 8.5pt;
    }

    th {
        background: #eef2f7;
    }

    th,
    td {
        border-color: #cbd5e1;
    }
}
