/*
 * JMatchmaking - shared design system
 * Warm ivory, deep navy, terracotta and antique-gold braided rope motif.
 */

:root {
    /* Palette */
    --ivory: #FBF5EA;
    --ivory-2: #F5ECDD;
    --ivory-3: #EDE1CB;
    --paper: #FFFBF4;
    --navy: #1D2E4F;
    --navy-deep: #15233F;
    --navy-ink: #1B2A47;
    --text: #26324A;
    --muted: #4D5568;
    --terracotta: #A9533D;
    --terracotta-dark: #8E4231;
    --gold: #C9A25A;
    --gold-light: #E6C987;
    --gold-pale: #F6E6C2;
    --bronze: #8A6430;
    --bronze-dark: #6B4A22;
    --mauve: #9C7884;
    --tan: #CDB58C;
    --on-dark: #F3ECDF;

    /* Rope texture used by CSS frames and cords */
    --rope-stripes: repeating-linear-gradient(-55deg,
        var(--bronze-dark) 0 1px,
        var(--bronze) 1px 2.5px,
        var(--gold) 2.5px 5px,
        var(--gold-light) 5px 6.5px,
        var(--gold) 6.5px 8px);

    /* Type */
    --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
    --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --fs-body: 1.0625rem;
    --fs-small: 0.9375rem;
    --fs-h1: clamp(1.85rem, 4.4vw, 3.15rem);
    --fs-h2: clamp(1.55rem, 3.2vw, 2.35rem);
    --fs-h3: clamp(1.12rem, 1.6vw, 1.3rem);

    /* Shape & depth */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 6px rgba(43, 32, 18, 0.08);
    --shadow: 0 8px 24px rgba(43, 32, 18, 0.12);
    --shadow-lg: 0 18px 44px rgba(20, 24, 40, 0.28);

    /* Layout */
    --container: 1200px;
    --gutter: 1rem;
    --section-pad: clamp(3.5rem, 8vw, 6.5rem);
    --header-bottom: 64px;
}

/* ============================================
   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%;
    scroll-padding-top: calc(var(--header-bottom) + 16px);
}

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

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

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--navy-ink);
    line-height: 1.22;
    margin: 0 0 0.6em;
    letter-spacing: -0.005em;
    text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
    margin: 0 0 1em;
}

a {
    color: var(--terracotta-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

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

ul, ol {
    padding-left: 1.25rem;
}

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

.section--navy :focus-visible,
.section--terracotta :focus-visible,
.legal-hero :focus-visible {
    outline-color: var(--gold-light);
}

.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

.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;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--navy);
    color: var(--ivory);
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
    color: var(--ivory);
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ============================================
   SECTIONS & HEADINGS
   ============================================ */
.section {
    position: relative;
    padding-block: var(--section-pad);
}

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

.section--navy {
    background: var(--navy);
    color: var(--on-dark);
}

.section--navy h2,
.section--navy h3:not(.on-light) {
    color: var(--ivory);
}

.section--terracotta {
    background: var(--terracotta);
    color: var(--ivory);
}

.section--terracotta h2 { color: var(--ivory); }

