:root {
    color-scheme: dark;
    --ink: #f4f0e8;
    --muted: rgba(244, 240, 232, .68);
    --background: #08091f;
    --panel: #11122e;
    --violet: #7048ff;
    --acid: #dfff22;
    --line: rgba(244, 240, 232, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at 85% 5%, rgba(112, 72, 255, .28), transparent 28rem),
        var(--background);
    color: var(--ink);
    font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration-color: var(--violet);
    text-decoration-thickness: 2px;
    text-underline-offset: .2em;
}

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

.legal-header,
main,
.legal-footer {
    width: min(1160px, calc(100% - 3rem));
    margin-inline: auto;
}

.legal-header {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--acid);
    box-shadow: 7px 7px 0 var(--violet);
    color: var(--background);
    font-size: 1.55rem;
    font-weight: 950;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: -.025em;
}

.brand-name span {
    color: var(--acid);
}

.contact-link {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
}

.legal-intro {
    max-width: 900px;
    padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}

.eyebrow,
.updated-at,
.section-number {
    color: var(--acid);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.legal-intro h1 {
    margin: .6rem 0 1.5rem;
    font-size: clamp(4.2rem, 12vw, 8.8rem);
    font-weight: 950;
    letter-spacing: -.075em;
    line-height: .78;
    text-transform: uppercase;
}

.legal-intro h1 span {
    color: var(--acid);
}

.intro-copy {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.updated-at {
    margin-top: 1.5rem;
    color: rgba(244, 240, 232, .45);
    letter-spacing: .07em;
}

.legal-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
    padding-bottom: 7rem;
}

.legal-summary {
    position: sticky;
    top: 2rem;
    display: grid;
    gap: .2rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    background: rgba(17, 18, 46, .82);
    box-shadow: 8px 8px 0 rgba(112, 72, 255, .4);
}

.legal-summary strong {
    margin-bottom: .8rem;
    color: var(--acid);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legal-summary a {
    padding: .45rem 0;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.legal-content {
    min-width: 0;
}

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

.legal-content h2 {
    margin: .45rem 0 1.25rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -.04em;
    line-height: 1;
}

.legal-content p,
.legal-content li,
address {
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.75;
}

.legal-content p {
    margin: 0 0 1rem;
}

.legal-content strong,
.legal-content dt {
    color: var(--ink);
}

.legal-content ul {
    display: grid;
    gap: .65rem;
    margin: 1.4rem 0;
    padding-left: 1.25rem;
}

.legal-content li::marker {
    color: var(--acid);
}

.identity-card {
    margin: 1.5rem 0 0;
    border: 1px solid var(--line);
    background: var(--panel);
}

.identity-card div {
    display: grid;
    grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr);
    gap: 1.25rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
}

.identity-card div:last-child {
    border-bottom: 0;
}

.identity-card dt,
.identity-card dd {
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
}

.identity-card dt {
    font-weight: 800;
}

.identity-card dd {
    color: var(--muted);
}

address {
    width: fit-content;
    padding: 1.3rem 1.5rem;
    border-left: 5px solid var(--acid);
    background: var(--panel);
    font-style: normal;
}

.legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-top: 1px solid var(--line);
    padding: 2rem 0 2.5rem;
    color: var(--muted);
    font-size: .78rem;
}

.legal-footer a {
    text-decoration: none;
}

@media (max-width: 780px) {
    .legal-header,
    main,
    .legal-footer {
        width: min(100% - 2rem, 1160px);
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-summary {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-summary strong {
        grid-column: 1 / -1;
    }

    .identity-card div {
        grid-template-columns: 1fr;
        gap: .3rem;
    }

    .legal-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .contact-link {
        display: none;
    }

    .legal-intro h1 {
        font-size: clamp(3.6rem, 20vw, 5.5rem);
    }

    .legal-summary {
        grid-template-columns: 1fr;
    }
}
