/* ============================================================
   Legal pages — Privacy Policy / Terms of Service
   ============================================================ */

.legal-page {
    background: #fff;
}

/* ── Hero ─────────────────────────────────────────────── */
.legal-hero {
    background: #000;
    color: #fff;
    padding: 9rem 0 4rem;
}
.legal-hero .container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.legal-hero__crumbs {
    font-family: Roboto, sans-serif;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}
.legal-hero__crumbs a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    transition: color .2s ease;
}
.legal-hero__crumbs a:hover { color: #fff; }
.legal-hero__crumbs span[aria-hidden] {
    color: rgba(255, 255, 255, .35);
}

.legal-hero__title {
    color: #fff;
    margin: 0;
}
.legal-hero__lede {
    font-family: Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
    max-width: 42rem;
    margin: 0;
}
.legal-hero__meta {
    margin-top: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    font-family: Roboto, sans-serif;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
    width: max-content;
}
.legal-hero__meta::before {
    content: "";
    width: .375rem;
    height: .375rem;
    border-radius: 50%;
    background: #fff;
}

/* ── Body layout ──────────────────────────────────────── */
.legal-body {
    padding: 4rem 0 6rem;
}
.legal-body .container {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
}
@media (max-width: 900px) {
    .legal-body .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ── Sidebar / TOC ────────────────────────────────────── */
.legal-toc {
    position: sticky;
    top: 6rem;
    align-self: start;
    padding: 1.25rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}
@media (max-width: 900px) {
    .legal-toc {
        position: static;
    }
}
.legal-toc__label {
    font-family: Roboto, sans-serif;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #767676;
    margin: 0 0 .75rem;
}
.legal-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .375rem;
}
.legal-toc__list li { margin: 0; }
.legal-toc__list a {
    display: block;
    padding: .25rem 0;
    font-family: Roboto, sans-serif;
    font-size: .8125rem;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
    border-left: 2px solid transparent;
    padding-left: .75rem;
    margin-left: -.75rem;
}
.legal-toc__list a:hover {
    color: #000;
    border-left-color: #000;
}
.legal-toc__list a.is-active {
    color: #000;
    border-left-color: #000;
    font-weight: 500;
}

/* ── Content typography ──────────────────────────────── */
.legal-content {
    font-family: Roboto, sans-serif;
    color: #1a1a1a;
    font-size: .9375rem;
    line-height: 1.75;
    max-width: 44rem;
}
.legal-content > *:first-child { margin-top: 0; }
.legal-content > *:last-child  { margin-bottom: 0; }

.legal-content h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.875rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.03em;
    text-transform: uppercase;
    color: #000;
    margin: 3rem 0 1rem;
    padding-top: 2rem;
    border-top: 1px solid #ececec;
    scroll-margin-top: 6rem;
}
.legal-content h2:first-child,
.legal-content > h2:first-of-type {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}
.legal-content h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: #000;
    margin: 2rem 0 .75rem;
}
.legal-content p {
    margin: 0 0 1.125rem;
}
.legal-content strong { color: #000; font-weight: 600; }
.legal-content em { font-style: italic; color: #444; }

.legal-content a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    transition: opacity .2s ease;
}
.legal-content a:hover { opacity: .6; }

.legal-content ul,
.legal-content ol {
    margin: 0 0 1.5rem;
    padding-left: 0;
    list-style: none;
}
.legal-content ul li,
.legal-content ol li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: .625rem;
}
.legal-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .75rem;
    width: .375rem;
    height: 1px;
    background: #000;
}
.legal-content ol {
    counter-reset: legal-ol;
}
.legal-content ol li {
    counter-increment: legal-ol;
}
.legal-content ol li::before {
    content: counter(legal-ol) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    color: #000;
}

.legal-content hr {
    border: none;
    border-top: 1px solid #ececec;
    margin: 2.5rem 0;
}

/* ── Footer note ──────────────────────────────────────── */
.legal-footer {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ececec;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
}
.legal-footer__note {
    font-family: Roboto, sans-serif;
    font-size: .8125rem;
    color: #767676;
    margin: 0;
    max-width: 32rem;
}
.legal-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-family: Roboto, sans-serif;
    font-size: .8125rem;
}
.legal-footer__links a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.legal-footer__links a:hover { border-bottom-color: #000; }

/* ── Mobile tweaks ────────────────────────────────────── */
@media (max-width: 600px) {
    .legal-hero { padding: 7rem 0 3rem; }
    .legal-body { padding: 2.5rem 0 4rem; }
    .legal-content h2 { font-size: 1.5rem; margin-top: 2.25rem; padding-top: 1.5rem; }
    .legal-content h3 { font-size: 1.125rem; }
}
