/*
 * Sitch - shared design system
 * Warm ivory surfaces, deep slate structure, a single terracotta accent,
 * and braided "filament" lines as the signature motif.
 */

:root {
    /* Surfaces */
    --ivory: #F5EEE6;
    --ivory-deep: #EDE2D5;
    --paper: #FCFAF7;
    --sand: #E7D6C6;
    --sage: #DDE6DB;
    --sage-deep: #B9CBB8;
    --blue-tint: #E3E9F0;
    --terra-tint: #F6E3D7;

    /* Ink */
    --ink: #2A211D;
    --ink-soft: #5B4F49;
    --ink-muted: #675A53;
    --sage-ink: #4E6352;

    /* Structure */
    --slate: #46536B;
    --slate-deep: #343F53;
    --slate-ink: #232B39;
    --mist: #CBD5E1;
    --mist-strong: #DCE3EC;

    /* Accent */
    --terracotta: #B06A48;
    --accent: #A65B3A;
    --accent-hover: #8E4B2E;
    --accent-ink: #9A5434;
    --terra-light: #E6A887;

    /* Lines */
    --line: #E2D2C4;
    --line-soft: rgba(70, 83, 107, 0.14);
    --line-dark: rgba(203, 213, 225, 0.22);

    /* Filaments */
    --fil-slate: #7183A0;
    --fil-terra: #D08A64;
    --fil-sage: #9DB8A2;
    --fil-node: #FFF4E8;

    /* Type */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --fs-body: 1.0625rem;
    --fs-small: 0.9375rem;
    --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    --fs-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
    --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
    --fs-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);

    /* Shape */
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(42, 33, 29, 0.06), 0 2px 8px rgba(42, 33, 29, 0.05);
    --shadow: 0 14px 34px -14px rgba(52, 63, 83, 0.24), 0 2px 6px rgba(42, 33, 29, 0.05);
    --shadow-lg: 0 30px 60px -24px rgba(52, 63, 83, 0.36);
    --glow-terra: 0 0 0 1px rgba(176, 106, 72, 0.5), 0 0 22px rgba(230, 168, 135, 0.55);

    /* Layout */
    --container: 1200px;
    --gutter: clamp(16px, 5vw, 40px);
    --section-y: clamp(64px, 9vw, 120px);
    --header-h: 68px;

    --focus: #1E5F7C;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============================================
   OVERFLOW PREVENTION - Safety Net
   ============================================ */

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

img, video, iframe, embed, object, svg {
    max-width: 100%;
    height: auto;
}

[class*="grid"] > *,
[class*="flex"] > * {
    min-width: 0;
}

pre, code, .code-block, [class*="code"] {
    max-width: 100%;
    overflow-x: auto;
}

pre code,
.code-block code {
    display: block;
    min-width: 0;
}

.table-wrapper,
[class*="table-"] {
    max-width: 100%;
    overflow-x: auto;
}

p, li, td, th {
    overflow-wrap: break-word;
}

details {
    height: fit-content;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article)
  a:not([class]) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

input, textarea, select {
    max-width: 100%;
}

section {
    overflow: clip;
}

/* ============================================
   BASE
   ============================================ */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-bottom, 72px) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.012em;
    margin: 0 0 0.5em;
    color: inherit;
    font-optical-sizing: auto;
}

h1 { font-size: var(--fs-h1); line-height: 1.06; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

p {
    margin: 0 0 1em;
}

a {
    color: var(--accent-ink);
    text-underline-offset: 0.15em;
}

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

img {
    display: block;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 6px;
}

main:focus {
    outline: none;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--slate-deep);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 12px;
    color: #FFFFFF;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   LAYOUT PRIMITIVES
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: var(--section-y);
}

.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--sage { background: var(--sage); }

.section--slate {
    background: var(--slate);
    color: #F5EEE6;
    --focus: #F3C3A0;
}

