@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
/* Served to visitors as assets/dist/tokens.<hash>.css (see inc/assets.php): edit this file, never the dist copy. */

:root {
  --blue-50:  oklch(0.97 0.02 260);
  --blue-100: oklch(0.93 0.04 260);
  --blue-200: oklch(0.85 0.09 260);
  --blue-300: oklch(0.72 0.14 260);
  --blue-400: oklch(0.50 0.20 260);
  --blue-500: oklch(0.40 0.21 260);
  --blue-600: oklch(0.34 0.20 260);
  --blue-700: oklch(0.26 0.16 260);
  --blue-800: oklch(0.19 0.10 260);
  --blue-900: oklch(0.13 0.06 260);

  --red-50:  oklch(0.97 0.02 25);
  --red-100: oklch(0.93 0.05 25);
  --red-200: oklch(0.84 0.10 25);
  --red-300: oklch(0.74 0.15 25);
  --red-400: oklch(0.62 0.21 25);
  --red-500: oklch(0.54 0.22 25);
  --red-600: oklch(0.48 0.21 25);
  --red-700: oklch(0.40 0.18 25);
  --red-800: oklch(0.32 0.14 25);
  --red-900: oklch(0.22 0.08 25);

  --cream-50:  #FBF8F1;
  --cream-100: #F7F1E6;
  --cream-200: #EFE7D6;
  --cream-300: #E4D8C0;
  --cream-400: #D2C2A2;

  --ink:   oklch(0.18 0.02 260);
  --ink-2: oklch(0.40 0.02 260);
  --ink-3: oklch(0.56 0.01 260);
  --line:  oklch(0.92 0.01 80);
  --line-2:oklch(0.86 0.015 80);
  --paper: #FFFFFF;

  --bg:           var(--cream-100);
  --bg-paper:     var(--paper);
  --bg-soft:      var(--cream-50);
  --bg-warm:      var(--cream-200);
  --bg-deep:      var(--blue-800);
  --bg-deepest:   var(--blue-900);

  --fg:           var(--ink);
  --fg-muted:     var(--ink-2);
  --fg-faint:     var(--ink-3);
  --fg-on-deep:   var(--cream-100);

  --primary:       var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-fg:    var(--cream-50);
  --accent:        var(--red-600);
  --accent-hover:  var(--red-700);
  --accent-fg:     var(--cream-50);

  --link:       var(--blue-600);
  --link-hover: var(--blue-800);

  --success: oklch(0.62 0.14 150);
  --warning: oklch(0.78 0.15 75);
  --danger:  var(--red-500);

  --ring: oklch(0.50 0.20 260 / 0.55);

  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-sans:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-display-xl: clamp(56px, 7.2vw, 96px);
  --t-display-lg: clamp(40px, 5vw, 72px);
  --t-display-md: clamp(32px, 3.4vw, 48px);
  --t-h1: 56px;
  --t-h2: 40px;
  --t-h3: 28px;
  --t-h4: 22px;
  --t-h5: 18px;
  --t-body-lg: 18px;
  --t-body:    16px;
  --t-body-sm: 14px;
  --t-caption: 12px;
  --t-eyebrow: 12px;

  --lh-tight: 1.04;
  --lh-snug:  1.18;
  --lh-body:  1.55;
  --lh-loose: 1.7;

  --tr-display: -0.02em;
  --tr-eyebrow: 0.14em;

  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px oklch(0.18 0.02 260 / 0.04), 0 4px 12px oklch(0.18 0.02 260 / 0.06);
  --shadow-2: 0 2px 4px oklch(0.18 0.02 260 / 0.05), 0 8px 24px oklch(0.18 0.02 260 / 0.10);
  --shadow-3: 0 4px 8px oklch(0.18 0.02 260 / 0.08), 0 24px 60px oklch(0.18 0.02 260 / 0.18);
  --shadow-inner: inset 0 1px 2px oklch(0.18 0.02 260 / 0.07);

  --ease:   cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms;
  --t-mid:  240ms;
  --t-slow: 480ms;

  --container:      1200px;
  --container-wide: 1400px;
  --gutter:         24px;
}