.section-head {
    position: relative;
    z-index: 1;
    max-width: 46rem;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.section-head h2 {
    margin-bottom: 0.5em;
}

.section-head__intro {
    color: var(--muted);
    font-size: 1.0625rem;
    margin: 0;
}

.section-head--light h2 { color: var(--ivory); }
.section-head--light .section-head__intro { color: var(--on-dark); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.btn:active {
    transform: translateY(0);
}

.btn--gold {
    background: linear-gradient(180deg, #D9B872 0%, var(--gold) 100%);
    color: var(--navy-deep);
    border-color: var(--bronze);
    box-shadow: inset 0 1px 0 rgba(255, 245, 220, 0.6), 0 6px 16px rgba(10, 14, 30, 0.3);
}

.btn--gold:hover {
    background: linear-gradient(180deg, #E4C584 0%, #D2AC63 100%);
    color: var(--navy-deep);
}

.btn--terracotta {
    background: var(--terracotta);
    color: var(--ivory);
    border-color: var(--terracotta);
    box-shadow: 0 6px 16px rgba(142, 66, 49, 0.25);
}

.btn--terracotta:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    color: var(--ivory);
}

.btn--outline {
    background: transparent;
    color: var(--terracotta-dark);
    border-color: var(--terracotta);
}

.btn--outline:hover {
    background: var(--terracotta);
    color: var(--ivory);
}

.btn--text {
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    background: none;
    border: 0;
    color: var(--terracotta-dark);
    text-decoration: underline;
    text-underline-offset: 0.25em;
    box-shadow: none;
}

.btn--text:hover {
    color: var(--navy);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ivory);
    border-bottom: 1px solid var(--gold);
    box-shadow: 0 3px 0 -2px var(--gold-light), 0 6px 18px rgba(43, 32, 18, 0.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 64px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--navy-ink);
    text-decoration: none;
    flex-shrink: 0;
}

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

.site-brand__text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.site-brand__j {
    color: var(--terracotta);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.header-actions .header-cta {
    display: none;
    min-height: 44px;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
}

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

.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy-ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s 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);
}

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

.site-nav__link {
    color: var(--navy-ink);
    text-decoration: none;
    font-weight: 600;
}

.site-nav__link:hover {
    color: var(--terracotta-dark);
}

/* Mobile drawer */
@media (max-width: 1023.98px) {
    .site-nav {
        position: fixed;
        top: var(--header-bottom);
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        z-index: 99;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.25rem 1.25rem 2rem;
        background: var(--ivory);
        border-top: 1px solid var(--gold);
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        transform: translateY(-6px);
        transition: transform 0.2s ease, visibility 0s linear 0.2s;
    }

    .site-nav.is-open {
        visibility: visible;
        transform: none;
        transition: transform 0.2s ease, visibility 0s;
    }

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

    .site-nav__link {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0.5rem 0.25rem;
        font-family: var(--font-serif);
        font-size: 1.2rem;
        font-weight: 400;
    }

    .site-nav__footer {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-nav__cta {
        width: 100%;
    }

    .site-nav__note {
        margin: 0;
        color: var(--muted);
        font-size: var(--fs-small);
        text-align: center;
    }
}

@media (min-width: 360px) {
    .header-actions .header-cta {
        display: inline-flex;
    }
}

@media (min-width: 768px) {
    :root {
        --gutter: 1.75rem;
    }

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

    .header-actions .header-cta {
        padding: 0.55rem 1.35rem;
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .site-header__inner {
        min-height: 76px;
        gap: 1.5rem;
    }

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

    .site-nav {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .site-nav__list {
        display: flex;
        align-items: center;
        gap: clamp(1.1rem, 2.2vw, 2.25rem);
    }

    .site-nav__link {
        position: relative;
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: 1rem;
    }

    .site-nav__link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 8px;
        height: 2px;
        background: var(--gold);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.2s ease;
    }

    .site-nav__link:hover::after,
    .site-nav__link:focus-visible::after {
        transform: scaleX(1);
    }

    .site-nav__footer,
    .menu-toggle {
        display: none;
    }

    .header-actions {
        margin-left: 0;
    }
}

/* ============================================
   SIGNATURE MOTIF: BRAIDED GOLD ROPE (SVG)
   ============================================ */
.rope {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rope__edge {
    fill: none;
    stroke: var(--bronze-dark);
    stroke-width: calc(var(--rope-w, 10) * 1px);
}

.rope__body {
    fill: none;
    stroke: var(--gold);
    stroke-width: calc(var(--rope-w, 10) * 0.7px);
}

.rope__twist {
    fill: none;
    stroke: var(--gold-light);
    stroke-width: calc(var(--rope-w, 10) * 0.42px);
    stroke-dasharray: var(--rope-dash, 5 5);
}

.knot {
    display: block;
    width: 80px;
    height: auto;
    filter: drop-shadow(0 3px 4px rgba(60, 38, 14, 0.3));
}

/* CSS braided rope frame for cards */
.rope-frame {
    position: relative;
    border: 8px solid transparent;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(var(--paper), var(--paper)) padding-box,
        var(--rope-stripes) border-box;
    box-shadow: 0 0 0 1px var(--bronze-dark), 0 0 22px rgba(230, 201, 135, 0.25), var(--shadow);
}

.knot-crest {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 64px;
    margin-left: -32px;
    z-index: 2;
}

/* Double antique-gold border */
.double-frame {
    background: var(--paper);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--gold), var(--shadow-sm);
}

/* Corner interlace ornaments */
.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 1;
}

.corner--tl { top: 4px; left: 4px; }
.corner--tr { top: 4px; right: 4px; transform: scaleX(-1); }
.corner--bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.corner--br { bottom: 4px; right: 4px; transform: scale(-1, -1); }

/* ============================================
   PROFILE CARDS
   ============================================ */
.profile-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
    background: var(--paper);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--gold), var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--gold), var(--shadow-lg);
}

