/* ==========================================================================
   Nearby marketing.css — Hinge-pattern company site vocabulary
   - Atlas-aligned: dark canvas, single Atlas Violet accent, editorial type,
     solid surfaces + subtle borders, photography (here: branded SVG art) as
     the depth. No glow, minimal shadow.
   - Every selector here is NEW and `mkt-`/`mkt-`-scoped so it never collides
     with app.css / components.css. Marketing pages compose from THIS file
     plus the confirmed-safe base classes:
       section-padded · section-alt · section-inner · section-title ·
       atlas-card · btn btn-primary · btn btn-ghost-atlas · text-center
   - Loaded AFTER app.css + components.css so it can lean on the same tokens.
   ========================================================================== */

/* ── Marketing display type scale (editorial, fluid) ──
     theme.css tops out at 28px which is right for the app shell but too small
     for a marketing hero. We add a fluid display scale local to marketing. */
:root {
    --mkt-display: clamp(2.6rem, 6.4vw, 4.75rem);   /* hero headline */
    --mkt-h1:      clamp(2.1rem, 4.6vw, 3.25rem);   /* page statement */
    --mkt-h2:      clamp(1.7rem, 3.2vw, 2.4rem);    /* section heading */
    --mkt-h3:      clamp(1.2rem, 2vw, 1.55rem);     /* card / row heading */
    --mkt-lede:    clamp(1.05rem, 1.6vw, 1.4rem);   /* intro paragraph */
    --mkt-maxw:    1180px;                            /* wide marketing container */
}

/* Wider container variant for marketing rows that want to breathe past the
     1000px app default. Apply on .section-inner via this modifier. */
.section-inner.mkt-wide { max-width: var(--mkt-maxw); }

/* ===== Hero =========================================================== */
.mkt-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 7rem) 1.5rem clamp(3rem, 6vw, 5.5rem);
    background:
        radial-gradient(120% 90% at 85% 0%, rgba(0, 31, 199, 0.30) 0%, transparent 55%),
        var(--gradient-dark);
    border-bottom: 1px solid var(--surface-border);
}

.mkt-hero-inner {
    max-width: var(--mkt-maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.mkt-hero--center .mkt-hero-inner {
    grid-template-columns: 1fr;
    max-width: 820px;
    text-align: center;
    justify-items: center;
}

.mkt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.mkt-eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--brand-strong);
}

.mkt-hero--center .mkt-eyebrow::before { display: none; }

.mkt-hero-title {
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--mkt-display);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    margin: 0 0 1.4rem;
    text-wrap: balance;
}

.mkt-hero-lede {
    font-size: var(--mkt-lede);
    line-height: 1.45;
    color: var(--text-soft);
    max-width: 36ch;
    margin: 0 0 2rem;
}

.mkt-hero--center .mkt-hero-lede { max-width: 52ch; }

.mkt-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.mkt-hero--center .mkt-actions { justify-content: center; }

.mkt-hero-art {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-outline);
    overflow: hidden;
    border: 1px solid var(--surface-border-strong);
    background: var(--bg-elev-1);
}

.mkt-hero-art img,
.mkt-hero-art svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Generic media / art ========================================== */
.mkt-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    background: var(--bg-elev-1);
}

.mkt-art {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    background: var(--bg-elev-1);
}

.mkt-art img,
.mkt-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Lede / statement blocks ===================================== */
.mkt-statement {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--mkt-h1);
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--text);
    text-wrap: balance;
}

.mkt-statement .mkt-accent { color: var(--accent); }

.mkt-lede {
    max-width: 70ch;
    margin: 1.25rem auto 0;
    text-align: center;
    font-size: var(--mkt-lede);
    line-height: 1.55;
    color: var(--text-soft);
}

.mkt-section-eyebrow {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.mkt-section-lede {
    max-width: 64ch;
    margin: -0.5rem auto 2.5rem;
    text-align: center;
    font-size: var(--text-body-lg);
    line-height: 1.6;
    color: var(--text-soft);
}

/* ===== Responsive grids ============================================ */
.mkt-grid { display: grid; gap: 1.5rem; }
.mkt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mkt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mkt-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Card helpers (compose on .atlas-card) ======================= */
.mkt-card-index {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
}

.mkt-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 31, 199, 0.16);
    border: 1px solid var(--surface-border-strong);
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.mkt-card-title {
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--mkt-h3);
    line-height: 1.2;
    color: var(--text-strong);
    margin: 0 0 0.5rem;
}

.mkt-card-body {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--text-soft);
    margin: 0;
}

