/* SSDILogic — mobile-first, conversion-led design.
   Calm, warm, legible: cream paper, deep navy ink, one confident red action colour.
   Fraunces (display) + Atkinson Hyperlegible (body, designed for low-vision readers).
   Base styles target a 375px phone; min-width queries add layout for larger screens. */

/* Brand font: Lingwood (self-hosted, same files as InsuranceLogic).
   Used for all headings via var(--font-brand). */
@font-face { font-family: 'Lingwood'; src: url('/fonts/Lingwood-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lingwood'; src: url('/fonts/Lingwood-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Palette */
  --ink:        #16212C;
  --ink-2:      #44515E;
  --paper:      #FBF8F3;
  --sand:       #F3ECE1;
  --line:       #E5DCCD;
  --white:      #FFFFFF;
  --navy:       #14263B;
  --navy-2:     #1D3550;
  --red:        #B3262B;
  --red-dark:   #8F1D21;
  --red-soft:   #FBE9E7;
  --sun:        #F4B26A;
  --ok:         #1F7A4D;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-brand:   'Lingwood', Georgia, 'Times New Roman', serif;
  --font-body:    'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape + depth */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(22,33,44,.06), 0 2px 8px rgba(22,33,44,.06);
  --shadow-md: 0 4px 12px rgba(22,33,44,.08), 0 16px 40px rgba(22,33,44,.10);
  --shadow-lg: 0 8px 24px rgba(22,33,44,.10), 0 32px 72px rgba(22,33,44,.16);
  --ease: cubic-bezier(.2,.7,.2,1);

  /* Layout */
  --max: 1120px; --max-narrow: 760px; --header-h: 64px;

  /* Legacy aliases — the ported widget + legal-page rules below use these names */
  --c-bg: var(--paper); --c-alt: var(--sand); --c-text: var(--ink); --c-muted: var(--ink-2);
  --c-brand: var(--red); --c-brand-dark: var(--red-dark); --c-brand-light: var(--red);
  --c-gold: var(--red); --c-dark: var(--navy); --c-accent: var(--navy); --c-line: var(--line);
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 {
  font-family: var(--font-brand); color: var(--navy);
  line-height: 1.15; letter-spacing: 0; margin: 0 0 .6em; font-weight: 400;
}
/* Lingwood Regular is thin: large headings use Regular, small ones use Bold.
   Keywords inside any heading are Bold. */
h3, h4 { font-weight: 700; }
h1 em, h2 em, h3 em, h4 em, h1 strong, h2 strong, h3 strong, h4 strong { font-style: normal; font-weight: 700; }
h1 { font-size: clamp(2rem, 8.4vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: var(--r-sm); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 1000; font-weight: 700; }
.skip-link:focus { left: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: var(--max-narrow); }
.main-wrapper { min-height: 60vh; }
a[href^="tel:"] { min-height: 44px; display: inline-flex; align-items: center; }
.section { padding: 3.5rem 0; }
.section--padded { padding: 3.5rem 0; }
.section--alt { background: var(--sand); }
.lead { font-size: 1.1rem; color: var(--ink-2); }

/* Reveal on scroll (js/app.js adds .is-visible) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Buttons ──────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 56px; padding: .9rem 1.6rem; border: 0; border-radius: var(--r-full);
  background: var(--red); color: #fff !important; font: 700 1.05rem/1.2 var(--font-body);
  text-decoration: none !important; cursor: pointer; box-shadow: 0 6px 18px rgba(179,38,43,.28);
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.button:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(179,38,43,.32); }
.button--ghost { background: transparent; color: var(--navy) !important; box-shadow: inset 0 0 0 2px var(--navy); }
.button--ghost:hover { background: var(--navy); color: #fff !important; box-shadow: inset 0 0 0 2px var(--navy); }
.button--light { background: #fff; color: var(--navy) !important; box-shadow: none; }
.button--light:hover { background: var(--sand); }
.button--block { width: 100%; }

/* ── Header ───────────────────────────────────────────── */
.navbar { position: sticky; top: 0; z-index: 60; background: rgba(251,248,243,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.navbar_inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.navbar_brand img { height: 34px; width: auto; }
.navbar_cta {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem;
  border-radius: var(--r-full); background: var(--navy); color: #fff !important; font-weight: 700; text-decoration: none !important; white-space: nowrap;
  transition: background .2s var(--ease);
}
.navbar_cta:hover { background: var(--navy-2); }
.navbar_cta_icon { width: 16px; height: 16px; fill: currentColor; }
.navbar_cta_number { display: none; }

/* ── Hero: headline + form first ─────────────────────── */
.hero {
  position: relative; overflow: hidden; padding: 2rem 0 3rem;
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(244,178,106,.38) 0%, rgba(244,178,106,0) 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(179,38,43,.07) 0%, rgba(179,38,43,0) 70%),
    var(--paper);
}
.hero_inner { display: grid; gap: 1.75rem; }
.hero_title { margin-bottom: .5em; }
.hero_title em { font-style: normal; color: var(--red); }
.hero_subtitle { font-size: 1.1rem; color: var(--ink-2); max-width: 34ch; margin-bottom: 1.1rem; }
.hero_checks { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-weight: 700; color: var(--navy); font-size: .95rem; }
.hero_checks li { display: inline-flex; align-items: center; gap: .4rem; }
.hero_checks svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.hero_phone { display: none; }

/* Form card */
.elig-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.25rem 1.1rem 1.1rem; box-shadow: var(--shadow-lg); position: relative; }
.elig-card-title em { font-style: normal; font-weight: 700; }
.elig-card-title { font-family: var(--font-brand); font-weight: 700; font-size: 1.25rem; color: var(--navy); margin: 0 0 .25rem; }
.elig-card-sub { margin: 0 0 1rem; color: var(--ink-2); font-size: .92rem; }
.elig-card #ll-form { min-height: 220px; }
.elig-trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1rem; margin: 1rem 0 .25rem; font-size: .82rem; color: var(--ink-2); font-weight: 700; }
.elig-trust-badges span::before { content: '✓'; color: var(--ok); margin-right: .3rem; }
.elig-fallback { text-align: center; margin: .5rem 0 0; font-size: .92rem; color: var(--ink-2); }
.elig-fallback a { font-weight: 700; }
.ll-form-fallback { padding: 1.25rem; text-align: center; font-weight: 700; }

/* ── Trust strip ──────────────────────────────────────── */
.trust { background: var(--navy); color: #fff; padding: 1.4rem 0; }
.trust_inner { display: grid; gap: .9rem; }
.trust_item { display: flex; gap: .8rem; align-items: center; font-weight: 700; }
.trust_icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--sun); }
.trust_icon svg { width: 20px; height: 20px; }
.trust_item small { display: block; font-weight: 400; color: rgba(255,255,255,.75); }

/* ── Steps ────────────────────────────────────────────── */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.3rem 1.3rem 4.4rem; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 1.1rem; top: 1.05rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); font: 700 1.35rem/1 var(--font-display); }
.step h3 { margin-bottom: .25rem; }
.step p { margin: 0; color: var(--ink-2); }