.profile-card__photo {
    border: 3px solid var(--gold);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--bronze), inset 0 0 0 1px var(--bronze-dark), 0 6px 14px rgba(43, 32, 18, 0.18);
    background: var(--ivory-3);
    max-width: 260px;
}

.profile-card__photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 25%;
}

.profile-card__age {
    margin: 0 0 0.35rem;
    font-family: var(--font-serif);
    font-size: var(--fs-small);
    color: var(--terracotta-dark);
}

.profile-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

.profile-card__intro {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
}

.tag-list li {
    padding: 0.2rem 0.7rem;
    background: var(--ivory-2);
    border: 1px solid var(--gold-light);
    border-radius: 999px;
    color: var(--navy-ink);
    font-size: 0.875rem;
    font-weight: 600;
}

@media (min-width: 480px) {
    .profile-card {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: center;
        padding: 1.75rem;
    }

    .profile-card__photo {
        max-width: none;
    }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
    max-width: 52rem;
    margin-inline: auto;
}

.faq-item {
    align-self: start;
    background: var(--paper);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.faq-item__heading {
    margin: 0;
    font-size: 1.05rem;
}

.faq-item__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 56px;
    padding: 0.9rem 1.25rem;
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    color: var(--navy-ink);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.faq-item__trigger:hover {
    color: var(--terracotta-dark);
}

.faq-item__trigger:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: -2px;
}