.mkt-eyebrow-sm {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.6rem;
}

/* ===== Numbered feature rows (Mission "difference", Labs "focus") === */
.mkt-rows {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--surface-border);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mkt-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.5rem;
    padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem);
    background: var(--surface);
    transition: background var(--dur-fast) var(--ease-out);
}

.mkt-row:hover { background: var(--surface-strong); }

.mkt-row-index {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent);
    padding-top: 0.3rem;
}

.mkt-row-title {
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--mkt-h3);
    color: var(--text-strong);
    margin: 0 0 0.4rem;
}

.mkt-row-body {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--text-soft);
    margin: 0;
    max-width: 62ch;
}

/* ===== Alternating media rows ====================================== */
.mkt-media-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.mkt-media-row + .mkt-media-row { margin-top: clamp(2.5rem, 6vw, 5rem); }
.mkt-media-row--reverse .mkt-media-copy { order: 2; }
.mkt-media-row--reverse .mkt-media-art { order: 1; }

.mkt-media-title {
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--mkt-h2);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--text-strong);
    margin: 0 0 1rem;
}

.mkt-media-body {
    font-size: var(--text-body-lg);
    line-height: 1.6;
    color: var(--text-soft);
    margin: 0 0 1.25rem;
}

/* ===== Stat band =================================================== */
.mkt-statband {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: var(--mkt-maxw);
    margin: 0 auto;
}

.mkt-statband--3 { grid-template-columns: repeat(3, 1fr); }

.mkt-stat { text-align: center; }

.mkt-stat-value {
    display: block;
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

.mkt-stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: var(--text-body);
    line-height: 1.45;
    color: var(--text-muted);
}

/* ===== Pull-quote ================================================== */
.mkt-quote {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.mkt-quote-text {
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--mkt-h2);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 1.25rem;
    text-wrap: balance;
}

.mkt-quote-cite {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ===== Press / publications list =================================== */
.mkt-press { display: flex; flex-direction: column; gap: 1px; background: var(--surface-border); border: 1px solid var(--surface-border); border-radius: var(--radius-md); overflow: hidden; }

.mkt-press-item {
    display: grid;
    grid-template-columns: 9rem 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.4rem clamp(1.25rem, 3vw, 2rem);
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    transition: background var(--dur-fast) var(--ease-out);
}

.mkt-press-item:hover { background: var(--surface-strong); color: inherit; }

.mkt-press-outlet {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mkt-press-headline {
    font-family: var(--font-sequel);
    font-size: var(--text-body-lg);
    color: var(--text);
    line-height: 1.3;
}

.mkt-press-arrow { color: var(--text-faint); font-size: 1.1rem; }

/* ===== Newsroom: filters + posts =================================== */
.mkt-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.mkt-chip {
    background: var(--surface);
    border: 1px solid var(--surface-border-strong);
    color: var(--text-soft);
    padding: 0.45rem 1.05rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-body);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.mkt-chip:hover { background: var(--surface-hover); color: var(--text); }

.mkt-chip.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.mkt-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mkt-post {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.mkt-post-art {
    aspect-ratio: 16 / 9;
    background: var(--bg-elev-1);
    border-bottom: 1px solid var(--surface-border);
}

.mkt-post-art img,
.mkt-post-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.mkt-post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }

.mkt-post-tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 31, 199, 0.14);
    border: 1px solid var(--surface-border);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-default);
    margin-bottom: 0.85rem;
}

.mkt-post-title {
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--mkt-h3);
    line-height: 1.22;
    color: var(--text-strong);
    margin: 0 0 0.5rem;
}

/* The card title is a link now that each post has its own page. It should not look like body
   copy that happens to be blue — the whole card reads as one thing, so the underline appears on
   hover rather than sitting under every headline. */
.mkt-post-title a {
    color: inherit;
    text-decoration: none;
}

.mkt-post-title a:hover,
.mkt-post-title a:focus-visible { text-decoration: underline; }

/* The lead image on a post's own page: same treatment as the card art, without the crop, because
   here there is room to show the whole thing. */
.mkt-post-hero-art {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-default);
}

.mkt-post-excerpt {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--text-soft);
    margin: 0 0 1rem;
}

.mkt-post-date {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: var(--text-faint);
}

/* ===== Benefits grid (Careers) ===================================== */
.mkt-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.mkt-benefit {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
}

.mkt-benefit-glyph { font-size: 1.4rem; line-height: 1.2; }

.mkt-benefit-title {
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--text-body-lg);
    color: var(--text-strong);
    margin: 0 0 0.2rem;
}