.section--slate a { color: #F3C9AE; }

.section-head {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.section--slate .eyebrow { color: #F0BFA1; }

.lead {
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--ink-soft);
}

.section--slate .lead { color: var(--mist); }

.text-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 26px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.005em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}

.btn:focus-visible {
    border-radius: var(--radius-pill);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 8px 20px -10px rgba(166, 91, 58, 0.7);
}

.btn--primary:hover {
    background: var(--accent-hover);
    color: #FFFFFF;
}

.btn--glow {
    background: #FBF5EE;
    color: var(--ink);
    border-color: rgba(208, 138, 100, 0.85);
    box-shadow: var(--glow-terra);
}

.btn--glow:hover {
    background: #FFFFFF;
    color: var(--ink);
    box-shadow: 0 0 0 1px rgba(176, 106, 72, 0.7), 0 0 30px rgba(230, 168, 135, 0.75);
}

.btn--ghost {
    background: transparent;
    color: currentColor;
    border-color: currentColor;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn--lg {
    min-height: 56px;
    padding: 0 34px;
    font-size: 1.0625rem;
}

.btn__icon {
    flex: none;
    transition: transform 0.2s var(--ease);
}

.btn:hover .btn__icon { transform: translateX(3px); }

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 8px 24px 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    background: var(--slate-ink);
    color: #F5EEE6;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 24px -14px rgba(35, 43, 57, 0.8);
    transition: background-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}

.store-btn:hover {
    background: var(--slate-deep);
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(208, 138, 100, 0.6), 0 0 22px rgba(230, 168, 135, 0.45);
}

.store-btn:focus-visible { border-radius: var(--radius-pill); }

.store-btn__glyph {
    flex: none;
}

.store-btn__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.store-btn__small {
    font-size: 0.875rem;
    color: var(--mist-strong);
}

.store-btn__big {
    font-size: 1.0625rem;
    font-weight: 600;
}

/* ============================================
   FILAMENTS (signature motif)
   ============================================ */

.filaments {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

path.fil {
    fill: none;
    stroke-linecap: round;
}

.filaments__glow path.fil {
    stroke-width: 9;
    stroke-opacity: 0.13;
}

.filaments__core path.fil {
    stroke-width: 1.8;
    stroke-opacity: 0.85;
}

.fil--slate { stroke: var(--fil-slate); fill: var(--fil-slate); }
.fil--terra { stroke: var(--fil-terra); fill: var(--fil-terra); }
.fil--sage { stroke: var(--fil-sage); fill: var(--fil-sage); }

.fil-halo {
    stroke: none;
    opacity: 0.28;
}

.fil-dot {
    fill: var(--fil-node);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ivory);
    border-bottom: 1px solid transparent;
    overflow-x: clip;
    transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px -18px rgba(52, 63, 83, 0.45);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-h);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--terracotta);
    text-decoration: none;
    flex: none;
}

.site-brand:hover { color: var(--accent-hover); }

.site-brand__mark {
    width: 26px;
    height: auto;
    flex: none;
}

.site-brand__text {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.header-actions .header-cta {
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.9375rem;
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
}

.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.site-nav {
    position: fixed;
    top: var(--header-bottom, var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 49;
    padding: 12px var(--gutter) 32px;
    background: var(--ivory);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list li {
    border-bottom: 1px solid var(--line);
}

.site-nav__link {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 4px;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
    color: var(--accent-ink);
}

.site-nav__note {
    margin: 24px 4px 0;
    font-size: var(--fs-small);
    color: var(--ink-muted);
}

@media (min-width: 1024px) {
    :root {
        --header-h: 88px;
    }

    .site-header__inner {
        gap: 24px;
    }

    .site-brand__mark { width: 30px; }

    .site-brand__text {
        font-size: 2.5rem;
    }

    .menu-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        padding: 0;
        background: transparent;
        border: 0;
        overflow: visible;
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .site-nav__list {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .site-nav__list li {
        border: 0;
    }

    .site-nav__link {
        min-height: 44px;
        padding: 0 12px;
        border-radius: var(--radius-pill);
        font-family: var(--font-body);
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--ink-soft);
        transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
    }

    .site-nav__link:hover {
        background: var(--ivory-deep);
        color: var(--ink);
    }

    .site-nav__link[aria-current="page"] {
        background: var(--slate);
        color: #F5EEE6;
    }

    .site-nav__note {
        display: none;
    }

    .header-actions {
        align-self: stretch;
        z-index: 0;
        padding-left: clamp(24px, 3vw, 56px);
        --focus: #F3C3A0;
    }

    .header-actions::before {
        content: "";
        position: absolute;
        inset: 0 -100vw 0 0;
        background: var(--slate);
        z-index: -1;
    }

    .header-actions .header-cta {
        min-height: 48px;
        padding: 0 32px;
        font-size: 1rem;
    }
}

@media (min-width: 1280px) {
    .site-nav__list { gap: 8px; }
    .site-nav__link { padding: 0 16px; }
}

/* ============================================
   MATCH CARD
   ============================================ */

.match-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(70, 83, 107, 0.12);
    border-radius: 26px;
    background: var(--paper);
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.match-card__media {
    position: relative;
    aspect-ratio: 9 / 11;
    background: var(--ivory-deep);
}

.match-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.match-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--ink-soft);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.match-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.match-card__title {
    margin-bottom: 4px;
    font-size: 1.25rem;
}

.match-card__age {
    margin-bottom: 14px;
    font-size: var(--fs-small);
    color: var(--ink-muted);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.chip {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--ivory-deep);
    color: var(--ink);
    font-size: 0.875rem;
    line-height: 1.3;
}

.match-card__why {
    margin-top: auto;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--sage);
}

.match-card__why-label {
    margin: 0 0 4px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage-ink);
}

