:root {
    --paper: #fffefa;
    --ink: #17141b;
    --muted: #77717b;
    --gold: #92752e;
    --line: rgba(23, 20, 27, 0.14);
    --champagne: #ded5c4;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,.72), transparent 36rem),
        var(--champagne);
    font-family: "Tenor Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.legal-stage {
    width: min(1280px, calc(100% - 4rem));
    margin: 1rem auto 3rem;
    background: var(--paper);
    box-shadow: 0 1.8rem 5rem rgba(57, 45, 25, .22);
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 8rem;
    padding: 1.5rem clamp(1.5rem, 5vw, 5rem);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 254, 250, .94);
    backdrop-filter: blur(18px);
}

.legal-brand,
.legal-footer > a:first-child {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.legal-brand strong,
.legal-footer strong {
    color: var(--gold);
    font-family: "Playfair Display", serif;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: .9;
}

.legal-brand span,
.legal-footer > a:first-child span {
    margin-top: .55rem;
    color: var(--gold);
    font-size: .58rem;
    letter-spacing: .45em;
    text-transform: uppercase;
}

.legal-back {
    font-size: .67rem;
    letter-spacing: .16em;
    text-decoration: none;
    text-transform: uppercase;
}

.legal-back span {
    margin-left: .75rem;
    color: var(--gold);
}

.legal-page {
    padding: 0 clamp(1.5rem, 6vw, 6.5rem) 7rem;
}

.legal-hero {
    position: relative;
    min-height: 31rem;
    padding: clamp(3.5rem, 8vw, 7rem) 0 3rem;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.legal-hero::after {
    position: absolute;
    right: -1rem;
    bottom: -4rem;
    content: "PRIVACY";
    color: rgba(146, 117, 46, .055);
    font-family: "Playfair Display", serif;
    font-size: clamp(7rem, 18vw, 15rem);
    line-height: .8;
    pointer-events: none;
}

.legal-hero > p,
.legal-number,
.legal-toc > span,
.legal-hero-meta {
    color: var(--muted);
    font-size: .66rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.legal-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 10ch;
    margin: 2.5rem 0 4rem;
    font-family: "Playfair Display", serif;
    font-size: clamp(4.5rem, 11vw, 9.5rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .78;
}

.legal-hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.legal-intro {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(18rem, 1.1fr);
    padding: clamp(3rem, 7vw, 6rem) 0;
    border-bottom: 1px solid var(--line);
}

.legal-intro p {
    grid-column: 2;
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.25;
}

.legal-content {
    display: grid;
    grid-template-columns: minmax(11rem, .55fr) minmax(0, 1.45fr);
    gap: clamp(3rem, 8vw, 8rem);
    padding-top: clamp(3rem, 7vw, 6rem);
}

.legal-toc {
    position: sticky;
    top: 10rem;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-toc > span {
    margin-bottom: 1rem;
    color: var(--gold);
}

.legal-toc a {
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.4;
    text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    color: var(--ink);
}

.legal-copy section {
    scroll-margin-top: 10rem;
    padding: 0 0 clamp(3.5rem, 7vw, 6rem);
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
    border-bottom: 1px solid var(--line);
}

.legal-copy h2 {
    margin: .8rem 0 2rem;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1;
}

.legal-copy h3 {
    margin: 2.25rem 0 .75rem;
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    font-weight: 400;
}

.legal-copy p,
.legal-copy address {
    max-width: 66ch;
    margin: 0 0 1.25rem;
    color: #514c55;
    font-size: .92rem;
    font-style: normal;
    line-height: 1.9;
}

.legal-copy address {
    padding: 1.4rem 0 1.4rem 1.5rem;
    border-left: 2px solid var(--gold);
}

.legal-cookie-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 2rem 0;
    background: var(--line);
    border: 1px solid var(--line);
}

.legal-cookie-list > div {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.5rem;
    background: var(--paper);
}

.legal-cookie-list strong {
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    font-weight: 400;
}

.legal-cookie-list span {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.6;
}

.legal-copy a {
    text-decoration-color: rgba(146, 117, 46, .55);
    text-underline-offset: .25em;
}

.legal-contact {
    border-bottom: 0 !important;
}

.legal-contact > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding: 1.3rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.15rem, 2.5vw, 1.8rem);
    text-decoration: none;
}

.legal-contact > a span {
    color: var(--gold);
}

.legal-contact .legal-address {
    margin-top: 4rem;
}

.legal-footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
    gap: 3rem;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 6.5rem);
    border-top: 1px solid var(--line);
}

.legal-footer > a:first-child {
    justify-self: start;
}

.legal-footer p,
.legal-footer > a:last-child {
    margin: 0;
    color: var(--muted);
    font-size: .77rem;
    line-height: 1.8;
}

.legal-footer-actions {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.legal-footer-actions a,
.legal-footer-actions button {
    color: var(--ink);
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: .77rem;
    cursor: pointer;
}

.legal-footer-actions a {
    text-underline-offset: .35em;
}

.legal-footer-actions button {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: .35em;
}

@media (max-width: 760px) {
    .legal-stage {
        width: calc(100% - 1.5rem);
        margin-top: .75rem;
    }

    .legal-header {
        min-height: 6.2rem;
        padding-inline: 1.1rem;
    }

    .legal-brand strong {
        font-size: 1.35rem;
    }

    .legal-brand span {
        font-size: .45rem;
    }

    .legal-back {
        font-size: .55rem;
    }

    .legal-page {
        padding-inline: 1.25rem;
        padding-bottom: 3rem;
    }

    .legal-hero {
        min-height: 26rem;
    }

    .legal-hero h1 {
        margin-top: 3.5rem;
        font-size: clamp(4rem, 20vw, 5.8rem);
    }

    .legal-hero-meta,
    .legal-intro,
    .legal-content,
    .legal-footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal-hero-meta {
        display: grid;
        gap: .7rem;
    }

    .legal-intro p {
        grid-column: 1;
    }

    .legal-toc {
        position: static;
        display: none;
    }

    .legal-copy h2 {
        font-size: clamp(2.25rem, 12vw, 3.4rem);
    }

    .legal-cookie-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal-footer {
        gap: 2.5rem;
        padding-inline: 1.25rem;
    }

    .legal-footer-actions {
        justify-self: start;
        align-items: flex-start;
    }
}

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