/* ── Photo split ──────────────────────────────────────── */
.split { display: grid; gap: 1.75rem; align-items: center; }
.split_media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; background: var(--sand); }
.split_media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.split_media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,38,59,0) 55%, rgba(20,38,59,.35) 100%); }

/* ── Accordions (qualify + FAQ) ───────────────────────── */
.acc { margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.acc details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.acc details[open] { box-shadow: var(--shadow-sm); border-color: #d6c9b3; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; min-height: 56px; font-weight: 700; color: var(--navy); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); color: var(--red); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: transform .2s var(--ease); }
.acc details[open] summary::after { content: '−'; }
.acc .acc_body { padding: 0 1.15rem 1.1rem; color: var(--ink-2); }
.acc .acc_body p:last-child { margin-bottom: 0; }

/* ── When to talk: cards ──────────────────────────────── */
.cards { display: grid; gap: 1rem; margin-top: 1.75rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--ink-2); }

/* ── Final CTA ────────────────────────────────────────── */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 3.5rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 90%; background: radial-gradient(closest-side, rgba(244,178,106,.35), rgba(244,178,106,0)); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 36ch; margin: 0 auto 1.4rem; }
.cta-band_actions { display: grid; gap: .8rem; justify-items: center; }
.cta-band .tel { color: #fff; font-weight: 700; font-size: 1.15rem; }

/* ── Footer ───────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.82); font-size: .9rem; padding-bottom: 5.5rem; }
.footer_inner { padding: 2.5rem 1.25rem 1.5rem; }
.footer_top { display: grid; gap: 1.1rem; }
.footer_brand img { height: 34px; width: auto; }
.footer_contact { display: grid; gap: .1rem; }
.footer_contact a { color: #fff; font-weight: 700; }
.footer_contact_label { color: rgba(255,255,255,.6); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer_divider { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 1.5rem 0; }
.footer_disclaimer p { margin: 0; color: rgba(255,255,255,.7); line-height: 1.65; font-size: .85rem; }
.footer_bottom { display: grid; gap: .9rem; }
.footer_copyright { margin: 0; color: rgba(255,255,255,.6); }
.footer_links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer_links a { color: #fff; min-height: 36px; display: inline-flex; align-items: center; }

/* ── Mobile sticky action bar ─────────────────────────── */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(251,248,243,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(22,33,44,.10);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.stickybar.is-shown { transform: none; }
.stickybar .button { min-height: 52px; padding: .7rem 1.2rem; font-size: 1rem; }
.stickybar .button--call { padding: .7rem 1.1rem; }

/* ── Page heading (legal/utility pages) ───────────────── */
.legal-content h1, .article-content h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }

/* ── ≥ 760px ──────────────────────────────────────────── */
@media (min-width: 760px) {
  .container { padding: 0 2rem; }
  .section, .section--padded { padding: 5rem 0; }
  .navbar_cta_number { display: inline; }
  .trust_inner { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 4.6rem 1.4rem 1.5rem; }
  .step::before { left: 1.4rem; top: 1.3rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer_top { grid-template-columns: 1fr auto; align-items: center; }
  .footer_bottom { grid-template-columns: 1fr auto; align-items: center; }
  .footer { padding-bottom: 0; }
  .stickybar { display: none; }
}
/* ── ≥ 1000px ─────────────────────────────────────────── */
@media (min-width: 1000px) {
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero_inner { grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
  .hero_phone { display: flex; align-items: center; gap: .75rem; margin-top: 1.4rem; color: var(--ink-2); }
  .hero_phone a { font: 700 1.3rem var(--font-display); color: var(--navy); text-decoration: none; }
  .elig-card { padding: 1.6rem 1.6rem 1.3rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split--rev .split_media { order: 2; }
}

/* Shown only when the lead-form widget cannot load */
.ll-form-fallback a { color: var(--red); }


/* ═══════ Lead-form widget skin (ported; widget markup is vendor-controlled) ═══════ */
/* ── LawLogic form (#ll-form) — ported from 911cancerlawsuit.com (WTC) ──
   The embedded widget renders Bootstrap markup: each choice is an
   <input type="radio" class="btn-check"> paired with a
   <label class="btn btn-light btn-outline-filter">, and Submit is a
   <button class="btn btn-primary">. Overrides must therefore target
   .btn / label.btn / .btn-primary — plain `button` and `input[type=submit]`
   selectors match nothing in this widget.

   The structural rules below are WTC's verbatim, with two deliberate
   differences: the choice grid is single-column (WTC uses two), and
   .incident_type-wrapper is added alongside .btn-group because AL's form
   build wraps its options in that class. Colors stay AL's light card
   rather than WTC's dark glassmorphism skin. */

/* Global resets */
#ll-form,
#ll-form * {
  font-family: var(--font-body) !important;
  box-sizing: border-box;
}
#ll-form form { margin: 0; }

/* Button layout — single column, applies everywhere.
   The widget names each step's option container after its field
   (incident_type-wrapper, accident_date-wrapper, ...), so keying the
   layout off the wrapper class only ever styles the step you happen to
   have looked at. The buttons are width:100% flex boxes, which already
   stack one per row inside any block container — so spacing rides on the
   buttons themselves (margin-bottom, below) and works on every step
   regardless of what the wrapper is called. These rules only neutralise
   Bootstrap's horizontal .btn-group, which would otherwise fight it. */
#ll-form .btn-group,
#ll-form .btn-group-toggle,
#ll-form [role="group"] {
  display: block !important;
  width: 100%;
  border: none !important;
}

/* Desktop only: lay the choice buttons out in two columns. The hidden
   .btn-check inputs are absolutely positioned, so they take no grid cell;
   only the labels flow. Keyed off :has(> label.btn) so it follows whatever
   the widget names each step's wrapper. Below 901px the single-column
   stack above is untouched. */
@media (min-width: 901px) {
  #ll-form :has(> label.btn) {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: .75rem;
    align-items: stretch;
  }
  #ll-form :has(> label.btn) > input.btn-check {
    position: absolute !important;
  }
  /* Odd count: the last button spans both columns instead of sitting alone */
  #ll-form :has(> label.btn) > label.btn:last-of-type:nth-of-type(odd) {
    grid-column: 1 / -1;
  }
  /* Anything else sharing the container (Submit, headings) stays full width */
  #ll-form :has(> label.btn) > :not(label.btn):not(input.btn-check) {
    grid-column: 1 / -1;
  }
}