.match-card__why-text {
    margin: 0;
    font-size: var(--fs-small);
    line-height: 1.55;
    color: var(--ink);
}

/* ============================================
   STEPS
   ============================================ */

.steps {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.step__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 1.5px solid rgba(230, 168, 135, 0.75);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #5A6884, var(--slate-deep));
    color: #FBEFE6;
    box-shadow: 0 0 0 6px rgba(70, 83, 107, 0.6), 0 0 26px rgba(230, 168, 135, 0.35);
}

.step__num {
    margin: 0 0 2px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--mist);
}

.step__title {
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 1.1875rem;
    font-weight: 600;
    color: #FBF5EE;
}

.step__text {
    margin: 0;
    color: var(--mist);
}

@media (min-width: 1024px) {
    .steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px;
    }

    .step {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 22px;
    }

    .step__icon {
        width: 96px;
        height: 96px;
    }
}

/* ============================================
   FEATURES
   ============================================ */

.feature {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--terra-tint);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(176, 106, 72, 0.18);
}

.feature__title {
    margin: 4px 0 6px;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
}

.feature__text {
    margin: 0;
    color: var(--ink-soft);
}

/* ============================================
   FAQ (native details)
   ============================================ */

.faq-list {
    display: grid;
    align-items: start;
    gap: 12px;
}

.faq-item {
    align-self: start;
    border: 1px solid #D9C3B0;
    border-radius: 24px;
    background: #F3E7DA;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.faq-item[open] {
    background: var(--paper);
    border-color: #C9D3DF;
    box-shadow: var(--shadow-sm);
}

.faq-item__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 14px 20px 14px 24px;
    list-style: none;
    cursor: pointer;
    border-radius: 24px;
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item__summary::marker {
    content: "";
}

.faq-item__summary:focus-visible {
    border-radius: 24px;
    outline-offset: 2px;
}

.faq-item__question {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
}

.faq-item__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--slate);
    transition: transform 0.25s var(--ease), background-color 0.2s var(--ease);
}

.faq-item[open] .faq-item__icon {
    transform: rotate(180deg);
    background: var(--blue-tint);
}

.faq-item__answer {
    padding: 0 24px 20px;
    color: var(--ink-soft);
}

.faq-item__answer > :last-child {
    margin-bottom: 0;
}

.faq-item__answer a {
    color: var(--accent-ink);
    text-decoration: underline;
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(48px, 7vw, 96px);
}

.legal-hero--dark {
    background:
        radial-gradient(60% 80% at 80% 50%, rgba(230, 168, 135, 0.18), transparent 70%),
        var(--slate);
    color: #F5EEE6;
    --focus: #F3C3A0;
}

.legal-hero--sage {
    background:
        radial-gradient(60% 80% at 80% 50%, rgba(255, 255, 255, 0.55), transparent 70%),
        var(--sage);
    color: var(--ink);
}