/* ── Reset & base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--fg);
  font-weight: 600;
  line-height: var(--lh-snug);
}
h1 { font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: var(--tr-display); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }
h5 { font-size: var(--t-h5); font-weight: 500; }

.display-xl { font-family: var(--font-display); font-weight: 500; font-size: var(--t-display-xl); letter-spacing: var(--tr-display); line-height: var(--lh-tight); }
.display-lg { font-family: var(--font-display); font-weight: 500; font-size: var(--t-display-lg); letter-spacing: var(--tr-display); line-height: var(--lh-tight); }
.display-md { font-family: var(--font-display); font-weight: 500; font-size: var(--t-display-md); letter-spacing: var(--tr-display); line-height: var(--lh-tight); }
.display em, .display-xl em, .display-lg em, .display-md em,
h1.serif em, h2.serif em { font-style: italic; color: var(--accent); font-feature-settings: "ss01"; }

.serif { font-family: var(--font-display); font-weight: 500; }
.mono  { font-family: var(--font-mono); font-size: 13px; }

.eyebrow {
  font-size: var(--t-eyebrow);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--tr-eyebrow);
  font-weight: 600;
  color: var(--accent);
  display: block;
}

p { margin: 0; }
.body-lg { font-size: var(--t-body-lg); line-height: var(--lh-body); }
.body    { font-size: var(--t-body);    line-height: var(--lh-body); }
.body-sm { font-size: var(--t-body-sm); line-height: var(--lh-body); color: var(--fg-muted); }
.caption { font-size: var(--t-caption); color: var(--fg-muted); }

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-thickness var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; }
input, textarea, select { font-family: var(--font-sans); }

::selection { background: var(--blue-200); color: var(--ink); }

/* ── Layout helpers ──────────────────────────────────────────────────── */
.container      { max-width: var(--container);      margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px; line-height: 1;
  border-radius: var(--r-md); padding: 12px 20px; cursor: pointer;
  transition: all var(--t-fast) var(--ease); text-decoration: none;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.985); }
.btn-sm  { font-size: 13px; padding: 8px 14px; }
.btn-lg  { font-size: 17px; padding: 16px 26px; }

.btn-primary  { background: var(--blue-500); color: var(--cream-50); }
.btn-primary:hover { background: var(--blue-600); color: var(--cream-50); text-decoration: none; }
.btn-accent   { background: var(--red-500); color: var(--cream-50); }
.btn-accent:hover { background: var(--red-600); color: var(--cream-50); text-decoration: none; }
.btn-outline  { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn-ghost    { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(27,45,91,0.06); text-decoration: none; }
.btn-on-deep  { background: var(--cream-50); color: var(--blue-800); }
.btn-on-deep:hover { background: var(--cream-100); text-decoration: none; }
.btn-deep-outline { background: transparent; color: var(--cream-100); border-color: rgba(247,241,230,0.25); }
.btn-deep-outline:hover { border-color: rgba(247,241,230,0.5); color: var(--cream-50); text-decoration: none; }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}
.card:hover { box-shadow: var(--shadow-1); border-color: var(--line-2); }

