:root {
    --ink: #10233f;
    --ink-soft: #536174;
    --cream: #f3efe6;
    --paper: #fffdf8;
    --orange: #d9673c;
    --orange-dark: #b94e29;
    --sage: #a6b6a4;
    --line: rgba(16, 35, 63, 0.14);
    --display: "Newsreader", Georgia, serif;
    --sans: "DM Sans", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.75;
}

body::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
    content: "";
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
    position: fixed;
    z-index: 10;
}

a {
    color: inherit;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--orange-dark);
}

.legal-header {
    background: linear-gradient(125deg, #10233f 0%, #172d4b 65%, #243f5b 100%);
    color: white;
    overflow: hidden;
    position: relative;
}

.legal-header::after {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    content: "";
    height: 430px;
    position: absolute;
    right: -120px;
    top: -230px;
    width: 430px;
}

.shell {
    margin: 0 auto;
    max-width: 1100px;
    padding-left: 32px;
    padding-right: 32px;
}

.legal-nav {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    justify-content: space-between;
    min-height: 86px;
}

.brand {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
}

.back-link {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.legal-hero {
    max-width: 760px;
    padding-bottom: 84px;
    padding-top: 84px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: #e99a7b;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

h1 {
    font-family: var(--display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

.legal-hero p:last-child {
    color: rgba(255, 255, 255, 0.68);
    margin-top: 24px;
}

.legal-layout {
    align-items: start;
    display: grid;
    gap: 70px;
    grid-template-columns: 220px minmax(0, 1fr);
    padding-bottom: 110px;
    padding-top: 80px;
}

.legal-toc {
    border-left: 2px solid var(--sage);
    display: grid;
    gap: 10px;
    padding-left: 20px;
    position: sticky;
    top: 30px;
}

.legal-toc strong {
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.legal-toc a {
    color: var(--ink-soft);
    font-size: 0.78rem;
    text-decoration: none;
}

.legal-document {
    background: var(--paper);
    border-top: 4px solid var(--orange);
    box-shadow: 18px 18px 0 rgba(16, 35, 63, 0.06);
    padding: clamp(30px, 6vw, 72px);
}

.effective-date {
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 42px;
    text-transform: uppercase;
}

.legal-section + .legal-section {
    border-top: 1px solid var(--line);
    margin-top: 42px;
    padding-top: 42px;
}

.section-number {
    color: var(--orange-dark);
    display: block;
    font-family: var(--display);
    font-size: 1rem;
    margin-bottom: 6px;
}

h2 {
    font-family: var(--display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 20px;
}

h3 {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    margin-top: 25px;
    text-transform: uppercase;
}

.legal-section p,
.legal-section li {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.legal-section p + p {
    margin-top: 16px;
}

.legal-section ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 0 22px;
}

.sms-protection {
    background: rgba(166, 182, 164, 0.16);
    border-left: 4px solid var(--sage);
    color: var(--ink) !important;
    font-weight: 700;
    margin-top: 24px !important;
    padding: 20px 22px;
}

.contact-block {
    background: var(--ink);
    color: white;
    display: grid;
    gap: 5px;
    margin-top: 22px;
    padding: 25px;
}

.contact-block p,
.contact-block a {
    color: rgba(255, 255, 255, 0.78);
}

.legal-footer {
    background: #0b1a30;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    padding: 34px 0;
}

.legal-footer .shell {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.legal-footer a {
    color: white;
}

@media (max-width: 760px) {
    .shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .legal-nav {
        min-height: 72px;
    }

    .legal-hero {
        padding-bottom: 62px;
        padding-top: 62px;
    }

    .legal-layout {
        gap: 35px;
        grid-template-columns: 1fr;
        padding-bottom: 70px;
        padding-top: 48px;
    }

    .legal-toc {
        position: static;
    }

    .legal-document {
        box-shadow: 9px 9px 0 rgba(16, 35, 63, 0.06);
    }

    .legal-footer .shell {
        flex-direction: column;
    }
}

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