.legal-hero__threads {
    opacity: 0.55;
}

.legal-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 32px;
    align-items: center;
}

.legal-hero__title {
    max-width: 18ch;
    margin-bottom: 18px;
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}

.legal-hero__intro {
    max-width: 62ch;
    font-size: var(--fs-lead);
    line-height: 1.6;
}

.legal-hero--dark .legal-hero__intro { color: var(--mist-strong); }
.legal-hero--sage .legal-hero__intro { color: var(--ink-soft); }

.legal-hero__updated {
    display: inline-flex;
    align-items: center;
    margin: 4px 0 0;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    font-weight: 500;
}

.legal-hero--dark .legal-hero__updated {
    background: var(--slate-deep);
    color: #F5EEE6;
}

.legal-hero--sage .legal-hero__updated {
    background: var(--paper);
    color: var(--ink);
}

.legal-hero__emblem {
    width: min(200px, 52vw);
    justify-self: end;
}

.legal-hero__emblem svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .legal-hero__inner {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }

    .legal-hero__emblem {
        width: 100%;
        max-width: 320px;
        justify-self: center;
    }
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: var(--fs-small);
}

.breadcrumb__list li + li::before {
    content: "/";
    margin-right: 6px;
}

.breadcrumb__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.legal-hero--dark .breadcrumb__list { color: var(--mist-strong); }
.legal-hero--sage .breadcrumb__list { color: var(--ink-soft); }

.legal-body {
    padding-block: clamp(40px, 6vw, 80px);
    background: var(--ivory);
}

.legal-layout {
    display: grid;
    gap: 28px;
    align-items: start;
}

.legal-toc {
    min-width: 0;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--sage);
}

.legal-toc__title {
    margin: 0 0 10px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage-ink);
}

.legal-toc__list {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 2px 2px 8px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.legal-toc__list li {
    flex: none;
    scroll-snap-align: start;
}

.legal-toc__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--ink);
    font-size: var(--fs-small);
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.legal-toc__link:hover {
    background: #FFFFFF;
    color: var(--accent-ink);
}

.legal-article {
    min-width: 0;
    padding: clamp(24px, 5vw, 64px);
    border: 1px solid rgba(70, 83, 107, 0.08);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 1024px) {
    .legal-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 48px;
    }

    .legal-toc {
        position: sticky;
        top: calc(var(--header-bottom, 88px) + 24px);
        padding: 24px 16px;
    }

    .legal-toc__title {
        padding-inline: 8px;
    }

    .legal-toc__list {
        flex-direction: column;
        gap: 2px;
        padding: 0;
        overflow: visible;
    }

    .legal-toc__link {
        width: 100%;
        padding: 0 10px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        white-space: normal;
        line-height: 1.35;
    }

    .legal-toc__link:hover {
        background: var(--paper);
    }
}

/* Prose */
.prose {
    font-size: var(--fs-body);
    line-height: 1.75;
    color: var(--ink);
}

.prose p,
.prose li {
    max-width: 72ch;
}

.prose h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
    margin-bottom: 0.6em;
}

.prose h3 {
    margin: 1.75em 0 0.5em;
    font-size: 1.25rem;
}

