/* ==========================================================================
   CoverCapy — Sitewide Footer Styles
   Scoped under .cc-footer. Full-bleed transparent footer that blends
   into the page background; only CTA tiles remain softly carded. Teal = patients, amber = dentists.
   Layout is 100% CSS (grid/flex). JS only: mobile accordion + optional
   side-rail hide. Tuned ~30% shorter than the previous build.
   ========================================================================== */

.cc-footer {
  /* ---- Warm cream + parchment ground ---- */
  --cc-ivory:       #F4F1E8;
  --cc-cream:       #FBFAF4;
  --cc-cream-2:     #F7F3E9;
  --cc-parchment:   #ECE6D6;
  --cc-parchment-2: #F1ECDE;

  /* ---- Text ---- */
  --cc-graphite:    #2A2D26;
  --cc-graphite-2:  #62665A;
  --cc-muted:       #8B8F82;

  /* ---- CoverCapy comparison-page palette (source of truth for CTAs) ---- */
  --capy-green-dark:  #335B4C;
  --capy-green:       #42665C;
  --capy-green-light: #70A183;
  --capy-orange-dark: #754625;
  --capy-orange:      #8F5F38;
  --capy-orange-light:#AE7A4B;

  /* ---- Patient: green (mapped to comparison palette) ---- */
  --cc-teal-900:    var(--capy-green-dark);
  --cc-teal-700:    var(--capy-green);
  --cc-teal-500:    var(--capy-green-light);
  --cc-teal-tint:   rgba(66, 102, 92, 0.07);
  --cc-teal-tint-2: rgba(66, 102, 92, 0.22);

  /* ---- Dentist: copper (mapped to comparison palette) ---- */
  --cc-amber-900:   var(--capy-orange-dark);
  --cc-amber-700:   var(--capy-orange);
  --cc-amber-500:   var(--capy-orange-light);
  --cc-amber-tint:  rgba(143, 95, 56, 0.08);
  --cc-amber-tint-2:rgba(174, 122, 75, 0.30);

  /* ---- Soft lavender (ambient only) ---- */
  --cc-lavender:    rgba(150, 140, 200, 0.15);

  /* ---- Accent ---- */
  --cc-gold:        #A98A4B;

  /* ---- Lines & shadows — light, refined ---- */
  --cc-line:        rgba(42, 45, 38, 0.085);
  --cc-line-soft:   rgba(42, 45, 38, 0.05);
  --cc-shadow-soft: 0 22px 56px -46px rgba(42, 45, 38, 0.30);
  --cc-shadow-card: 0 14px 36px -32px rgba(42, 45, 38, 0.22);

  /* ---- Radii — consistent scale ---- */
  --cc-radius-shell: 28px;
  --cc-radius-card:  18px;
  --cc-radius-pill:  999px;

  /* ---- Consistent gap scale (drives the compact vertical rhythm) ---- */
  --footer-gap-xs: clamp(6px, 0.8vw, 9px);
  --footer-gap-sm: clamp(10px, 1.2vw, 14px);
  --footer-gap-md: clamp(16px, 2vw, 22px);
  --footer-gap-lg: clamp(22px, 2.8vw, 30px);

  /* ---- Type ---- */
  --cc-serif: "Fraunces", "Hoefler Text", "Iowan Old Style", "Palatino Linotype",
              "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --cc-sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
              Helvetica, Arial, sans-serif;

  /* ---- Inner content width ---- */
  --cc-maxw: 1760px;
  --cc-gutter: clamp(36px, 6vw, 128px);

  position: relative;
  isolation: isolate;
  overflow: visible;                /* no framed footer background; blends into page */
  background: transparent;
  color: var(--cc-graphite);
  font-family: var(--cc-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Full-bleed vertical rhythm. Horizontal gutters live on .cc-footer-shell. */
  padding: clamp(44px, 5.5vw, 78px) 0 clamp(24px, 3vw, 40px);
}

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

/* ---- Ambient glow: teal (left), amber (right), lavender (center) ---- */
.cc-footer-aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: none; /* removed: footer should inherit the page background, not create its own panel */
}