.mkt-benefit-body { font-size: var(--text-body); line-height: 1.5; color: var(--text-soft); margin: 0; }

/* ===== Hiring steps (Careers) ====================================== */
.mkt-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    counter-reset: step;
}

.mkt-step {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    position: relative;
}

.mkt-step-num {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    background: var(--brand);
    border: 1px solid var(--text);
    color: var(--text-on-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.mkt-step-title {
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--text-body-lg);
    color: var(--text-strong);
    margin: 0 0 0.35rem;
}

.mkt-step-body { font-size: var(--text-body); line-height: 1.45; color: var(--text-soft); margin: 0; }

/* ===== Open roles (Careers) ======================================== */
.mkt-roles { display: flex; flex-direction: column; gap: 0.75rem; max-width: 820px; margin: 0 auto; }

.mkt-role {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.mkt-role:hover { transform: translateX(4px); background: var(--surface-strong); color: inherit; }

.mkt-role-title { font-family: var(--font-sequel); font-weight: 400; font-size: var(--text-body-lg); color: var(--text-strong); }
.mkt-role-meta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.mkt-role-arrow { color: var(--text-faint); }

.mkt-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--surface-border-strong);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* ===== CTA band ==================================================== */
.mkt-cta {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.mkt-cta-title {
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--mkt-h1);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--text-strong);
    margin: 0 0 1rem;
    text-wrap: balance;
}

.mkt-cta-body {
    font-size: var(--mkt-lede);
    line-height: 1.5;
    color: var(--text-soft);
    margin: 0 0 2rem;
}

.mkt-cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ===== Application / callout card ================================== */
.mkt-callout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.75rem, 4vw, 3rem);
    background: var(--surface);
    border: 1px solid var(--surface-border-strong);
    border-radius: var(--radius-outline);
}

.mkt-callout-title {
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--mkt-h2);
    line-height: 1.14;
    color: var(--text-strong);
    margin: 0 0 0.9rem;
}

.mkt-callout-body { font-size: var(--text-body-lg); line-height: 1.55; color: var(--text-soft); margin: 0 0 1.5rem; }