.prose ul,
.prose ol {
    margin: 0 0 1.25em;
    padding-left: 1.3rem;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose li::marker {
    color: var(--terracotta);
}

.prose a:not([class]) {
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.prose strong {
    font-weight: 600;
}

.legal-section {
    padding-block: 2.25rem;
    border-top: 1px solid var(--line);
}

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

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

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

.legal-panel {
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
    padding: clamp(20px, 4vw, 32px);
    border-radius: 24px;
}

.legal-panel > :last-child { margin-bottom: 0; }

.legal-panel--sage {
    background: var(--sage);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.45);
}

.legal-panel--terra {
    background: var(--terra-tint);
    border: 1px solid rgba(176, 106, 72, 0.22);
}

.legal-panel--slate {
    background: var(--slate);
    color: #F5EEE6;
    --focus: #F3C3A0;
}

.legal-panel--slate a:not([class]) { color: #F3C9AE; }
.legal-panel--slate li::marker { color: var(--terra-light); }

.list-columns {
    columns: 1;
}

.list-columns li {
    break-inside: avoid;
}

@media (min-width: 1024px) {
    .list-columns {
        columns: 2;
        column-gap: 40px;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--slate);
    color: var(--mist-strong);
    --focus: #F3C3A0;
}

.site-footer__threads {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(720px, 100%);
    height: 85%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.site-footer__inner {
    position: relative;
    padding-block: clamp(56px, 7vw, 88px) 32px;
}

.site-footer__grid {
    display: grid;
    gap: 36px;
}

.footer-brand__logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 12px;
    color: var(--terra-light);
    text-decoration: none;
}

.footer-brand__text {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.footer-brand__desc {
    max-width: 36ch;
    color: var(--mist-strong);
}

.footer-brand__note {
    margin: 0;
    font-size: var(--fs-small);
    color: var(--mist);
}

.footer-col__title {
    margin: 0 0 10px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #F0BFA1;
}

.footer-col__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #EEF2F6;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.footer-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.footer-col__text {
    max-width: 30ch;
    font-size: var(--fs-small);
    color: var(--mist-strong);
}

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
    font-size: var(--fs-small);
    color: var(--mist);
}

.site-footer__bottom p {
    margin: 0;
}

@media (min-width: 640px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 40px;
    }

    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   HOME - SHARED
   ============================================ */

:root {
    --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.section-cta {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-top: clamp(36px, 5vw, 56px);
}

.section-cta--start {
    justify-content: flex-start;
}

/* ============================================
   HOME - HERO
   ============================================ */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    background: var(--slate-deep);
    color: #F5EEE6;
    --focus: #F3C3A0;
}

.hero__bg {
    position: relative;
    order: 2;
    height: clamp(300px, 82vw, 480px);
    background-color: var(--slate);
    background-image: url("./assets/6bf55c687c65008f00fb4d772451accf.webp");
    background-size: cover;
    background-position: 80% 30%;
    background-repeat: no-repeat;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--slate-deep) 0%, rgba(52, 63, 83, 0) 38%);
}

.hero__threads {
    display: none;
}

.hero__nodes {
    filter: blur(1.2px);
}

.hero__inner {
    position: relative;
    z-index: 2;
    order: 1;
    padding-block: 44px 28px;
}

.hero__copy {
    max-width: 600px;
}

.hero .eyebrow {
    color: #F0BFA1;
}

.hero__title {
    max-width: 14ch;
    margin-bottom: 20px;
    color: #FBF5EE;
}

.hero__lead {
    max-width: 54ch;
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--mist-strong);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 22px;
}

.hero .btn--ghost {
    color: #F5EEE6;
    border-color: rgba(245, 238, 230, 0.7);
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-small);
    color: var(--mist-strong);
}

.hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero__meta .icon {
    color: var(--terra-light);
}

@media (max-width: 479px) {
    .hero__actions .btn {
        flex: 1 1 100%;
    }
}

@media (min-width: 1024px) {
    .hero {
        display: block;
        min-height: clamp(600px, calc(100vh - var(--header-h)), 780px);
    }

    .hero__bg {
        position: absolute;
        inset: 0;
        height: auto;
        background-position: 72% center;
    }

    .hero__bg::after {
        background: linear-gradient(90deg, rgba(52, 63, 83, 0.94) 0%, rgba(52, 63, 83, 0.84) 30%, rgba(52, 63, 83, 0.38) 52%, rgba(52, 63, 83, 0) 68%);
    }

    .hero__threads {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        opacity: 0.75;
    }

    .hero__inner {
        display: flex;
        align-items: center;
        min-height: inherit;
        padding-block: 96px;
    }
}

/* ============================================
   HOME - APPROACH
   ============================================ */

.approach__grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.point-list {
    display: grid;
    gap: 14px;
    margin: 8px 0 32px;
    padding: 0;
    list-style: none;
}

.point-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: var(--ink-soft);
}

.point-list strong {
    color: var(--ink);
    font-weight: 600;
}

.point-list__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--terra-tint);
    color: var(--accent);
}