/* ==========================================================================
   SHELL — one cohesive concierge module
   ========================================================================== */
.cc-footer-shell {
  max-width: var(--cc-maxw);
  width: min(calc(100% - var(--cc-gutter)), var(--cc-maxw));
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 0;
}

/* ---- Eyebrow ---- */
.cc-footer-eyebrow {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--footer-gap-sm);
}
.cc-footer-eyebrow--teal  { color: var(--cc-teal-700); }
.cc-footer-eyebrow--amber { color: var(--cc-amber-700); }

/* ---- Buttons ---- */
.cc-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;                 /* identical button height across both cards */
  font-family: var(--cc-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;                   /* height comes from min-height, not text */
  text-decoration: none;
  white-space: nowrap;
  padding: 0 24px;                  /* horizontal-only padding => consistent rhythm */
  border-radius: var(--cc-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  flex: 0 0 auto;                   /* button keeps full width on the row */
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.cc-footer-btn--teal {
  background: linear-gradient(180deg, #70A183 0%, #42665C 48%, #335B4C 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(51, 91, 76, .24);
}
.cc-footer-btn--teal:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow: 0 20px 42px rgba(51, 91, 76, .30);
}
.cc-footer-btn--amber {
  background: linear-gradient(180deg, #AE7A4B 0%, #8F5F38 48%, #754625 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(117, 70, 37, .24);
}
.cc-footer-btn--amber:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow: 0 20px 42px rgba(117, 70, 37, .30);
}

/* ---- Text links (sit on their own line beneath the button) ---- */
.cc-footer-textlink {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease, color .2s ease, opacity .18s ease, transform .18s ease;
}
.cc-footer-textlink:hover { opacity: .82; transform: translateX(2px); }
.cc-footer-textlink--teal  { color: var(--cc-teal-700); }
.cc-footer-textlink--teal:hover  { color: var(--cc-teal-900); gap: 10px; }
.cc-footer-textlink--amber { color: var(--cc-amber-700); }
.cc-footer-textlink--amber:hover { color: var(--cc-amber-900); gap: 10px; }
.cc-footer-arrow { transition: transform .25s ease; }
.cc-footer-textlink:hover .cc-footer-arrow { transform: translateX(3px); }

/* ==========================================================================
   1. TOP ROW — brand (1fr) + patient card (.95fr) + dentist card (.95fr)
   ========================================================================== */
.cc-footer-top {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(340px, .96fr) minmax(340px, .96fr);
  gap: clamp(22px, 2.4vw, 44px);
  align-items: stretch;
  padding-bottom: clamp(26px, 3vw, 44px);
  margin-bottom: clamp(28px, 3.2vw, 46px);
  border-bottom: 1px solid var(--cc-line);
}

/* ---- Brand column — compact, pills sit just under copy ---- */
.cc-footer-brand {
  display: flex;
  flex-direction: column;
  padding-right: clamp(8px, 1.5vw, 18px);
}
.cc-footer-logo {
  font-family: var(--cc-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--cc-graphite);
  text-decoration: none;
}
.cc-footer-badge {
  align-self: flex-start;
  margin: var(--footer-gap-sm) 0 var(--footer-gap-sm);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cc-teal-700);
  background: var(--cc-teal-tint);
  border: 1px solid var(--cc-teal-tint-2);
  padding: 5px 11px;
  border-radius: var(--cc-radius-pill);
}
.cc-footer-brand-copy {
  margin: 0 0 var(--footer-gap-sm);
  font-size: 0.89rem;
  color: var(--cc-graphite-2);
  max-width: 40ch;
}
.cc-footer-pills {
  list-style: none;
  margin: 0;                        /* sits close to copy — no bottom float */
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--footer-gap-xs);
}
.cc-footer-pills li {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cc-graphite-2);
  padding: 5px 12px;
  border-radius: var(--cc-radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--cc-line);
}

/* ---- CTA tiles — grid rows give both cards identical internal rhythm ----
   Rows: eyebrow / title / copy(reserved height) / actions.
   The copy row reserves a min-height so the actions row lands at the SAME
   vertical position in both cards without bottom-pinning (no margin-top:auto). */