/* Button shape — applies everywhere */
#ll-form .btn,
#ll-form label.btn,
#ll-form button.btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem 1.25rem !important;
  border-radius: var(--r-lg) !important;
  font-size: .975rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all .2s var(--ease) !important;
  text-align: center;
  width: 100%;
  line-height: 1.4;
  box-shadow: none !important;
  margin: 0 0 .75rem !important;     /* replaces Bootstrap's me-2 / mb-3 */
}

/* Focus ring — applies everywhere */
#ll-form .btn:focus,
#ll-form .btn:focus-visible {
  outline: 2px solid var(--c-gold) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* Field rows fill the card. The widget lays the contact step out on a
   Bootstrap 12-column grid but only ever spends 9 of them — col-sm-4 +
   col-sm-5 for the name/phone/email pairs and col-sm-9 for the consent
   block — leaving a dead 25% strip down the right-hand side. Letting the
   columns flex-grow spends the full row: pairs land at 50/50 and the
   consent block goes full width, whatever column classes the vendor emits. */
#ll-form .ll_sec_flds > [class*="col-"] {
  flex: 1 1 0 !important;
  max-width: 100% !important;
}

/* Input shape — applies everywhere */
#ll-form input[type="text"],
#ll-form input[type="email"],
#ll-form input[type="tel"],
#ll-form input[type="date"],
#ll-form select,
#ll-form textarea,
#ll-form .form-control {
  border-radius: var(--r-md) !important;
  font-size: .975rem !important;
  padding: .75rem 1rem !important;
  width: 100%;
  transition: border-color .2s var(--ease);
}
#ll-form .form-control:focus,
#ll-form input:focus,
#ll-form select:focus {
  border-color: var(--c-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(193,53,57,0.2) !important;
}