.compare {
    margin: 0;
}

.compare svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.compare__captions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--ink);
}

@media (min-width: 1024px) {
    .approach__grid {
        grid-template-columns: 42fr 58fr;
        gap: 56px;
    }
}

/* ============================================
   HOME - MATCHES
   ============================================ */

.matches__notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--terra-tint);
    color: var(--ink);
    font-size: var(--fs-small);
    font-weight: 500;
    text-align: left;
}

.matches__notice .icon {
    flex: none;
    color: var(--accent);
}

.matches__stage {
    position: relative;
}

.matches__route {
    display: none;
}

.matches__route .fil-halo {
    opacity: 0.2;
}

.matches__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    max-width: 460px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .matches__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        max-width: none;
    }

    .matches__route {
        display: block;
        position: absolute;
        top: 14%;
        left: -4%;
        width: 108%;
        height: auto;
        pointer-events: none;
        z-index: 0;
    }

    .matches .match-card__body {
        padding: 18px 16px 20px;
    }
}

@media (min-width: 1024px) {
    .matches__grid {
        gap: 28px;
        padding-top: 28px;
    }

    .matches__grid > li:nth-child(2) {
        transform: translateY(-28px);
    }

    .matches .match-card__body {
        padding: 22px 22px 24px;
    }
}

/* ============================================
   HOME - HOW IT WORKS
   ============================================ */

.how__track {
    position: relative;
}

.how__conduit {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.how__conduit--v {
    top: 0;
    left: 0;
    width: 68px;
    height: 100%;
}

.how__conduit--h {
    display: none;
}

@media (min-width: 1024px) {
    .how__conduit--v {
        display: none;
    }

    .how__conduit--h {
        display: block;
        top: 0;
        left: -10vw;
        width: calc(100% + 20vw);
        height: 96px;
    }
}

/* ============================================
   HOME - FEATURES
   ============================================ */

.features__grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

.feature-grid {
    display: grid;
    gap: 28px 36px;
}

.features__emblem {
    width: min(340px, 80%);
    margin-inline: auto;
}

.features__emblem svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .features__grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 64px;
    }

    .features__emblem {
        width: 100%;
        max-width: 420px;
    }
}

/* ============================================
   HOME - TRUST
   ============================================ */

.trust {
    padding-top: 0;
}

.trust-panel {
    position: relative;
    display: grid;
    gap: 28px;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 32px;
    background: var(--sage);
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.trust-panel__shield {
    width: min(200px, 56%);
}

.trust-panel__shield svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.trust-panel .eyebrow {
    color: var(--sage-ink);
}

.trust-panel__lead {
    max-width: 62ch;
    font-size: var(--fs-lead);
    color: var(--ink-soft);
}

.trust-cols {
    display: grid;
    gap: 22px 36px;
    margin: 28px 0 32px;
}

.trust-item__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
}

.trust-item__title .icon {
    flex: none;
    color: var(--accent);
}

.trust-item p {
    margin: 0;
    color: var(--ink-soft);
}

.trust-panel__link {
    color: var(--ink);
}

.trust-panel__link:hover {
    color: var(--ink);
    background: var(--paper);
}

@media (min-width: 768px) {
    .trust-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .trust-panel {
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr);
        gap: 56px;
        align-items: center;
    }

    .trust-panel__shield {
        width: 100%;
        max-width: 300px;
        justify-self: center;
    }
}

/* ============================================
   HOME - EMOTION + APP (interlocking split)
   ============================================ */

.duo {
    position: relative;
    background: var(--ivory);
}

.duo__threads {
    display: none;
}

.duo__grid {
    display: grid;
}

.emotion {
    padding: var(--section-y) var(--gutter);
    background: var(--ivory);
}

.emotion__copy {
    max-width: 620px;
}

.emotion__media {
    margin: 32px 0 0;
}

.emotion__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 40%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.appdl {
    padding: var(--section-y) var(--gutter);
    background: linear-gradient(160deg, var(--sage) 0%, var(--blue-tint) 100%);
}

.appdl__inner {
    display: grid;
    gap: 40px;
    align-items: center;
}

.appdl__copy {
    order: -1;
}