.cc-footer-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(84px, auto) auto;
  align-content: start;
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: var(--cc-radius-card);
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF8EE 100%);
  border: 1px solid var(--cc-line);
  box-shadow: var(--cc-shadow-card);
}
.cc-footer-card > * { position: relative; z-index: 1; }

.cc-footer-card--patient { border-top: 2px solid var(--cc-teal-tint-2); }
.cc-footer-card--patient::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(61, 161, 161, 0.14), transparent 62%),
    radial-gradient(48% 48% at 0% 100%, rgba(30, 126, 126, 0.06), transparent 62%);
  pointer-events: none;
}
.cc-footer-card--dentist { border-top: 2px solid var(--cc-amber-tint-2); }
.cc-footer-card--dentist::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(212, 154, 94, 0.17), transparent 62%),
    radial-gradient(48% 48% at 0% 100%, rgba(178, 112, 57, 0.06), transparent 62%);
  pointer-events: none;
}

.cc-footer-card-title {
  font-family: var(--cc-serif);
  font-weight: 500;
  font-size: clamp(1.28rem, 1.8vw, 1.55rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--cc-graphite);
  margin: 0 0 var(--footer-gap-sm);
  text-wrap: balance;               /* avoids awkward single-word last lines */
}
.cc-footer-card-title em { font-style: italic; font-weight: 500; }
.cc-footer-card--patient .cc-footer-card-title em { color: var(--cc-teal-700); }
.cc-footer-card--dentist .cc-footer-card-title em { color: var(--cc-amber-700); }

.cc-footer-card-copy {
  margin: 0;
  min-height: 84px;                 /* reserved height => CTA rows align across cards */
  font-size: 0.89rem;
  color: var(--cc-graphite-2);
}
.cc-footer-card-actions {
  margin-top: 28px;                 /* CTA sits right after copy, equal in both cards */
  display: flex;
  flex-direction: column;           /* button over link: fits at card width, no clipping */
  align-items: flex-start;
  gap: 14px;                        /* identical primary→secondary spacing in both cards */
}

/* ==========================================================================
   2. NAVIGATION ROW — 5 columns, tight luxury directory
   ========================================================================== */
.cc-footer-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(28px, 4.6vw, 92px);
  padding-bottom: clamp(28px, 3.6vw, 48px);
  margin-bottom: clamp(18px, 2.4vw, 32px);
  border-bottom: 1px solid var(--cc-line);
}
.cc-footer-col { min-width: 0; }
.cc-footer-col-head { margin: 0; }
.cc-footer-col-toggle {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--cc-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cc-graphite);
  padding-bottom: var(--footer-gap-sm);
  cursor: default;
}
.cc-footer-chevron {
  display: none;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--cc-graphite-2);
  border-bottom: 1.5px solid var(--cc-graphite-2);
  transform: rotate(45deg);
  transition: transform .3s ease;
  margin-left: 12px;
  flex: none;
}
.cc-footer-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--footer-gap-xs);
}
.cc-footer-col-list a {
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--cc-graphite-2);
  display: inline-block;
  transition: color .2s ease;
}
.cc-footer-col-list a:hover { color: var(--cc-teal-700); }

/* ==========================================================================
   3. NATIONWIDE DISCOVERY — slim horizontal SEO rail
   ========================================================================== */