/* Hide the "No Accidents" option on the fault question. The widget emits
   input/label pairs, so the option is label:nth-child(6) positionally — but
   keying off the input's value survives the vendor reordering or inserting
   options, where a positional selector would silently hide the wrong one.
   The form is novalidate, so removing a member of a required radio group
   raises no constraint-validation issue. */
#ll-form .accident_fault-wrapper > input[value="No Accidents"],
#ll-form .accident_fault-wrapper > input[value="No Accidents"] + label {
  display: none !important;
}

/* Searchable state dropdown (step 3). The widget builds a custom Bootstrap
   dropdown whose wrapper carries .dropdown-center, so Popper centres the menu
   on the toggle: with a content-sized menu (211px) under a full-width button
   (473px) that meant a 131px indent and a menu far narrower than the field.
   Matching the menu to the wrapper makes the centring offset resolve to zero
   on its own — Popper measures the element after CSS, so no positioning
   override is needed. */
#ll-form .js-bs-select-dropdown .dropdown-menu {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

/* Strip Bootstrap card/panel chrome — applies everywhere */
#ll-form .card,
#ll-form .panel,
#ll-form .well {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
#ll-form .card-body,
#ll-form .panel-body { padding: 0 !important; }

/* Hide the widget's own progress bar — the card renders the segmented
   .elig-step-indicator above the form instead. */
#ll-form .progress { display: flex !important; height: 8px !important; border-radius: 99px !important; background: var(--sand) !important; margin: 0 0 1.1rem !important; overflow: hidden; }
#ll-form .progress-bar { background: var(--red) !important; border-radius: 99px; }

/* ── Light skin — eligibility card on the home page ─────────────────── */
.elig-card #ll-form .btn,
.elig-card #ll-form label.btn,
.elig-card #ll-form button.btn {
  border: 1px solid var(--c-line) !important;
  background: #fff !important;
  color: var(--c-text) !important;
}
.elig-card #ll-form .btn:hover,
.elig-card #ll-form label.btn:hover {
  border-color: var(--c-gold) !important;
  background: var(--c-alt) !important;
  color: var(--c-text) !important;
}
.elig-card #ll-form .btn.active,
.elig-card #ll-form .btn:active,
.elig-card #ll-form .btn-check:checked + .btn,
.elig-card #ll-form .btn-check:checked + label.btn {
  border-color: var(--c-brand) !important;
  background: var(--c-brand) !important;
  color: #fff !important;
}

/* Submit — brand red, matching the navbar CTA.
   Scoped with .elig-card as well as bare, so it outranks the light-skin
   `.elig-card #ll-form .btn` rule above (equal specificity, declared later). */