/* ── Chips / tags ────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center;
  font-size: 11px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--cream-100); color: var(--ink); font-weight: 500;
}

/* ── Section headers ─────────────────────────────────────────────────── */
.section-header { max-width: 720px; }
.section-header h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 14px 0 18px; color: var(--ink);
}
.section-header h2 em { font-style: italic; color: var(--accent); }
.section-header p { font-size: 18px; line-height: var(--lh-body); color: var(--ink-2); max-width: 600px; }
.section-header.center { margin: 0 auto; text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ── Verified badge ──────────────────────────────────────────────────── */
.badge-verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: #dcfce7; color: #15803d;
}
.badge-gold {
  background: oklch(0.88 0.10 75); color: oklch(0.38 0.10 60);
}
.badge-unclaimed {
  background: oklch(0.94 0.08 75); color: oklch(0.45 0.10 60);
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 32px;
  background: rgba(247, 241, 230, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.site-nav.scrolled {
  background: rgba(247, 241, 230, 0.95);
  box-shadow: var(--shadow-1);
}
.site-nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-nav__brand:hover { text-decoration: none; }
.site-nav__links { display: flex; gap: 2px; font-size: 14px; font-weight: 500; }
.site-nav__links a {
  padding: 8px 12px; border-radius: 10px; color: var(--ink);
  text-decoration: none; white-space: nowrap; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.site-nav__links a:hover { background: rgba(27,45,91,0.06); color: var(--blue-700); }
.site-nav__links a.active { color: var(--blue-700); background: rgba(27,45,91,0.06); }
.site-nav__actions { display: flex; align-items: center; gap: 8px; }
/* Danish labels are longer ("Sådan virker det", "Find en ekspert"): tighten the desktop nav on
   mid-width screens so it stays on one line at 1024px. Danish pages only; English is untouched. */
@media (min-width: 901px) and (max-width: 1139px) {
  html[lang^="da"] .site-nav { padding-left: 16px; padding-right: 16px; gap: 8px; }
  html[lang^="da"] .site-nav__links { font-size: 13px; gap: 0; }
  html[lang^="da"] .site-nav__links a { padding: 8px 6px; }
  html[lang^="da"] .site-nav__actions { gap: 6px; }
  html[lang^="da"] .site-nav__actions .btn { white-space: nowrap; }
}

/* ── Language toggle ─────────────────────────────────────────────────────── */
.lang-toggle {
  display: flex; align-items: center;
  background: var(--cream-200); border-radius: var(--r-pill);
  padding: 3px; gap: 2px;
}
.lang-toggle__btn {
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
  letter-spacing: 0.06em; padding: 4px 9px;
  border-radius: var(--r-pill); color: var(--ink-2);
  text-decoration: none; transition: all var(--t-fast) var(--ease);
  line-height: 1;
}
.lang-toggle__btn:hover { color: var(--ink); text-decoration: none; }
.lang-toggle__btn.active {
  background: var(--accent); color: var(--cream-50);
}
.lang-toggle__btn.active:hover { background: var(--accent-hover); color: var(--cream-50); text-decoration: none; }
/* Footer variant — on dark background */
.lang-toggle--footer { background: rgba(247,241,230,0.12); }
.lang-toggle--footer .lang-toggle__btn { color: var(--cream-300); }
.lang-toggle--footer .lang-toggle__btn:hover { color: var(--cream-100); }
.lang-toggle--footer .lang-toggle__btn.active { background: var(--accent); color: var(--cream-50); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-800); color: var(--cream-200);
  padding: 72px 32px 36px; margin-top: 96px;
}
.site-footer__grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40;
}
.site-footer__col-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--red-400); font-weight: 600; margin-bottom: 14px;
}
.site-footer__col ul { display: grid; gap: 10; }
.site-footer__col a { color: var(--cream-100); text-decoration: none; font-size: 14px; }
.site-footer__col a:hover { color: var(--cream-50); text-decoration: underline; }
.site-footer__bottom {
  max-width: var(--container); margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(247,241,230,0.10);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 12px; color: var(--cream-300);
}

.site-footer__legal-link { color: inherit; text-decoration: underline; }
/* Terms / Privacy / Cookies / Cookie settings in the bottom bar: wrap on a phone instead of pushing the page sideways */
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ── Cookie banner (inc/tracking.php) ───────────────────────────────── */
.ch-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px; background: var(--blue-800); color: var(--cream-100);
  font-size: 14px; line-height: 1.45;
  box-shadow: 0 -4px 24px rgba(15, 20, 35, 0.25);
}
.ch-consent[hidden] { display: none; }
.ch-consent__text { margin: 0; }
.ch-consent__text a { color: var(--cream-50); text-decoration: underline; margin-left: 4px; }
.ch-consent__actions { display: flex; gap: 10px; }
.ch-consent__actions .btn { flex: 1; justify-content: center; }
@media (min-width: 720px) {
  .ch-consent { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 32px; }
  .ch-consent__actions { flex: none; }
  .ch-consent__actions .btn { flex: none; min-width: 120px; }
}

/* ── Intake modal ────────────────────────────────────────────────────── */
.intake-modal-scrim {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 20, 35, 0.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  align-items: center; justify-content: center; padding: 24px;
}
.intake-modal-scrim.open { display: flex; }
.intake-modal {
  background: var(--paper); border-radius: var(--r-xl);
  width: 100%; max-width: 700px; max-height: 90vh;
  overflow-y: auto; padding: 40px;
  box-shadow: var(--shadow-3); position: relative;
}
.intake-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: var(--r-pill);
  background: var(--cream-100); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; font-size: 18px; color: var(--ink-2);
}