.cc-footer-discovery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--footer-gap-lg);
  row-gap: var(--footer-gap-sm);
  padding: clamp(18px, 2vw, 26px) 0;
  margin-bottom: clamp(18px, 2.5vw, 34px);
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--cc-line);
  border-bottom: 1px solid var(--cc-line-soft);
}
.cc-footer-discovery-head { min-width: 0; }
.cc-footer-discovery-title {
  font-family: var(--cc-serif);
  font-weight: 500;
  font-size: clamp(1.0rem, 1.4vw, 1.18rem);
  line-height: 1.25;
  margin: 0 0 2px;
  padding-left: 0.04em;             /* guard against italic glyph clipping */
  color: var(--cc-graphite);
}
.cc-footer-discovery-title em {
  font-style: italic;
  color: var(--cc-gold);
  padding-right: 0.04em;
}
.cc-footer-discovery-intro {
  margin: 0;
  font-size: 0.84rem;
  color: var(--cc-graphite-2);
}
.cc-footer-discovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--footer-gap-xs);
  justify-content: flex-end;
}
.cc-footer-markets {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding-top: var(--footer-gap-sm);
  border-top: 1px solid var(--cc-line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: var(--footer-gap-xs);
}

/* ---- Pills ---- */
.cc-footer-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--cc-graphite);
  padding: 7px 14px;
  border-radius: var(--cc-radius-pill);
  background: transparent;
  border: 1px solid rgba(42, 45, 38, 0.18);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.cc-footer-pill:hover {
  border-color: var(--cc-teal-700);
  color: var(--cc-teal-700);
}
.cc-footer-markets a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cc-graphite-2);
  padding: 6px 12px;
  border-radius: var(--cc-radius-pill);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(42, 45, 38, 0.11);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.cc-footer-markets a:hover {
  border-color: var(--cc-teal-500);
  color: var(--cc-teal-700);
  background: #fff;
}

/* ==========================================================================
   4. LEGAL — compact parchment band
   ========================================================================== */
.cc-footer-legal {
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--cc-line);
  padding: clamp(16px, 2vw, 24px) 0 0;
}
.cc-footer-legal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--footer-gap-xs) var(--footer-gap-md);
  padding-bottom: var(--footer-gap-sm);
  margin-bottom: var(--footer-gap-sm);
  border-bottom: 1px solid var(--cc-line);
}
.cc-footer-copyright {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cc-graphite);
}
.cc-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--footer-gap-xs) var(--footer-gap-md);
}
.cc-footer-legal-links a {
  font-size: 0.76rem;
  text-decoration: none;
  color: var(--cc-graphite-2);
  transition: color .2s ease;
}
.cc-footer-legal-links a:hover { color: var(--cc-teal-700); }
.cc-footer-fineprint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--cc-muted);
  max-width: 110ch;
}
.cc-footer-fineprint em {
  font-style: italic;
  color: var(--cc-graphite-2);
}
.cc-footer-fineprint--second {
  margin-top: 8px;
}

/* ==========================================================================
   Focus — obvious & elegant
   ========================================================================== */