#ll-form .btn-primary,
#ll-form button.btn-primary,
.elig-card #ll-form .btn-primary,
.elig-card #ll-form button.btn-primary {
  border: 1px solid transparent !important;   /* matches the choice buttons' 1px border so heights are equal */
  background: var(--c-brand) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 1rem 1.25rem !important;   /* same height as the choice buttons */
  width: 100% !important;             /* full width, like a spanning "Other" */
  margin: 1rem 0 0 !important;
}
/* The widget centres Submit inside a shrink-wrapped container, so width:100%
   on the button alone resolves to its own content width. Make the container
   (whatever it is called) a full-width block so the button can fill it. */
#ll-form :has(> .btn-primary) {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  text-align: initial !important;
}
#ll-form .btn-primary:hover,
.elig-card #ll-form .btn-primary:hover,
.elig-card #ll-form button.btn-primary:hover {
  background: var(--c-brand-dark) !important;
  color: #fff !important;
}


/* ═══════ Legal / article typography ═══════ */
/* ──────── Article + Legal content typography ──────── */
.article-content, .legal-content {
  /* Legal copy contains full regulator URLs (the EU authorities index is 76
     characters with no break opportunity). Without this they refuse to wrap and
     push the page 121px wider than a phone viewport, giving the whole document
     a horizontal scroll. */
  overflow-wrap: break-word;
  font-size: 1rem; line-height: 1.7;
}
.article-content h1, .legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.article-content h2, .legal-content h2 {
  font-size: 1.5rem; margin-top: 2.25rem; margin-bottom: .75rem;
  padding-top: 1rem; border-top: 1px solid var(--c-line);
}
.article-content h3, .legal-content h3 {
  font-size: 1.15rem; color: var(--c-accent); margin-top: 1.5rem; margin-bottom: .5rem;
}
.article-content h5, .legal-content h5 {
  font-size: 1.05rem; font-weight: 700; color: var(--c-muted);
  margin: 0 0 1rem;
}
.article-content p, .legal-content p { margin: 0 0 1rem; color: var(--ink); }
.article-content ul, .legal-content ul,
.article-content ol, .legal-content ol { margin: 0 0 1.25rem 1.5rem; }
.article-content li, .legal-content li { margin-bottom: .4rem; }
.article-content a, .legal-content a { color: var(--c-brand); text-decoration: underline; }
.article-content img { border-radius: var(--r-md); margin: 1.25rem 0; }

/* Wide tables scroll inside their own box instead of widening the page. The
   privacy policy's category table has a 354px min-content width, which is
   wider than a 320px phone and was forcing the whole document sideways. The
   wrapper does the scrolling so the <table> keeps its native semantics. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.25rem;
}
.article-content table,
.legal-content table {
  border-collapse: collapse;
  min-width: 100%;
}
.article-content th, .legal-content th,
.article-content td, .legal-content td {
  border: 1px solid var(--c-line);
  padding: .5rem .65rem;
  text-align: left;
  vertical-align: top;
}
.legal-content { color: var(--ink); }
.legal-content em { color: var(--c-muted); }
.legal-effective {
  color: var(--c-muted); font-style: italic; margin-bottom: 2rem;
}


/* ═══════ CCPA webform ═══════ */
/* ──────── CCPA form ──────── */
.ccpa-form {
  background: var(--c-alt); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 1.5rem; margin: 2rem 0;
}
.ccpa-form fieldset { border: 0; padding: 0; margin: 0; }
.ccpa-form legend { font-weight: 700; color: var(--c-accent); margin-bottom: .75rem; font-size: 1.1rem; }
.ccpa-form_group { margin: 1rem 0; padding: .75rem; background: #fff; border-radius: var(--r-md); }
.ccpa-form_group legend { font-size: .95rem; }
.ccpa-form label {
  display: block; margin-bottom: .9rem; font-weight: 600; font-size: .95rem;
}
.ccpa-form_group label { display: block; font-weight: 400; margin-bottom: .35rem; }
.ccpa-form input[type=text], .ccpa-form input[type=email],
.ccpa-form input[type=tel], .ccpa-form textarea {
  display: block; width: 100%; margin-top: .35rem;
  padding: .55rem .75rem; border: 1px solid var(--c-line);
  border-radius: var(--r-md); font: inherit;
}
.ccpa-form_consent { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.ccpa-form_consent input { margin-top: .25rem; }
.ccpa-form_alt { color: var(--c-muted); font-size: .9rem; }