/* ===== Inline list (principles within prose) ======================= */
.mkt-tick { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: 0.7rem; }
.mkt-tick li { position: relative; padding-left: 1.6rem; color: var(--text-soft); font-size: var(--text-body-lg); line-height: 1.5; }
.mkt-tick li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ===== Responsive ================================================== */
@media (max-width: 900px) {
    .mkt-hero-inner { grid-template-columns: 1fr; text-align: left; }
    .mkt-hero-art { order: -1; aspect-ratio: 16 / 10; max-height: 320px; }
    .mkt-media-row,
    .mkt-media-row--reverse { grid-template-columns: 1fr; }
    .mkt-media-row--reverse .mkt-media-copy,
    .mkt-media-row--reverse .mkt-media-art { order: 0; }
    .mkt-grid--3,
    .mkt-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .mkt-statband { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
    .mkt-posts { grid-template-columns: repeat(2, 1fr); }
    .mkt-benefits { grid-template-columns: repeat(2, 1fr); }
    .mkt-steps { grid-template-columns: repeat(2, 1fr); }
    .mkt-callout { grid-template-columns: 1fr; }
    .mkt-press-item { grid-template-columns: 1fr auto; }
    .mkt-press-outlet { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .mkt-grid--2,
    .mkt-grid--3,
    .mkt-grid--4 { grid-template-columns: 1fr; }
    .mkt-statband,
    .mkt-statband--3 { grid-template-columns: 1fr 1fr; }
    .mkt-posts { grid-template-columns: 1fr; }
    .mkt-benefits { grid-template-columns: 1fr; }
    .mkt-steps { grid-template-columns: 1fr; }
    .mkt-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .mkt-row-index { padding-top: 0; }
    .mkt-role { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ===== Light theme nudges ========================================== */
:root[data-theme="light"] .mkt-hero {
    background:
        radial-gradient(120% 90% at 85% 0%, rgba(0, 31, 199, 0.10) 0%, transparent 55%),
        linear-gradient(in oklab, #ffffff 0%, #f0f0f0 100%);
}
:root[data-theme="light"] .mkt-card-icon,
:root[data-theme="light"] .mkt-post-tag { background: rgba(0, 31, 199, 0.08); }

/* ── Careers: job detail and the application form ─────────────────────────────
   The roles list itself reuses .mkt-role from the marketing kit; only the detail
   page and its form need anything new. */

.mkt-hero--compact {
    padding-block: var(--space-5, 3rem);
}

.mkt-narrow {
    max-width: 46rem;
    margin-inline: auto;
}

.mkt-job-description p {
    color: var(--text-soft);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.mkt-field {
    margin-bottom: 1.25rem;
    text-align: left;
}

.mkt-field label {
    display: block;
    color: var(--text);
    font-size: 0.9375rem;
    margin-bottom: 0.4rem;
}

.mkt-optional {
    color: var(--text-soft);
    font-weight: 400;
    font-size: 0.8125rem;
}

.mkt-field .form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--control-border);
    background: var(--surface);
    color: var(--text);
}

.mkt-field .form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.mkt-form-error {
    color: var(--text);
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

/* The empty-roles and thank-you states share this block, so it has to read as a
   calm statement rather than an error. */
.mkt-empty strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.4rem;
}

/* ── Legal documents ──────────────────────────────────────────────────────────
   Long-form prose, not marketing. Narrower measure, generous leading, and visible
   heading hierarchy — these are documents people have to be able to actually read
   and cite, not sections to skim. */

.legal-doc {
    max-width: 46rem;
    margin-inline: auto;
}

.legal-updated {
    color: var(--text-soft);
    font-size: var(--text-body-sm, 0.8125rem);
    margin-bottom: var(--space-4, 2rem);
}

.legal-doc h2 {
    color: var(--text);
    font-family: var(--font-sequel);
    font-weight: 400;
    font-size: var(--text-subheading);
    margin-top: var(--space-4, 2rem);
    margin-bottom: 0.6rem;
}

.legal-doc h3 {
    color: var(--text);
    font-size: var(--text-body-lg);
    font-weight: 600;
    margin-top: var(--space-3, 1.5rem);
    margin-bottom: 0.4rem;
}

.legal-doc p,
.legal-doc li {
    color: var(--text-soft);
    line-height: 1.75;
}

.legal-doc p { margin-bottom: 1rem; }

.legal-doc ul,
.legal-doc ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.legal-doc li { margin-bottom: 0.4rem; }

.legal-doc strong { color: var(--text); }

.legal-doc a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-doc table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.legal-doc th,
.legal-doc td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
    vertical-align: top;
}

.legal-doc th { color: var(--text); font-weight: 600; }

/* Wraps a value that still needs filling in, so an unfinished document is obvious
   on the page rather than only in the source. */
.legal-placeholder {
    color: var(--text);
    background: rgba(255, 196, 0, 0.14);
    border-bottom: 1px dashed rgba(255, 196, 0, 0.6);
    padding: 0 0.2rem;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: var(--space-4, 2rem);
    padding-bottom: var(--space-3, 1.5rem);
    border-bottom: 1px solid var(--border);
}

.legal-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9375rem;
}

.legal-nav a:hover,
.legal-nav a.active { color: var(--text); }

/* NB-23: on a translated legal page, the note that the English version prevails. */
.legal-translation-note {
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-3, 1.5rem);
    margin-bottom: var(--space-4, 2rem);
    color: var(--text);
}

.legal-translation-note p { margin-bottom: 0.75rem; }

.legal-translation-note-hint {
    color: var(--text-soft);
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
}

.legal-contact {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-3, 1.5rem);
    margin-top: var(--space-4, 2rem);
}

/* The statutory company line under the footer. Deliberately quiet but present on
   every page — the disclosure requirement is about being permanently reachable,
   not about being prominent. */
.footer-legal-line {
    color: var(--text-soft);
    font-size: 0.75rem;
    line-height: 1.6;
    padding-top: 0.75rem;
    opacity: 0.75;
}

.footer-legal-line a { color: inherit; text-decoration: underline; }

/* Consent copy at signup. Small, but must stay legible — this is the line that
   evidences agreement, so it cannot be styled into invisibility. */
.register-consent {
    color: var(--text-soft);
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.register-consent a { color: var(--accent); text-decoration: underline; }

/* ── App downloads ──────────────────────────────────────────────────────── */

.dl-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

/* Official store artwork. Height is fixed and width follows, because both
   Google's and Apple's terms require the badge not be distorted. */
.dl-badge img {
    height: 48px;
    width: auto;
    display: block;
}

/* The unpublished state. Deliberately not a greyed-out official badge -- that
   would be a modified badge, which both stores' terms forbid. */
.dl-soon {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 1rem;
    border: 1px dashed var(--surface-border);
    border-radius: var(--radius-default);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-faint);
    white-space: nowrap;
}

.dl-apk {
    height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dl-apk-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-faint);
}

.dl-steps {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
    color: var(--text-soft);
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

.dl-steps li { margin-bottom: 0.6rem; }