.cc-footer a:focus-visible,
.cc-footer button:focus-visible {
  outline: 2px solid var(--cc-teal-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   Optional: side-scroll rail hide hook
   footer.js adds .cc-side-rail-hidden to a rail you register so it fades out
   while the footer is on screen and never overlaps the CTA cards.
   Default target class is .cc-side-rail — override in footer.js if needed.
   ========================================================================== */
.cc-side-rail {
  transition: opacity .3s ease, visibility .3s ease;
}
.cc-side-rail-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}



/* ==========================================================================
   Wide desktop polish — prevents the footer from looking like a small app card
   when the browser is zoomed out on large monitors.
   ========================================================================== */
@media (min-width: 1440px) {
  .cc-footer-brand-copy { max-width: 48ch; }
  .cc-footer-card { padding: clamp(24px, 2vw, 34px); }
  .cc-footer-card-title { font-size: clamp(1.44rem, 1.36vw, 1.76rem); }
  .cc-footer-nav { grid-template-columns: 1.06fr 1.1fr 1.1fr 1.06fr .98fr; }
}

@media (min-width: 1800px) {
  .cc-footer { --cc-gutter: clamp(80px, 7vw, 156px); }
  .cc-footer-shell { max-width: 1840px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet/mobile threshold per spec: 900px */
@media (max-width: 900px) {
  .cc-footer-top {
    grid-template-columns: 1fr;     /* brand, then stacked full-width cards */
    gap: var(--footer-gap-md);
  }
  .cc-footer-brand { padding-right: 0; }

  .cc-footer-nav {
    grid-template-columns: 1fr;     /* accordion */
    gap: 0;
  }
  .cc-footer-col { border-bottom: 1px solid var(--cc-line); }
  .cc-footer-col:last-child { border-bottom: none; }
  .cc-footer-col-toggle {
    cursor: pointer;
    min-height: 44px;               /* tap target */
    padding: 12px 2px;
    font-size: 0.76rem;
  }
  .cc-footer-chevron { display: inline-block; }
  .cc-footer-col-toggle[aria-expanded="true"] .cc-footer-chevron { transform: rotate(-135deg); }

  .cc-footer-col-list {
    max-height: 0;
    overflow: hidden;
    gap: 0;
    transition: max-height .35s ease, padding .35s ease;
  }
  .cc-footer-col-list li a {
    display: block;
    padding: 10px 2px;
    font-size: 0.92rem;
  }
  .cc-footer-col-list.cc-footer-open {
    max-height: 520px;
    padding-bottom: 8px;
  }

  /* Discovery strip stacks */
  .cc-footer-discovery { grid-template-columns: 1fr; }
  .cc-footer-discovery-actions { justify-content: flex-start; width: 100%; }
}

/* CTA stacks full-width on smaller screens (spec breakpoint: 720px) */
@media (max-width: 720px) {
  .cc-footer-card-copy { min-height: 0; }   /* no reserved height once stacked */
  .cc-footer-card-actions { align-items: stretch; gap: 12px; }
  .cc-footer-btn { width: 100%; }
  .cc-footer-textlink { align-self: flex-start; padding: 2px 0; }
}

/* Phones */
@media (max-width: 480px) {
  .cc-footer {
    --cc-gutter: clamp(20px, 6vw, 32px);
    padding-top: clamp(28px, 8vw, 44px);
  }
  .cc-footer-shell {
    border-radius: 0;
    padding: 0;
  }
  .cc-footer-card { padding: 18px; }

  .cc-footer-card-title { font-size: 1.24rem; }
  .cc-footer-logo { font-size: 1.38rem; }
  .cc-footer-badge { font-size: 0.64rem; }

  .cc-footer-pill { padding: 9px 16px; font-size: 0.84rem; }
  .cc-footer-markets a { padding: 8px 14px; font-size: 0.84rem; }

  .cc-footer-legal { padding: 16px; }
  .cc-footer-legal-top { flex-direction: column; align-items: flex-start; }
  .cc-footer-legal-links a { padding: 2px 0; font-size: 0.82rem; }
  .cc-footer-fineprint { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-footer * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   LEGAL MODAL — ivory glass dialog (shared, reusable)
   Outside .cc-footer scope because the overlay is fixed to the viewport.
   ========================================================================== */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(112, 161, 131, .16), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(174, 122, 75, .14), transparent 36%),
    rgba(22, 26, 24, .48);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.legal-modal-overlay.is-open { display: flex; }

.legal-modal {
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border-radius: 28px;
  background: rgba(255, 252, 244, .96);
  border: 1px solid rgba(80, 70, 50, .16);
  box-shadow: 0 30px 90px rgba(24, 30, 28, .26);
  padding: 30px;
  color: #2e302c;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.legal-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(80, 70, 50, .12);
  margin-bottom: 20px;
}
.legal-modal-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #42665C;
}
.legal-modal h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
  color: #252823;
}
.legal-modal-body {
  font-size: 15px;
  line-height: 1.68;
  color: rgba(40, 42, 38, .78);
}
.legal-modal-body p { margin: 0 0 14px; }
.legal-modal-body ul { margin: 0 0 18px; padding-left: 20px; }
.legal-modal-body li { margin-bottom: 10px; }
.legal-modal-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(66, 102, 92, .08);
  border: 1px solid rgba(66, 102, 92, .14);
  color: rgba(40, 42, 38, .74);
  font-size: 13px;
}
.legal-modal-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(80, 70, 50, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #2e302c;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.legal-modal-close:hover { transform: rotate(4deg); background: rgba(255, 255, 255, .94); }
.legal-modal-close:focus-visible { outline: 2px solid #42665C; outline-offset: 3px; }

body.legal-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .legal-modal { padding: 22px; border-radius: 22px; }
  .legal-modal-header { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-modal-close, .legal-modal-overlay { transition: none !important; }
}