.chevron {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

[aria-expanded="true"] > .chevron {
    transform: rotate(180deg);
}

.faq-item__content {
    padding: 0 1.25rem 1.25rem;
    color: var(--text);
}

.faq-item__content p:last-child {
    margin-bottom: 0;
}

.faq-item__content a {
    text-decoration: underline;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-hero {
    position: relative;
    z-index: 2;
    overflow: visible;
    display: flex;
    align-items: center;
    min-height: 280px;
    padding: 3.25rem 0 5.75rem;
    background: radial-gradient(ellipse at 50% 0%, #2A4370 0%, var(--navy) 55%, var(--navy-deep) 100%);
    color: var(--on-dark);
    text-align: center;
}

.legal-hero__art {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.legal-hero__loop {
    position: absolute;
    bottom: 0;
    width: clamp(120px, 26vw, 360px);
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.legal-hero__loop--left { left: 0; }
.legal-hero__loop--right { right: 0; transform: scaleX(-1); }

.legal-hero__cord {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 9px;
    background: var(--rope-stripes);
    box-shadow: 0 0 0 1px var(--bronze-dark), 0 3px 8px rgba(0, 0, 0, 0.35);
}

.legal-hero__content {
    position: relative;
    z-index: 1;
    max-width: 46rem;
}

.legal-hero h1 {
    color: var(--ivory);
    margin-bottom: 0.5em;
}

.legal-hero__summary {
    margin: 0 auto 0.75rem;
    max-width: 40rem;
    color: var(--on-dark);
}

.legal-hero__updated {
    margin: 0;
    color: var(--gold-light);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.legal-hero__medallion {
    position: absolute;
    left: 50%;
    bottom: -32px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin-left: -48px;
    border-radius: 50%;
    background: var(--navy-deep);
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 4px var(--navy), 0 0 0 5px var(--gold-light), 0 12px 24px rgba(30, 20, 10, 0.35);
}

.legal-hero__medallion .knot {
    width: 70px;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-block: 4.5rem 4rem;
}

.legal-layout__aside {
    align-self: start;
}

.legal-toc {
    background: var(--paper);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.legal-toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    color: var(--navy-ink);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

.legal-toc__title {
    display: none;
    margin: 0;
    padding: 1.25rem 1.25rem 0.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--navy-ink);
}

.legal-toc__list {
    list-style: none;
    margin: 0;
    padding: 0 0.75rem 1rem;
}

.legal-toc__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.75rem;
    border-left: 3px solid transparent;
    color: var(--text);
    font-size: 0.975rem;
    line-height: 1.35;
    text-decoration: none;
}

.legal-toc__link:hover {
    color: var(--terracotta-dark);
    border-left-color: var(--gold);
}

.legal-toc__link.is-active {
    color: var(--terracotta-dark);
    border-left-color: var(--terracotta);
    font-weight: 700;
}

.legal-prose {
    max-width: 45rem;
    min-width: 0;
}

.legal-prose h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    margin-top: 2.5rem;
    padding-top: 0.25rem;
    scroll-margin-top: calc(var(--header-bottom) + 20px);
}

.legal-prose > h2:first-child,
.legal-prose > section:first-child h2 {
    margin-top: 0;
}

.legal-prose h3 {
    font-size: 1.12rem;
    margin-top: 1.5rem;
}

.legal-prose p,
.legal-prose li {
    line-height: 1.78;
}

.legal-prose ul,
.legal-prose ol {
    margin: 0 0 1.25rem;
}

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

.legal-prose section {
    overflow: visible;
}

.legal-callout {
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
    background: var(--ivory-2);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

@media (min-width: 1024px) {
    .legal-layout {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: clamp(2.5rem, 5vw, 4.5rem);
    }

    .legal-layout__aside {
        position: sticky;
        top: calc(var(--header-bottom) + 24px);
    }

    .legal-toc__toggle {
        display: none;
    }

    .legal-toc__title {
        display: block;
    }

    .legal-toc__list,
    .legal-toc__list[hidden] {
        display: block;
    }
}

/* Related policy cards */
.policy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.policy-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1.6rem;
    background: var(--paper);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--gold), var(--shadow-sm);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.policy-card:hover {
    transform: translateY(-2px);
    color: var(--text);
    box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--gold), var(--shadow);
}

.policy-card__title {
    margin: 0;
    font-size: 1.15rem;
}

.policy-card__desc {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.policy-card__more {
    margin-top: auto;
    color: var(--terracotta-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

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

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    background: var(--tan);
    color: var(--navy-ink);
    padding-bottom: 1.5rem;
    text-align: center;
}

.footer-ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding-top: 2.25rem;
}

.footer-ornament__line {
    flex: 1;
    height: 6px;
    border-top: 1px solid var(--bronze);
    border-bottom: 1px solid var(--bronze);
}

.footer-ornament__knot {
    width: 84px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 3px rgba(60, 38, 14, 0.3));
}

.site-footer__inner {
    display: grid;
    gap: 1.75rem;
    padding-block: 1.75rem 1.5rem;
}

.site-brand--footer .site-brand__text {
    font-size: 1.5rem;
}

.site-brand--footer .site-brand__j {
    color: var(--terracotta-dark);
}

.footer-brand__desc {
    max-width: 38rem;
    margin: 0.5rem auto 0;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    gap: 1.25rem;
}

.footer-nav__heading {
    margin: 0 0 0.35rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--navy-ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(27, 42, 71, 0.35);
    text-underline-offset: 0.25em;
}

.footer-nav a:hover {
    color: var(--terracotta-dark);
    text-decoration-color: currentColor;
}

.site-footer__bottom {
    padding-top: 1.25rem;
    border-top: 1px solid var(--bronze);
}

.site-footer__bottom p {
    margin: 0;
    font-size: var(--fs-small);
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 46rem;
        margin-inline: auto;
        width: 100%;
    }
}

/* ============================================
   HOMEPAGE
   ============================================ */
.ns-stroke .rope__edge,
.ns-stroke .rope__body,
.ns-stroke .rope__twist,
.ns-stroke .ribbon {
    vector-effect: non-scaling-stroke;
}

.section-cta {
    position: relative;
    z-index: 1;
    margin-top: 2.25rem;
    text-align: center;
}

.ribbon {
    fill: none;
    stroke-width: 11;
    stroke-linecap: butt;
}

.ribbon--navy { stroke: var(--navy); }
.ribbon--terracotta { stroke: var(--terracotta); }
.ribbon--gold { stroke: var(--gold); }
.ribbon--mauve { stroke: var(--mauve); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 2;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    min-height: clamp(600px, 88vh, 800px);
    padding: clamp(15rem, 30vw, 24rem) 0 7rem;
    background: var(--navy-deep);
    color: var(--on-dark);
    text-align: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url("./assets/b1837225b76cf975290a7d5fd6483007.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 22%;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(21, 35, 63, 0) 0%,
        rgba(21, 35, 63, 0) 40%,
        rgba(21, 35, 63, 0.72) 56%,
        rgba(21, 35, 63, 0.95) 70%,
        var(--navy-deep) 82%);
}

.hero__art {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__loop {
    position: absolute;
    bottom: 0;
    width: clamp(110px, 20vw, 320px);
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.hero__loop--left { left: 0; }
.hero__loop--right { right: 0; transform: scaleX(-1); }

.hero__cord {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 10px;
    background: var(--rope-stripes);
    box-shadow: 0 0 0 1px var(--bronze-dark), 0 3px 8px rgba(0, 0, 0, 0.35);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 42rem;
}

.hero h1 {
    color: var(--ivory);
    margin-bottom: 0.55em;
    text-shadow: 0 2px 12px rgba(10, 16, 32, 0.5);
}

.hero__lead {
    margin: 0 auto 1.6rem;
    max-width: 38rem;
    color: var(--on-dark);
    font-size: 1.0625rem;
}

.hero__micro {
    margin: 1rem 0 0;
    color: var(--ivory);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.hero :focus-visible {
    outline-color: var(--gold-light);
}

.hero__medallion {
    position: absolute;
    left: 50%;
    bottom: -46px;
    z-index: 3;
    width: 110px;
    margin-left: -55px;
}

.hero__medallion .knot {
    width: 100%;
    filter: drop-shadow(0 8px 10px rgba(60, 38, 14, 0.35));
}

@media (min-width: 768px) {
    .hero__lead { font-size: 1.15rem; }
    .hero__medallion { width: 130px; margin-left: -65px; bottom: -54px; }
}

/* ---------- Value proposition ---------- */
.vp {
    padding-top: calc(var(--section-pad) + 2rem);
}

.vp__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.vp__copy p {
    color: var(--text);
}

.vp__copy .btn {
    margin-top: 0.75rem;
}

.vp-collage {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    aspect-ratio: 560 / 588;
}

.vp-collage__cord {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.vp-photo {
    position: absolute;
    margin: 0;
    width: 52%;
    padding: 5px;
    background: var(--paper);
    border: 2px solid var(--gold);
    border-radius: 16px;
    box-shadow: 0 0 0 1px var(--bronze), var(--shadow);
}

.vp-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--bronze);
    box-shadow: 0 0 0 2px var(--gold-light);
}

.vp-photo--1 { top: 0; left: 2%; z-index: 1; }
.vp-photo--2 { top: 30%; right: 0; z-index: 2; }
.vp-photo--3 { top: 56%; left: 12%; z-index: 3; }

@media (min-width: 1024px) {
    .vp__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: clamp(3rem, 6vw, 5rem);
    }
}

/* ---------- How it works ---------- */
.hiw {
    background: var(--ivory-2);
    border-top: 1px solid var(--ivory-3);
}

.grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hiw .container,
.hiw-track {
    position: relative;
    z-index: 1;
}

.hiw-cord {
    display: none;
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.steps::before {
    content: "";
    position: absolute;
    top: 44px;
    bottom: 44px;
    left: 40px;
    width: 8px;
    background: var(--rope-stripes);
    box-shadow: 0 0 0 1px var(--bronze-dark);
    border-radius: 4px;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.step__medallion {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 7px solid transparent;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--paper) 0%, var(--ivory) 100%) padding-box,
        var(--rope-stripes) border-box;
    box-shadow: 0 0 0 1px var(--bronze-dark), 0 6px 14px rgba(43, 32, 18, 0.16);
}

.step__icon {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--navy);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step__text h3 {
    margin-bottom: 0.35em;
}

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

.step__knot.knot {
    position: absolute;
    z-index: 2;
    left: 24px;
    bottom: calc(-1.125rem - 20px);
    width: 40px;
}

@media (min-width: 1024px) {
    .hiw-cord {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 12px;
        width: 100%;
        height: 80px;
    }

    .steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .steps::before {
        display: none;
    }

    .step {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .step__medallion {
        width: 104px;
        height: 104px;
    }

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

    .step__knot.knot {
        left: auto;
        bottom: auto;
        top: 32px;
        right: calc(-0.75rem - 20px);
    }
}

/* ---------- Features ---------- */
.features__pattern {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(70px, 11vw, 170px);
    height: 100%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
}

.features__pattern--left { left: 0; }
.features__pattern--right { right: 0; transform: scaleX(-1); }

.features__pattern .rope__edge { stroke: #13203A; }
.features__pattern .rope__body { stroke: #22365C; }
.features__pattern .rope__twist { stroke: #2C4470; }

.features__inner {
    position: relative;
    z-index: 1;
}

.feature-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
    max-width: 1000px;
    margin-inline: auto;
}

.feature-card.rope-frame {
    border-width: 10px;
    color: var(--text);
}

.feature-card__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border-radius: 12px;
    background: var(--paper);
}

.feature-card__text {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    align-self: center;
}

.feature-card__text p {
    margin: 0;
    color: var(--text);
}

.feature-card__media {
    order: -1;
}

.feature-card__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 35%;
}

.feature-card__knot.knot {
    position: absolute;
    top: 50%;
    width: 44px;
    margin-top: -22px;
    z-index: 2;
}

.feature-card__knot--left { left: -24px; }
.feature-card__knot--right { right: -24px; }

.feature-notes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.feature-note {
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 3px solid var(--gold);
}

.feature-note h3 {
    margin-bottom: 0.35em;
}

.feature-note p {
    margin: 0;
    color: var(--on-dark);
}

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

    .feature-card__media {
        order: 1;
    }

    .feature-card--reverse .feature-card__media {
        order: -1;
    }

    .feature-card__media img {
        aspect-ratio: auto;
        min-height: 300px;
    }

    .feature-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
    }
}

/* ---------- Why consider ---------- */
.why-lattice {
    display: none;
}

.why__inner {
    position: relative;
    z-index: 1;
}

.why .section-head {
    max-width: 50rem;
}

.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
    max-width: 960px;
    margin: 3.5rem auto 0;
}

.why-card {
    position: relative;
    padding: 3.25rem 1.75rem 2rem;
    background: var(--paper);
    border: 1px solid var(--tan);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.why-card h3 {
    text-align: center;
    margin-bottom: 1.1rem;
}

.why-card__bar {
    position: absolute;
    top: -5px;
    left: 18px;
    right: 18px;
    height: 10px;
    border-radius: 5px;
    background: var(--rope-stripes);
    box-shadow: 0 0 0 1px var(--bronze-dark);
}

.why-card__knot.knot {
    position: absolute;
    top: -18px;
    width: 36px;
}

.why-card__knot--l { left: 0; }
.why-card__knot--r { right: 0; }

.why-card__badge {
    position: absolute;
    top: -34px;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-left: -32px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold-light), 0 6px 14px rgba(43, 32, 18, 0.25);
}

.why-card__badge--navy { background: var(--navy); }
.why-card__badge--terracotta { background: var(--terracotta); }

.why-card__badge svg {
    fill: none;
    stroke: var(--ivory);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.mark-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-top: 1px solid var(--ivory-3);
}

.mark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mark--check { stroke: var(--navy); }
.mark--cross { stroke: var(--terracotta); }

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

@media (min-width: 1024px) {
    .why-lattice {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
}

/* ---------- Tapestry bridge ---------- */
.tapestry {
    padding-bottom: calc(var(--section-pad) + 3rem);
    background: radial-gradient(ellipse at 50% 30%, var(--paper) 0%, var(--ivory-2) 60%, var(--ivory-3) 100%);
    text-align: center;
    -webkit-mask-image: radial-gradient(220% 100% at 50% 0, #000 97%, transparent 100%);
    mask-image: radial-gradient(220% 100% at 50% 0, #000 97%, transparent 100%);
}

.tapestry__cords {
    display: none;
}

.tapestry__cords .rope__edge { stroke: #D3B577; }
.tapestry__cords .rope__body { stroke: #F4E6CB; }
.tapestry__cords .rope__twist { stroke: #FFFAF0; }

.tapestry__content {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}

.tapestry__knot.knot {
    width: 88px;
    margin: 0 auto 1rem;
}

.tapestry__content p {
    margin: 0 auto 1.75rem;
    color: var(--text);
}

@media (min-width: 768px) {
    .tapestry__cords {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
}

/* ---------- Discover matches ---------- */
.matches__ribbons {
    display: none;
}

.matches__inner {
    position: relative;
    z-index: 1;
}

.match-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    max-width: 1040px;
    margin-inline: auto;
}

.matches__caption {
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: var(--fs-small);
    font-style: italic;
    text-align: center;
}

.matches .section-cta {
    margin-top: 1.5rem;
}

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

@media (min-width: 1024px) {
    .matches__ribbons {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
}

/* ---------- Jewish values ---------- */
.values-panel {
    position: relative;
    padding: 14px;
    background: var(--terracotta);
    border-radius: 18px;
    color: var(--ivory);
    box-shadow: var(--shadow);
}

.values-panel::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 9px solid transparent;
    border-radius: 12px;
    background:
        linear-gradient(var(--terracotta), var(--terracotta)) padding-box,
        var(--rope-stripes) border-box;
    box-shadow: 0 0 0 1px var(--bronze-dark), inset 0 0 0 1px var(--bronze-dark);
}

.values-panel .corner {
    width: 56px;
    height: 56px;
    z-index: 2;
}

.values-panel .corner--tl { top: 8px; left: 8px; }
.values-panel .corner--tr { top: 8px; right: 8px; }
.values-panel .corner--bl { bottom: 8px; left: 8px; }
.values-panel .corner--br { bottom: 8px; right: 8px; }

.values-panel__content {
    position: relative;
    z-index: 1;
    padding: clamp(2.75rem, 6vw, 4.25rem) clamp(1.25rem, 5vw, 3.75rem);
    text-align: center;
}

.values-panel h2 {
    color: var(--ivory);
}

.values-panel__lead {
    max-width: 38rem;
    margin: 0 auto 2.25rem;
}

.values-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.values-term h3 {
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.35rem, 2.2vw, 1.6rem);
    color: var(--gold-pale);
}

.values-term p {
    margin: 0;
    color: var(--ivory);
}

.values-medallion {
    order: -1;
    position: relative;
    justify-self: center;
    width: clamp(200px, 26vw, 300px);
    aspect-ratio: 1;
    border: 12px solid transparent;
    border-radius: 50%;
    background:
        linear-gradient(var(--navy), var(--navy)) padding-box,
        var(--rope-stripes) border-box;
    box-shadow: 0 0 0 2px var(--bronze-dark), 0 0 0 7px rgba(230, 201, 135, 0.22), 0 16px 30px rgba(40, 14, 6, 0.35);
}

.values-medallion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.values-medallion::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 22px rgba(30, 10, 4, 0.5);
    pointer-events: none;
}

.values-statement {
    max-width: 40rem;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gold-light);
    font-family: var(--font-serif);
    font-size: 1.02rem;
    line-height: 1.7;
}

.values-panel :focus-visible {
    outline-color: var(--gold-light);
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 3.5rem);
    }

    .values-medallion {
        order: 0;
    }
}

/* ---------- Trust & safety ---------- */
.trust .section-head__intro a {
    color: var(--gold-light);
}

.trust .section-head__intro a:hover {
    color: var(--ivory);
}

.trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3.25rem;
    max-width: 1080px;
    margin: 3.25rem auto 0;
}

.trust-card {
    padding: 3rem 1.6rem 2rem;
    color: var(--text);
    text-align: center;
}

.trust-card p {
    margin: 0;
    color: var(--text);
}

.shield {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
}

.shield__body {
    fill: var(--navy);
    stroke: var(--gold);
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.shield__mark {
    fill: none;
    stroke: var(--gold-light);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

/* ---------- Final CTA ---------- */
.final-cta {
    text-align: center;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}

.final-cta::before,
.final-cta::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-light);
}

.final-cta::before { top: 6px; }
.final-cta::after { bottom: 6px; }

.final-cta__inner {
    max-width: 44rem;
}

.final-cta p {
    margin: 0 auto 1.75rem;
    color: var(--ivory);
    font-size: 1.1rem;
}

/* ---------- Brand promises ---------- */
.promise-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    max-width: 1080px;
    margin: 3rem auto 0;
}