.appdl .eyebrow {
    color: var(--sage-ink);
}

.appdl__copy p {
    color: var(--ink-soft);
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 18px;
}

.store-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--paper);
    font-size: var(--fs-small);
    line-height: 1.5;
}

.appdl__copy .store-note {
    color: var(--ink);
}

.store-note .icon {
    flex: none;
    margin-top: 2px;
    color: var(--slate);
}

/* Phone mockup */
.phone {
    position: relative;
    width: min(250px, 72vw);
    margin: 0 auto;
    padding: 10px;
    border-radius: 42px;
    background: var(--slate-ink);
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #3A4558;
}

.phone__screen {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 480px;
    padding: 12px 14px 16px;
    border-radius: 33px;
    background: var(--paper);
    color: var(--ink);
    text-align: center;
}

.phone__notch {
    display: block;
    width: 80px;
    height: 22px;
    margin: 0 auto 2px;
    border-radius: var(--radius-pill);
    background: var(--slate-ink);
}

.phone__label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.phone__avatar {
    width: 116px;
    height: 116px;
    margin: 4px auto 0;
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 200deg, var(--fil-terra), var(--fil-sage), var(--fil-slate), var(--fil-terra));
    box-shadow: 0 0 24px rgba(230, 168, 135, 0.5);
}

.phone__avatar img {
    width: 100%;
    height: 100%;
    border: 3px solid var(--paper);
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
}

.phone__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.phone__meta {
    margin: -6px 0 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.phone__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.phone__chips li {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--ivory-deep);
    font-size: 0.8125rem;
}

.phone__why {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--sage);
    font-size: 0.8125rem;
    line-height: 1.45;
    text-align: left;
}

.phone__why strong {
    font-weight: 600;
    color: var(--sage-ink);
}

.phone__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.phone__action {
    display: grid;
    place-items: center;
    min-height: 40px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.phone__action--soft {
    background: var(--ivory-deep);
    color: var(--ink);
}

.phone__action--main {
    background: var(--accent);
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .appdl__inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 48px;
    }

    .appdl__copy {
        order: 0;
    }

    .phone {
        width: 240px;
    }
}

@media (min-width: 1024px) {
    .duo__grid {
        grid-template-columns: 55fr 45fr;
    }

    .duo__threads {
        display: block;
        position: absolute;
        left: calc(55% - 160px);
        bottom: 5%;
        width: 320px;
        height: 140px;
        z-index: 1;
        pointer-events: none;
    }

    .emotion {
        padding: var(--section-y) clamp(32px, 4vw, 64px) var(--section-y) var(--edge);
    }

    .appdl {
        display: flex;
        align-items: center;
        padding: var(--section-y) var(--edge) var(--section-y) clamp(32px, 4vw, 56px);
    }

    .appdl__inner {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

@media (min-width: 1280px) {
    .appdl__inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 40px;
    }
}

/* ============================================
   HOME - FAQ + FINAL CTA
   ============================================ */

.closing {
    background: var(--ivory);
}

.closing__grid {
    display: grid;
}

.faq-wrap {
    padding: var(--section-y) var(--gutter);
}

.faq-wrap__intro {
    max-width: 56ch;
    margin-bottom: 28px;
    color: var(--ink-soft);
}

.final-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(72px, 10vw, 120px) var(--gutter) clamp(160px, 22vw, 260px);
    background: var(--slate-deep);
    color: #F5EEE6;
    text-align: center;
    --focus: #F3C3A0;
}

.final-cta__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("./assets/f2816069150e498b5983aa81bf559468.webp");
    background-size: cover;
    background-position: center 70%;
    background-repeat: no-repeat;
}

.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(75% 45% at 50% 26%, rgba(35, 43, 57, 0.78), rgba(35, 43, 57, 0) 78%);
}

.final-cta__inner {
    max-width: 460px;
}

.final-cta .eyebrow {
    color: #F0BFA1;
}

.final-cta__title {
    color: #FBF5EE;
}

.final-cta__text {
    margin-bottom: 28px;
    color: var(--mist-strong);
}

