:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0b0b12;
    color: #f7f4ff;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(126, 76, 255, 0.2), transparent 34rem),
        #0b0b12;
    color: #f7f4ff;
    line-height: 1.7;
}

a {
    color: #c9b8ff;
    text-underline-offset: 0.2em;
}

a:hover {
    color: #ffffff;
}

a:focus-visible {
    outline: 3px solid #b9a3ff;
    outline-offset: 4px;
    border-radius: 4px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(72rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0;
}

.brand {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.language-link {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.legal-document {
    width: min(72rem, calc(100% - 2rem));
    margin: 2rem auto 5rem;
}

.document-heading {
    max-width: 50rem;
    padding: 3rem 0 2.5rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: #b9a3ff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.effective-date {
    margin: 1.25rem 0 0;
    color: #aaa6b7;
}

.table-of-contents,
.document-sections section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    background: rgba(24, 23, 34, 0.86);
}

.table-of-contents {
    padding: clamp(1.25rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
}

.table-of-contents h2 {
    margin-top: 0;
}

.table-of-contents ol {
    columns: 2;
    gap: 3rem;
    margin: 0;
    padding-left: 1.4rem;
}

.table-of-contents li {
    break-inside: avoid;
    margin: 0.45rem 0;
}

.document-sections {
    display: grid;
    gap: 1rem;
}

.document-sections section {
    scroll-margin-top: 1rem;
    padding: clamp(1.25rem, 4vw, 2.25rem);
}

h2 {
    margin: 0 0 0.8rem;
    color: #ffffff;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    line-height: 1.3;
}

.document-sections h2 span {
    color: #9b7fff;
}

.document-sections p {
    max-width: 72ch;
    margin: 0;
    color: #d6d2df;
}

footer {
    width: min(72rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 3rem;
    color: #aaa6b7;
}

@media (max-width: 42rem) {
    .legal-document {
        margin-top: 0;
    }

    .document-heading {
        padding-top: 2rem;
    }

    .table-of-contents ol {
        columns: 1;
    }
}

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