.promise-card {
    position: relative;
    margin: 0;
    padding: 2.75rem 1.75rem 1.75rem;
    color: var(--text);
    text-align: center;
}

.promise-card blockquote {
    margin: 0 0 1rem;
}

.promise-card blockquote p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--navy-ink);
}

.promise-card figcaption {
    color: var(--terracotta-dark);
    font-size: var(--fs-small);
    font-weight: 700;
}

@media (min-width: 900px) {
    .promise-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

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

/* ============================================
   COOKIE POLICY
   ============================================ */
.cookie-table-wrap {
    margin: 1.5rem 0;
    background: var(--ivory);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-small);
}

.cookie-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.cookie-table tr {
    display: block;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--gold-light);
}

.cookie-table tbody tr:last-child {
    border-bottom: 0;
}

.cookie-table th,
.cookie-table td {
    display: block;
    padding: 0;
    text-align: left;
    line-height: 1.6;
}

.cookie-table tbody th {
    margin-bottom: 0.5rem;
    color: var(--navy-ink);
    font-family: var(--font-serif);
    font-size: 1.05rem;
}

.cookie-table td + td {
    margin-top: 0.5rem;
}

.cookie-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--terracotta-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .cookie-table thead {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
    }

    .cookie-table thead tr {
        display: table-row;
        padding: 0;
        background: var(--navy);
        border-bottom: 0;
    }

    .cookie-table thead th {
        display: table-cell;
        padding: 0.9rem 1.1rem;
        color: var(--ivory);
        font-family: var(--font-serif);
        font-size: 1rem;
    }

    .cookie-table tbody tr {
        display: table-row;
        padding: 0;
    }

    .cookie-table tbody th,
    .cookie-table tbody td {
        display: table-cell;
        padding: 1rem 1.1rem;
        vertical-align: top;
        border-bottom: 1px solid var(--gold-light);
    }

    .cookie-table tbody tr:last-child th,
    .cookie-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .cookie-table tbody th {
        width: 20%;
        margin: 0;
    }

    .cookie-table td + td {
        margin-top: 0;
    }

    .cookie-table td::before {
        display: none;
    }
}

.legal-cta {
    margin-top: 2.5rem;
    padding: 1.5rem 1.6rem;
    background: var(--paper);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--gold), var(--shadow-sm);
    text-align: center;
}

.legal-cta p {
    max-width: 34rem;
    margin: 0 auto 1rem;
}