/* ── Brief form inside the intake modal (CH-272, markup in inc/brief.php) ──
   The modal (.intake-modal) is the ONLY thing that scrolls: nothing in the form has its own scrollbar. */
#intake-modal-scrim .intake-modal { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.brief-form { display: grid; gap: 20px; }
.brief-section {
  font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
  margin: 8px 0 -4px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink);
}
.brief-hp + .brief-section { border-top: 0; padding-top: 0; margin-top: 0; }
.brief-field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.brief-label { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0; line-height: 1.35; }
.brief-optional { font-weight: 400; color: var(--ink-3); }
.brief-hint { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.brief-input {
  width: 100%; min-height: 48px; box-sizing: border-box;
  font-family: var(--font-sans); font-size: 16px; /* 16px stops iOS from zooming in */
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
textarea.brief-input { min-height: 132px; resize: vertical; line-height: 1.5; overflow: auto; }
.brief-input::placeholder { color: var(--ink-3); opacity: 1; }
.brief-input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--ring); }
.brief-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.brief-pill { position: relative; display: inline-flex; cursor: pointer; }
.brief-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.brief-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; box-sizing: border-box;
  font-size: 15px; line-height: 1.2; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  transition: all var(--t-fast) var(--ease);
}
.brief-pill:hover span { border-color: var(--ink); }
.brief-pill input:checked + span { background: var(--blue-500); border-color: var(--blue-500); color: var(--cream-50); }
.brief-pill input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }
.brief-field.has-error .brief-input, .brief-field.has-error .brief-pill span { border-color: var(--red-500); }
.brief-error { margin: 0; font-size: 14px; line-height: 1.4; color: var(--red-600); }
.brief-error[hidden] { display: none; }
.brief-firm {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--r-md);
  padding: 10px 14px; font-size: 15px; color: var(--ink);
}
.brief-firm[hidden] { display: none; }
.brief-firm__text { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.brief-firm__remove {
  flex: none; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; color: var(--link); text-decoration: underline;
}
.brief-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief-qualify { background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 16px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.brief-qualify summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--ink); font-size: 15px; }
.brief-qualify ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 8px; }
.brief-qualify a { display: inline-block; margin-bottom: 14px; font-weight: 600; }
.brief-privacy { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.brief-submit { justify-content: center; width: 100%; min-height: 52px; }
.brief-submit[disabled] { opacity: 0.6; cursor: wait; }

/* ── FAQ accordion ───────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left; padding: 24px 28px;
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq-icon {
  width: 28px; height: 28px; border-radius: var(--r-pill); flex-shrink: 0;
  background: var(--cream-200); color: var(--ink); display: grid; place-items: center;
  transition: all var(--t-mid) var(--ease);
}
.faq-question.open .faq-icon { background: var(--blue-500); color: var(--cream-50); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 320ms var(--ease);
}
.faq-answer p { padding: 0 28px 24px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 720px; }

/* ── Directory search/filter bar ─────────────────────────────────────── */
/* Mobile first: search on top, the two selects under it. Sticky only where there is room. */
.filter-bar {
  background: rgba(247,241,230,0.96);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 16px; margin: 0;
}
.filter-bar__inner {
  max-width: var(--container-wide); margin: 0 auto;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
}
.search-input {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 44px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px;
}
.search-input input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-size: 16px; color: var(--ink); min-height: 42px;
}
.filter-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-select {
  width: 100%; min-width: 0; min-height: 44px; padding: 0 12px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px;
  font-size: 16px; font-family: inherit; text-overflow: ellipsis;
}
.filter-submit { min-height: 44px; justify-content: center; }
.filter-submit[hidden] { display: none; }
.result-bar {
  max-width: var(--container-wide); margin: 20px auto 12px; padding: 0 16px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.firm-grid {
  max-width: var(--container-wide); margin: 0 auto 64px; padding: 0 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 18px;
}
.firm-empty {
  max-width: 560px; margin: 8px auto 48px; padding: 32px 20px; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
}
.firm-empty[hidden] { display: none; }
.firm-empty p { font-size: 16px; color: var(--ink-2); line-height: 1.5; margin: 0 0 16px; }
@media (min-width: 768px) {
  .filter-bar { position: sticky; top: 64px; z-index: 20; backdrop-filter: blur(10px); padding: 14px 32px; }
  .filter-bar__inner { flex-direction: row; align-items: center; gap: 16px; }
  .search-input { flex: 1 1 260px; max-width: 380px; }
  .filter-selects { flex: 1 1 auto; grid-template-columns: minmax(0, 260px) minmax(0, 300px); }
  .result-bar { margin-top: 24px; padding: 0 32px; }
  .firm-grid { padding: 0 32px; margin-bottom: 80px; }
}

/* ── Firm cards (directory) ──────────────────────────────────────────── */
.firm-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
  text-decoration: none; color: inherit;
}
.firm-card[hidden] { display: none; }
.firm-card:hover { border-color: var(--ink); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; }
.firm-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto;
}