@media (min-width: 1024px) {
    .closing__grid {
        grid-template-columns: 58fr 42fr;
    }

    .faq-wrap {
        padding: var(--section-y) clamp(32px, 4vw, 64px) var(--section-y) var(--edge);
    }

    .final-cta {
        padding: clamp(96px, 9vw, 140px) clamp(32px, 4vw, 56px) 200px;
    }
}

/* ============================================
   PRIVACY POLICY PAGE
   ============================================ */

.legal-hero__emblem {
    position: relative;
}

.legal-hero__emblem::before {
    content: "";
    position: absolute;
    inset: -20% -25%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(243, 195, 160, 0.28), rgba(243, 195, 160, 0));
    pointer-events: none;
}

.legal-hero__emblem svg {
    overflow: visible;
}

.legal-section {
    scroll-margin-top: calc(var(--header-bottom, 72px) + 16px);
}

.prose .info-rows {
    display: grid;
    gap: 14px;
    margin: 1.5rem 0;
    padding: 0;
}

.prose .info-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 20px;
    border-radius: 20px;
    background: var(--terra-tint);
}

.prose .info-row--sage { background: var(--sage); }
.prose .info-row--blue { background: var(--blue-tint); }

.info-row__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--paper);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.info-row--sage .info-row__icon { color: var(--sage-ink); }
.info-row--blue .info-row__icon { color: var(--slate); }

.prose .info-row__title {
    margin: 2px 0 6px;
    font-size: 1.1875rem;
}

.info-row p {
    max-width: 62ch;
    margin: 0;
    color: var(--ink-soft);
}

.ai-diagram {
    margin: 1.5rem 0;
    padding: 16px;
    border-radius: 24px;
    background: var(--ivory);
}

.ai-diagram svg {
    display: block;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    overflow: visible;
}

.security-callout {
    display: grid;
    gap: 20px;
    align-items: center;
}

.security-callout__art {
    width: 96px;
    height: auto;
}

.prose .security-callout h3 {
    margin-top: 0;
}

/* ============================================
   TERMS PAGE
   ============================================ */

.flow-diagram {
    margin: 1.5rem 0;
}

.flow-diagram svg {
    max-width: 480px;
}

.flow-captions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 480px;
    margin: 4px auto 0;
    text-align: center;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--ink);
}

.terms-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.25rem;
}

.terms-warning__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--paper);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.terms-warning__text {
    margin: 0;
    padding-top: 2px;
    max-width: 62ch;
    color: var(--ink);
}

.legal-panel--terra .list-columns {
    margin-bottom: 0;
}

.legal-panel__net {
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: min(340px, 70%);
    height: auto;
    pointer-events: none;
    z-index: 0;
}

.legal-panel--slate > :not(.legal-panel__net) {
    position: relative;
    z-index: 1;
}

.legal-panel--slate p {
    max-width: 68ch;
    color: #F5EEE6;
}

.legal-actions {
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .security-callout {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 28px;
    }

    .security-callout__art {
        width: 110px;
    }
}

/* ============================================
   COOKIE POLICY PAGE
   ============================================ */

.cookie-glance {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 1.3rem;
}

.cookie-glance li {
    max-width: 62ch;
    color: var(--ink);
}

.cookie-bands {
    display: grid;
    gap: 14px;
    margin: 1.5rem 0 0;
}

.cookie-band {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 22px;
    border: 1px solid rgba(70, 83, 107, 0.1);
}

.cookie-band--ivory { background: var(--ivory); }
.cookie-band--blue { background: var(--blue-tint); }
.cookie-band--sage { background: var(--sage); }
.cookie-band--terra { background: var(--terra-tint); }

.cookie-band__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--paper);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.cookie-band--blue .cookie-band__icon { color: var(--slate); }
.cookie-band--sage .cookie-band__icon { color: var(--sage-ink); }

.prose .cookie-band__title {
    margin: 2px 0 8px;
    font-size: 1.1875rem;
}

.prose .cookie-band__status {
    display: inline-block;
    max-width: none;
    margin: 0 0 10px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
}

.cookie-band__body p:last-child {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.cookie-branch {
    margin-inline: 0;
}

/* ============================================
   REVEAL (progressive enhancement)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    }

    .js .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}