.legal-page {
    --legal-ink: #121212;
    --legal-muted: #69655f;
    --legal-paper: #f7f5f0;
    --legal-card: #ffffff;
    --legal-line: rgba(18, 18, 18, .14);
    --legal-gold: #9a7435;
    overflow: clip;
    background: var(--legal-paper);
    color: var(--legal-ink);
    font-family: Inter, Arial, sans-serif;
}

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

.legal-hero {
    position: relative;
    display: grid;
    min-height: 420px;
    align-content: end;
    padding: clamp(5rem, 12vw, 9rem) max(1.25rem, calc((100vw - 1220px) / 2)) clamp(3.5rem, 7vw, 6rem);
    isolation: isolate;
    background:
        radial-gradient(circle at 82% 15%, rgba(184, 139, 74, .25), transparent 30%),
        linear-gradient(135deg, #080808 0%, #17130d 55%, #090909 100%);
    color: #fff;
}

.legal-hero::after {
    position: absolute;
    z-index: -1;
    right: -5rem;
    bottom: -11rem;
    width: min(45vw, 520px);
    height: min(45vw, 520px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255, 255, 255, .025), 0 0 0 90px rgba(255, 255, 255, .018);
    content: "";
}

.legal-eyebrow {
    margin: 0 0 1.1rem;
    color: #caa66d;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.legal-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3.2rem, 8vw, 7rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .88;
}

.premium-public .legal-hero h1 {
    font-family: Anton, Oswald, sans-serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: .95;
    text-transform: uppercase;
}

.legal-lead {
    max-width: 680px;
    margin: 1.75rem 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    line-height: 1.7;
}

.legal-date {
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, .45);
    font-size: .74rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    width: min(calc(100% - 2.5rem), 1220px);
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.legal-index {
    position: sticky;
    top: 7rem;
    display: grid;
    align-self: start;
    border-top: 1px solid var(--legal-line);
}

.legal-index span,
.legal-index a {
    border-bottom: 1px solid var(--legal-line);
    padding: .9rem 0;
}

.legal-index span {
    color: var(--legal-gold);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.legal-index a {
    color: var(--legal-muted);
    font-size: .73rem;
    text-decoration: none;
    transition: color .2s ease, padding .2s ease;
}

.legal-index a:hover,
.legal-index a:focus-visible {
    padding-left: .35rem;
    color: var(--legal-ink);
}

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

.legal-section {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.3rem);
    border-top: 1px solid var(--legal-line);
    padding: clamp(2rem, 5vw, 3.7rem) 0;
    scroll-margin-top: 7rem;
}

.legal-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.legal-section-number {
    color: var(--legal-gold);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.25rem;
}

.legal-section h2 {
    margin: 0 0 1.2rem;
    color: var(--legal-ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1;
}

.premium-public .legal-section h2 {
    font-family: Oswald, Inter, sans-serif;
    font-size: clamp(1.55rem, 3.5vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.legal-section p {
    margin: 0 0 1rem;
    color: var(--legal-muted);
    font-size: .94rem;
    line-height: 1.85;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section-highlight {
    position: relative;
    margin: 1rem -2rem;
    border-top: 0;
    padding: clamp(2rem, 5vw, 3.5rem) 2rem;
    background: #171510;
}

.legal-section-highlight::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #b88b4a;
    content: "";
}

.legal-section-highlight h2 {
    color: #fff;
}

.legal-section-highlight p {
    color: rgba(255, 255, 255, .66);
}

.legal-contact {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(480px, 1.25fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    padding: clamp(4rem, 9vw, 8rem) max(1.25rem, calc((100vw - 1220px) / 2));
    scroll-margin-top: 5rem;
    background: #0d0d0d;
    color: #fff;
}

.legal-contact-copy {
    align-self: start;
}

.legal-contact h2 {
    max-width: 520px;
    margin: 0;
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .95;
}

.premium-public .legal-contact h2 {
    font-family: Anton, Oswald, sans-serif;
    font-weight: 400;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.legal-contact-copy > p:not(.legal-eyebrow) {
    max-width: 470px;
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: .9rem;
    line-height: 1.75;
}

.legal-contact-copy .legal-contact-note {
    border-left: 2px solid #b88b4a;
    padding-left: 1rem;
    color: rgba(255, 255, 255, .78);
}

.legal-form-card {
    border: 1px solid rgba(255, 255, 255, .14);
    background: #151515;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.legal-form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.legal-field {
    display: grid;
    gap: .48rem;
    min-width: 0;
    margin: 0;
}

.legal-field-wide {
    grid-column: 1 / -1;
}

.legal-field > span {
    color: rgba(255, 255, 255, .7);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.legal-field > span small {
    color: rgba(255, 255, 255, .38);
    font-size: inherit;
    font-weight: 500;
}

.legal-form input,
.legal-form select,
.legal-form textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 0;
    outline: 0;
    background: #0d0d0d;
    color: #fff;
    padding: .8rem .9rem;
    font: inherit;
    font-size: .86rem;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.legal-form textarea {
    min-height: 155px;
    resize: vertical;
    line-height: 1.55;
}

.legal-form input:focus,
.legal-form select:focus,
.legal-form textarea:focus {
    border-color: #caa66d;
    box-shadow: 0 0 0 3px rgba(202, 166, 109, .11);
}

.legal-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: .7rem;
    color: rgba(255, 255, 255, .62);
    font-size: .74rem;
    line-height: 1.55;
}

.legal-consent input {
    width: 17px;
    min-height: 17px;
    margin: .12rem 0 0;
    accent-color: #b88b4a;
}

.legal-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 1.25rem;
}

.legal-submit small {
    max-width: 280px;
    color: rgba(255, 255, 255, .38);
    font-size: .65rem;
    line-height: 1.45;
}

.legal-submit button {
    min-height: 48px;
    border: 1px solid #caa66d;
    border-radius: 0;
    background: #caa66d;
    color: #111;
    padding: .8rem 1.3rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}

.legal-submit button:hover,
.legal-submit button:focus-visible {
    background: transparent;
    color: #e1bf8a;
}

.legal-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.legal-form .errorlist {
    margin: 0;
    padding: 0;
    color: #ff9b9f;
    font-size: .7rem;
    list-style: none;
}

.legal-form-errors,
.legal-message {
    margin: 0 0 1rem;
    border-left: 3px solid #ff9b9f;
    background: rgba(255, 107, 114, .08);
    color: #ffc2c5;
    padding: .8rem 1rem;
    font-size: .78rem;
    line-height: 1.5;
}

.legal-message-success {
    border-color: #79c995;
    background: rgba(121, 201, 149, .09);
    color: #aee6c1;
}

.terms-and-cond a,
.premium-footer .premium-terms-link,
.luxe-footer .luxe-terms-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(184, 139, 74, .7);
    text-underline-offset: .2em;
}

@media (max-width: 860px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

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

    .legal-index span {
        grid-column: 1 / -1;
    }

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

@media (max-width: 600px) {
    .legal-hero {
        min-height: 360px;
    }

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

    .legal-section {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .legal-section-highlight {
        margin-right: -.75rem;
        margin-left: -.75rem;
        padding-right: .75rem;
        padding-left: .75rem;
    }

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

    .legal-field-wide {
        grid-column: auto;
    }

    .legal-submit {
        display: grid;
    }

    .legal-submit button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-page *,
    .legal-page *::before,
    .legal-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