/* ── Profile page ────────────────────────────────────────────────────── */
.profile-layout {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start;
}
.profile-main { display: grid; gap: 24px; }
.profile-sidebar { display: grid; gap: 24px; position: sticky; top: 88px; }
.profile-hero {
  padding: 40px var(--gutter) 32px; border-bottom: 1px solid var(--line);
}
.profile-hero__inner { max-width: var(--container); margin: 0 auto; }
.profile-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.profile-section + .profile-section { margin-top: 0; }
.profile-section h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

.claim-banner {
  background: oklch(0.94 0.08 75); border: 1px solid oklch(0.85 0.10 75);
  border-radius: var(--r-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
}

/* ── Star rating ─────────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 1px; }
.star-filled   { color: var(--red-600); }
.star-empty    { color: var(--cream-300); }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3); margin-bottom: 28px;
}
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); text-decoration: underline; }

/* ── Service hub ─────────────────────────────────────────────────────────── */
.svc-hero { background: var(--bg-deep); padding: 80px 0 72px; }
.svc-hero .breadcrumb { color: rgba(247,241,230,0.55); }
.svc-hero .breadcrumb a { color: rgba(247,241,230,0.75); }
.svc-hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.04;
  letter-spacing: -0.02em; color: var(--cream-100);
  max-width: 820px; margin-bottom: 20px;
}
.svc-hero__subhead {
  font-size: clamp(16px, 2vw, 20px); color: var(--cream-200);
  max-width: 640px; margin-bottom: 32px; line-height: 1.55;
}
.svc-body { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; padding-top: 64px; }
.svc-body__main { display: grid; gap: 0; }
.svc-body__sidebar { position: sticky; top: 88px; display: grid; gap: 16px; }
.svc-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.svc-section:last-child { border-bottom: none; }
.svc-section h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 28px; }
.prose p { margin-bottom: 20px; line-height: var(--lh-body); font-size: var(--t-body-lg); color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 20px; }
.prose li { margin-bottom: 8px; line-height: var(--lh-body); color: var(--ink-2); list-style: disc; }
.prose ol li { list-style: decimal; }
.prose h3 { font-size: var(--t-h3); margin: 36px 0 12px; }
.prose h4 { font-size: var(--t-h4); margin: 28px 0 10px; }
.prose a { color: var(--link); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--ink-2); font-style: italic; margin: 24px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.prose th { background: var(--cream-200); font-weight: 600; padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--line-2); }
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.signs-list { display: grid; gap: 12px; }
.signs-list__item { display: grid; gap: 6px; }
.signs-list__item strong { font-size: 16px; font-weight: 600; color: var(--ink); display: block; }
.signs-list__item p { font-size: 15px; color: var(--ink-2); margin: 0; }
.cost-table { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 32px; }
.cost-table__head { display: grid; grid-template-columns: 1.6fr 1fr; background: var(--cream-200); padding: 12px 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
.cost-table__row { display: grid; grid-template-columns: 1.6fr 1fr; padding: 18px 20px; border-top: 1px solid var(--line); align-items: start; }
.cost-table__row:nth-child(even) { background: var(--bg-soft); }
.cost-table__row strong { font-size: 15px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; }
.cost-table__row .mono { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.svc-cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--cream-200); border-radius: var(--r-md); padding: 20px 24px; }
.svc-cta-inline p { font-weight: 500; color: var(--ink); margin: 0; }
.sidebar-cta h3 { font-size: 18px; font-weight: 600; margin: 8px 0 6px; }
.sidebar-links { display: grid; gap: 6px; }
.sidebar-links a { font-size: 14px; color: var(--link); }
.svc-firms { padding: 72px 0; background: var(--bg-soft); }
.svc-firms h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; margin-bottom: 10px; }
.svc-firms .body-lg { color: var(--ink-2); margin-bottom: 40px; }
.firms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Firm comparison: stacked cards on mobile (base), a real table from 760px up */
.firm-table, .firm-table tbody, .firm-table tr, .firm-table td { display: block; width: 100%; }
.firm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.firm-table tr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 12px; }
.firm-table td { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; color: var(--ink-2); text-align: right; overflow-wrap: anywhere; }
.firm-table td::before { content: attr(data-label); flex: 0 0 auto; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); text-align: left; }
.firm-table td.firm-table__name { display: block; text-align: left; font-size: 16px; padding-bottom: 10px; }
.firm-table td.firm-table__name::before { content: none; }
.firm-table__name a { font-weight: 600; color: var(--ink); }
.firm-table__badge { font-size: 12px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
@media (min-width: 761px) {
  .firm-table { display: table; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
  .firm-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .firm-table tbody { display: table-row-group; }
  .firm-table tr { display: table-row; border: 0; border-radius: 0; padding: 0; margin: 0; background: transparent; }
  .firm-table th { background: var(--cream-200); padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
  .firm-table td { display: table-cell; width: auto; padding: 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
  .firm-table td::before { content: none; }
  .firm-table td.firm-table__name { display: table-cell; padding-bottom: 16px; }
  .firm-table tbody tr:nth-child(even) td { background: var(--bg-soft); }
}

/* Numbered "how it works" steps on service pages */
.process-steps { list-style: none; counter-reset: step; display: grid; gap: 16px; margin: 0 0 28px; padding: 0; }
.process-steps__item { counter-increment: step; position: relative; padding-left: 52px; }
.process-steps__item::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--cream-200); color: var(--ink); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.process-steps__item strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.process-steps__item p { margin: 0; color: var(--ink-2); }
.svc-price-guide { margin: 0 0 24px; font-weight: 500; }
.svc-empty-state { text-align: center; padding: 40px; max-width: 500px; margin: 0 auto; }
.svc-cities { padding: 64px 0; }
.svc-cities h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; margin-bottom: 10px; }
.svc-cities > .container > p { color: var(--ink-2); margin-bottom: 32px; }
.cities-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.city-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: all var(--t-fast) var(--ease); }
.city-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.svc-related { padding: 48px 0; }
.svc-related > .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card { display: grid; gap: 8px; text-decoration: none; color: inherit; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.related-card:hover { border-color: var(--ink); box-shadow: var(--shadow-1); text-decoration: none; }
.related-card strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.related-card p { font-size: 14px; color: var(--ink-2); margin: 0; }
.svc-final-cta { background: var(--bg-deep); padding: 80px 0; }
.svc-final-cta__inner { max-width: 640px; }
.svc-final-cta__inner h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); font-weight: 500; letter-spacing: -0.02em; color: var(--cream-100); margin-bottom: 16px; line-height: 1.1; }
.svc-final-cta__inner p { color: var(--cream-200); font-size: 17px; margin-bottom: 32px; line-height: 1.6; }
.ch-review-box { padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.ch-review-box p { margin: 0; }
.ch-review-box__label { margin-top: 12px; font-weight: 600; }
.ch-review-box__sources { margin: 4px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.ch-review-box__sources a { text-decoration: underline; }

/* ── Category hub ────────────────────────────────────────────────────────── */
.cat-hero { background: var(--bg-deep); padding: 64px 0 56px; }
.cat-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px); font-weight: 500; letter-spacing: -0.02em; color: var(--cream-100); margin-bottom: 16px; }
.cat-hero .body-lg { color: var(--cream-200); max-width: 600px; margin-bottom: 32px; }
.cat-hero .breadcrumb { color: rgba(247,241,230,0.55); }
.cat-hero .breadcrumb a { color: rgba(247,241,230,0.75); }
.cat-services { padding: 64px 0; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-service-card { display: grid; gap: 8px; text-decoration: none; color: inherit; position: relative; }
.cat-service-card:hover { border-color: var(--ink); box-shadow: var(--shadow-1); text-decoration: none; }
.cat-service-card strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.cat-service-card .body-sm { margin: 0; }
.cat-service-card__arrow { position: absolute; bottom: 20px; right: 20px; }
/* Long Danish compound words ("marketingstrateg-konsulent") must not push the grid wider than the phone */
.cat-service-card { min-width: 0; overflow-wrap: break-word; hyphens: auto; }

/* ── Scoping guide ───────────────────────────────────────────────────────── */
.guide-body { padding-top: 0; }
.guide-questions { display: grid; gap: 12px; }
.guide-question { display: flex; gap: 16px; align-items: flex-start; }
.guide-question__num { min-width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--blue-500); color: var(--cream-50); font-weight: 700; font-size: 14px; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.guide-question strong { font-size: 16px; font-weight: 600; display: block; margin-bottom: 4px; }
.scope-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.scope-card h3 { font-size: 17px; margin-bottom: 8px; }
.scope-card p { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.scope-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.red-flags-list { display: grid; gap: 10px; }
.red-flag strong { font-size: 15px; font-weight: 600; display: block; margin-bottom: 4px; color: var(--danger); }
.guide-checklist { display: grid; gap: 10px; }
.guide-checklist__item { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.guide-check { flex-shrink: 0; }

/* ── Comparison page ─────────────────────────────────────────────────────── */
.compare-body { padding-top: 0; }
.cmp-table { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cmp-table__head { display: grid; grid-template-columns: 1.2fr 1fr 1fr; background: var(--cream-200); padding: 12px 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); gap: 12px; }
.cmp-table__row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; padding: 16px 20px; border-top: 1px solid var(--line); gap: 12px; align-items: start; }
.cmp-table__row:nth-child(even) { background: var(--bg-soft); }
.cmp-table__criteria strong { font-size: 14px; font-weight: 600; }
.cmp-table__val { font-size: 14px; color: var(--ink-2); }

/* ── Mobile nav ──────────────────────────────────────────────────────────── */
.site-nav__hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: transparent; border: none; padding: 8px;
}
.site-nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all var(--t-fast) var(--ease); }
.site-nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__hamburger.open span:nth-child(2) { opacity: 0; }
.site-nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: 0; top: 57px; z-index: 40;
  background: var(--cream-50); overflow-y: auto;
  padding: 24px 20px 48px;
}
.mobile-nav.open { display: block; }
.mobile-nav__links { display: grid; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.mobile-nav__links a { padding: 12px 4px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; display: block; border-radius: var(--r-sm); }
.mobile-nav__links a:hover { background: var(--cream-200); }
.mobile-nav__section-title { font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); font-weight: 600; padding: 16px 4px 8px; }
.mobile-nav__services { display: grid; gap: 32px; }
.mobile-nav__category { display: grid; gap: 4px; }
.mobile-nav__category-title { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0 4px 6px; }
.mobile-nav__svc-link { padding: 10px 4px; font-size: 15px; color: var(--ink); text-decoration: none; display: block; border-radius: var(--r-sm); }
.mobile-nav__svc-link:hover { background: var(--cream-200); text-decoration: none; }
.mobile-nav__cta { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }

/* ── Stackable grids ─────────────────────────────────────────────────────
   Templates keep `display:grid` and `gap` inline but put the column layout
   in these classes, so the Responsive block below can collapse them on phones
   (inline styles can't be overridden by media queries). Desktop values here
   are the ones that used to be inline. */
.g-2     { grid-template-columns: 1fr 1fr; }
.g-3     { grid-template-columns: repeat(3, 1fr); }
.g-4     { grid-template-columns: repeat(4, 1fr); }
.g-hero  { grid-template-columns: 1.1fr 0.9fr; }
.g-cta   { grid-template-columns: 1.5fr 1fr; }
.g-logos { grid-template-columns: repeat(3, 1fr); }
.home-cta-box { padding: 56px; }
.g-2 > *, .g-3 > *, .g-4 > *, .g-hero > *, .g-cta > *, .g-logos > * { min-width: 0; }

/* ── Pricing page ────────────────────────────────────────────────────── */
.pricing-section        { padding: 80px 32px; }
.pricing-section--faq   { padding: 96px 32px; }
.pricing-split          { grid-template-columns: 1fr 1fr; gap: 56px; }
.pricing-tiers          { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing-cta            { grid-template-columns: 1fr 1fr; }
.pricing-split > *, .pricing-tiers > *, .pricing-cta > * { min-width: 0; }
.pricing-box            { padding: 40px; }
.pricing-tier           { padding: 32px; }
.pricing-zero           { font-size: 80px; }

/* ── Nav: account links live in the mobile drawer on small screens ───── */
.mobile-nav__account { display: flex; gap: 8px; margin-top: 12px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav__links { display: none; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .svc-body { grid-template-columns: 1fr; }
  .svc-body__sidebar { position: static; }
  .firms-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-related > .container { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .scope-cards { grid-template-columns: 1fr; }
  .cmp-table__head, .cmp-table__row { grid-template-columns: 1fr; }
  .site-nav__hamburger { display: flex; }
  /* Log in / Dashboard / Start a project move into the drawer (see header.php) */
  .site-nav__account, .site-nav__cta { display: none; }
}
@media (max-width: 600px) {
  .site-nav { padding: 12px 16px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .intake-modal { padding: 24px 20px; }
  .svc-hero { padding: 56px 0 48px; }
  .firms-grid { grid-template-columns: 1fr; }
  .svc-cta-inline { flex-direction: column; align-items: flex-start; }
  .cost-table__head, .cost-table__row { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid > * { min-width: 0; }
}
@media (max-width: 768px) {
  /* Multi-column grids become one column */
  .g-2, .g-3, .g-4, .g-hero, .g-cta { grid-template-columns: 1fr; }
  .g-logos { grid-template-columns: repeat(2, 1fr); }
  .home-cta-box { padding: 32px 24px; }

  /* Pricing: one column, tier cards stacked, calmer spacing */
  .pricing-section, .pricing-section--faq { padding: 56px 20px; }
  .pricing-split, .pricing-tiers, .pricing-cta { grid-template-columns: 1fr; }
  .pricing-split { gap: 32px; }
  .pricing-tiers { gap: 28px; } /* room for the MOST POPULAR badge (top:-12px) */
  .pricing-box  { padding: 28px 20px; }
  .pricing-tier { padding: 28px 20px; }
  .pricing-zero { font-size: 56px; }
  /* Comfortable tap targets on the pricing page */
  .pricing-section .btn { min-height: 44px; justify-content: center; }
  .pricing-section .btn-lg { width: 100%; }
}

/* Brief form on a phone: the modal is nearly full screen and is the only scroller (CH-272) */
@media (max-width: 480px) {
  #intake-modal-scrim { padding: 0; align-items: stretch; }
  #intake-modal-scrim .intake-modal {
    max-width: none; max-height: 100vh; max-height: 100dvh; border-radius: 0;
    padding: 20px 16px 32px;
  }
  .brief-form { gap: 18px; }
  .brief-pill span { padding: 10px 14px; }
}

/* ── Legal pages: /terms/, /privacy/, /cookies/ (inc/legal.php, page-legal.php) ───────────────── */
.legal-hero .legal-updated { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--cream-300); }
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 32px var(--gutter) 72px; overflow-wrap: break-word; }
.legal-short { background: var(--cream-50); border: 1px solid var(--line); border-left: 4px solid var(--blue-500); border-radius: var(--r-md); padding: 20px; margin-bottom: 28px; }
.legal-short h2 { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.legal-short ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.legal-short__note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.legal-toc { margin-bottom: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 12px; }
.legal-toc ol { display: grid; gap: 4px; padding-left: 24px; list-style: decimal; font-size: 15px; }
.legal-toc a { display: inline-block; padding: 4px 0; }
.legal-section { margin-top: 40px; scroll-margin-top: 88px; }
.legal-section h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 14px; }
.legal-section h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal-section p, .legal-section ul, .legal-section ol { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-bottom: 14px; }
.legal-section ul { padding-left: 22px; list-style: disc; display: grid; gap: 6px; }
.legal-section ol { padding-left: 24px; list-style: decimal; display: grid; gap: 8px; }
.legal-section strong { color: var(--ink); }
.legal-section code { font-family: var(--font-mono); font-size: 13px; background: var(--cream-200); padding: 1px 6px; border-radius: var(--r-xs); overflow-wrap: anywhere; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--cream-50); }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; text-align: left; }
.legal-table th, .legal-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-weight: 600; color: var(--ink); background: var(--cream-100); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-more { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-more p { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.legal-more ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (min-width: 768px) {
  .legal-wrap { padding-top: 48px; }
  .legal-short { padding: 24px 28px; }
}
