/* Öffentliche Galerie und Startseite. Aussehen über Variablen: data-theme="dark|light|auto",
   data-font="system|serif|condensed|rounded", --accent (Website oder Lauf). Standard: dunkel. */
:root {
  --bg: #0b0c0d;
  --surface: #141618;
  --surface-2: #1d2023;
  --surface-3: #24282c;
  --line: #2a2e32;
  --hover-line: #4a5056;
  --ink: #f3f1ec;
  --ink-2: #dcdad4;
  --muted: #a9a8a2;          /* 8:1 auf --bg */
  --muted-inv: #55554f;
  --accent: #f2b544;         /* Bernstein, 10:1 auf --bg */
  --accent-ink: #1a1306;
  --accent-text: var(--accent);
  --bar-bg: rgba(11,12,13,.82);
  --bar-line: rgba(255,255,255,.06);
  --input-bg: rgba(20,22,24,.92);
  --input-line: rgba(255,255,255,.18);
  --placeholder: #8d8c86;
  --hero-end: var(--bg);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-head: var(--font);
  --head-stretch: normal;
  --radius: 12px;
  --gutter: 16px;
  --bar-h: 56px;
  color-scheme: dark;
}
/* Hell: gleiche Bausteine, Titelbilder bleiben dunkel unterlegt (Text auf Fotos) */
:root[data-theme="light"] {
  --bg: #f6f5f2; --surface: #ffffff; --surface-2: #eceae6; --surface-3: #e3e1dc; --line: #dcd9d3;
  --hover-line: #b9b6af; --ink: #16181a; --ink-2: #34373b; --muted: #5b5e62; --muted-inv: #b5b3ad;
  --accent-text: color-mix(in srgb, var(--accent) 58%, #000);
  --bar-bg: rgba(246,245,242,.86); --bar-line: rgba(0,0,0,.08); --input-bg: #ffffff;
  --input-line: #cfccc5; --placeholder: #85878a; --hero-end: #121314; color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f6f5f2; --surface: #ffffff; --surface-2: #eceae6; --surface-3: #e3e1dc; --line: #dcd9d3;
    --hover-line: #b9b6af; --ink: #16181a; --ink-2: #34373b; --muted: #5b5e62; --muted-inv: #b5b3ad;
    --accent-text: color-mix(in srgb, var(--accent) 58%, #000);
    --bar-bg: rgba(246,245,242,.86); --bar-line: rgba(0,0,0,.08); --input-bg: #ffffff;
    --input-line: #cfccc5; --placeholder: #85878a; --hero-end: #121314; color-scheme: light;
  }
}
:root[data-font="serif"] { --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
:root[data-font="condensed"] { --font-head: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif; --head-stretch: condensed; }
:root[data-font="rounded"] { --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 8px); }
html.lb-open { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
h1, h2, h3, .hero-title, .brand { font-family: var(--font-head); font-stretch: var(--head-stretch); }
img { display: block; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink);
  padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eyebrow a { color: inherit; text-decoration: none; letter-spacing: .08em; }
.eyebrow a:hover { color: var(--ink); }

/* Knöpfe, Eingaben */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.btn:hover { border-color: var(--hover-line); background: var(--surface-3); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.select, .field input {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 0 12px;
}
.select { padding-right: 32px; appearance: none; -webkit-appearance: none; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* Kopfzeile */
.bar {
  position: sticky; top: 0; z-index: 10; height: var(--bar-h);
  background: var(--bar-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--bar-line);
}
.bar-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 650; font-size: 16px; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand:hover { color: var(--accent-text); }

/* Suche */
.search { position: relative; display: flex; }
.search input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--input-bg);
  border: 1px solid var(--input-line); border-right: 0; border-radius: 999px 0 0 999px;
  font-variant-numeric: tabular-nums;
}
.search input::placeholder { color: var(--placeholder); }
.search input:focus { outline: none; border-color: var(--accent); }
:root:not([data-theme="light"]) .search input::-webkit-search-cancel-button { filter: invert(1); }
.search button {
  border: 0; font: inherit; font-weight: 650; color: var(--accent-ink); background: var(--accent);
  border-radius: 0 999px 999px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.search button:hover { filter: brightness(1.08); }
.search.big { max-width: 560px; margin-top: 22px; }
.search.big input { font-size: 19px; padding: 0 22px; height: 58px; }
.search.big button { padding: 0 24px; font-size: 16px; }
.search.mini { margin-left: auto; flex: 0 1 240px; }
.search.mini input { height: 38px; padding: 0 14px; font-size: 15px; }
.search.mini button { padding: 0 12px; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 12; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.5); max-height: 60vh; overflow: auto;
}
.suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; gap: 12px; align-items: baseline; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--surface-2); }
.bib { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 3.2em; color: var(--accent-text); }
.who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnt { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }

/* Titelbild eines Laufs */
/* Titelbild: immer dunkler Grund (Text steht auf dem Foto), unten Übergang zu --hero-end */
.hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #f3f1ec;
  --ink: #f3f1ec; --ink-2: #dcdad4; --muted: #b9b8b2; --surface: #141618; --surface-2: #1d2023;
  --line: #2a2e32; --input-bg: rgba(20,22,24,.92); --input-line: rgba(255,255,255,.22); --placeholder: #8d8c86;
  --accent-text: var(--accent);
  background: radial-gradient(120% 90% at 70% 10%, #1f2327 0%, var(--hero-end) 70%); }
.hero-img { position: absolute; inset: 0; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  opacity: 0; transform: scale(1.03); transition: opacity .8s ease, transform 1.6s ease; }
.hero.ready .hero-img img { opacity: 1; transform: none; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,12,13,.15) 0%, rgba(11,12,13,.25) 40%, rgba(11,12,13,.9) 85%, var(--hero-end) 100%); }
.hero-in { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: 40px; }
.hero-in:focus-within { z-index: 11; }   /* Vorschläge über den Filtern */
.hero-title { margin: 0; font-size: clamp(34px, 6vw, 68px); line-height: 1.02; letter-spacing: -.02em; font-weight: 750;
  max-width: 16ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.facts { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; font-variant-numeric: tabular-nums; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* Filter */
.filters { position: sticky; top: var(--bar-h); z-index: 9; background: var(--bar-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.filters-in { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0;
  margin: -4px; padding: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap;
  background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.chip .n { color: var(--muted); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--hover-line); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] .n { color: var(--muted-inv); }
.chip:disabled { opacity: .4; cursor: default; }
.tools { display: flex; gap: 8px; align-items: center; flex: none; }
.tools .select { max-width: 220px; }
.jump { padding-top: 4px; padding-bottom: 16px; }
.jump-lead { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.jump-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.field input { width: 130px; text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.field .select { text-transform: none; letter-spacing: 0; font-weight: 400; max-width: 260px; }
.or { color: var(--muted); font-size: 14px; padding-bottom: 12px; }
.jump-msg { margin: 10px 0 0; font-size: 14px; color: var(--ink); min-height: 1em; }
.jump-msg:empty { display: none; }

/* Ansichten */
main { outline: none; min-height: 50vh; }
.view-head { padding: 28px 0 16px; }
.view-head h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; letter-spacing: -.01em; }
.view-head p { margin: 4px 0 0; }
.back { color: var(--muted); }

/* Blocksatz-Raster */
.jgrid { display: flex; flex-direction: column; gap: 6px; }
.jrow { display: flex; }
.jrow.full .tile:last-child { flex-grow: 1; }
.tile { position: relative; flex: 0 0 auto; height: 100%; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s; }
.tile:hover img { transform: scale(1.035); }
.tile:focus-visible { outline-offset: -3px; z-index: 1; }
.tile .t-time { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; font-size: 12px;
  font-variant-numeric: tabular-nums; color: #fff; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .2s; }
.tile:hover .t-time, .tile:focus-visible .t-time { opacity: 1; }
.tile.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: inset 0 0 0 4px var(--accent); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.chapter { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 6px; font-size: 13px; font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase; }
.chapter:first-child { margin-top: 0; }
.chapter .c-label { color: var(--ink); }
.chapter .c-time { color: var(--accent-text); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.chapter .c-n { color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 500; margin-left: auto; }
.sentinel { height: 1px; }

.more { margin: 36px 0 8px; padding: 22px; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.more h3 { margin: 0 0 6px; font-size: 18px; }
.more p { margin: 0 0 14px; color: var(--muted); }

.matches { list-style: none; padding: 0; margin: 0 0 40px; max-width: 640px; }
.matches a { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.matches a:hover { border-color: var(--accent-text); }

/* Fußzeile */
.foot { margin-top: 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-in { padding-top: 28px; padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
.foot p { margin: 0 0 8px; max-width: 70ch; }
.foot .credit { color: var(--ink); font-weight: 600; }

/* Großansicht */
.lightbox { position: fixed; inset: 0; z-index: 40; background: #050505; color: #eee;
  display: grid; grid-template-rows: auto 1fr auto; touch-action: pinch-zoom; }
.lb-top, .lb-bottom { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.lb-top { padding-top: calc(8px + env(safe-area-inset-top)); justify-content: space-between; }
.lb-bottom { padding-bottom: calc(10px + env(safe-area-inset-bottom)); flex-wrap: wrap; justify-content: space-between; }
.lb-count { font-size: 14px; font-variant-numeric: tabular-nums; padding-left: 4px; }
.lb-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.lb-icon:hover { background: rgba(255,255,255,.18); }
.lb-stage { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb-track { position: absolute; inset: 0; will-change: transform; }
.lb-track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lb-ph { filter: blur(0); }
.lb-img { opacity: 0; transition: opacity .25s; }
.lb-img.ok { opacity: 1; }
.lb-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 56px; height: 56px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }
.lb-info { font-size: 14px; color: #cfcdc7; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; }
.bibtag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
  text-decoration: none; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; }
a.bibtag:hover { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.lb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lb-remove { color: #9b9a94; margin-left: 4px; }
.lb-link { flex: 1 1 260px; min-width: 0; height: 40px; padding: 0 12px; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--accent); border-radius: 10px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); }

/* Startseite (alle Läufe) */
.home-hero { min-height: 58vh; }
.home-hero .hero-img img { opacity: 0; }
.home-hero.ready .hero-img img { opacity: .55; }
.home-hero .lead { margin: 12px 0 0; color: var(--ink-2); font-size: 17px; max-width: 46ch; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.home-search { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.home-search .search { flex: 1 1 300px; margin: 0; max-width: none; }
.home-search .select { min-height: 58px; border-radius: 999px; padding-left: 20px; flex: 0 1 300px; font-size: 16px; }
.section { padding: 48px 0 8px; }
.section h2 { margin: 0 0 18px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { display: block; color: inherit; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); transition: border-color .2s, transform .25s; }
.card:hover { border-color: var(--hover-line); transform: translateY(-2px); }
.card .cover { aspect-ratio: 3 / 2; background: var(--surface-2); overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .cover img { transform: scale(1.04); }
.card .body { padding: 16px 18px 18px; }
.card h3 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.card .meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.card .go { margin-top: 12px; display: inline-block; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.empty { color: var(--muted); }
.about { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.about p { margin: 0 0 12px; font-size: 17px; color: var(--ink-2); white-space: pre-line; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Persönliche Seite (r/<token>/): nur die eigenen Fotos, keine Suche, keine Filter */
.personal .search, .personal .hint, .personal .filters, .personal .more, .personal .back { display: none !important; }
.personal .hero { min-height: 52vh; }
.card .badge { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--muted); }
/* Lauf nur mit persönlichen Links */
.private-note { padding-top: 72px; padding-bottom: 40px; max-width: 680px; }
.private-note h1 { margin: 0 0 14px; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; letter-spacing: -.02em; }
.private-note .lead { font-size: 18px; color: var(--ink-2); }

@media (max-width: 720px) {
  :root { --gutter: 14px; --bar-h: 52px; }
  .hero { min-height: 70vh; min-height: 70svh; }
  .hero-in { padding-top: 72px; padding-bottom: 28px; }
  .search.big input { height: 54px; font-size: 17px; padding: 0 16px; }
  .search.big button { padding: 0 16px; font-size: 15px; }
  .search.mini { flex-basis: 170px; }
  .event-page .bar:has(.search.mini:not([hidden])) .brand-2 { display: none; }
  .filters-in { flex-wrap: wrap; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .chips { flex-basis: 100%; gap: 6px; }
  .tools { width: 100%; }
  .tools .select { flex: 1; max-width: none; min-height: 36px; font-size: 14px; }
  .tools .btn { min-height: 36px; font-size: 14px; }
  .chip { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .jgrid { gap: 3px; margin: 0 calc(var(--gutter) * -1 + 3px); }
  .chapter { padding: 0 calc(var(--gutter) - 3px); margin-top: 22px; }
  .tile { border-radius: 2px; }
  .lb-nav { display: none; }                /* Wischen statt Pfeile */
  .lb-bottom .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .home-search .select { flex-basis: 100%; min-height: 50px; }
  .field input { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.home-hero:not(:has(.hero-img)) { min-height: 0; }
.home-hero:not(:has(.hero-img)) .hero-in { padding-top: 56px; }

/* Fußzeile: Rechtliches (alle Seiten) */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 12px; }
.legal-links .lang { display: contents; }
.legal-links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 3px; padding: 4px 0; }
.legal-links a:hover { color: var(--accent-text); text-decoration-color: currentColor; }

/* Rechtliche Seiten (info/): eine Sprache sichtbar, ohne JavaScript alle */
html[data-lang="de"] .lang[lang]:not([lang="de"]),
html[data-lang="fr"] .lang[lang]:not([lang="fr"]),
html[data-lang="en"] .lang[lang]:not([lang="en"]) { display: none; }
.langs { margin-left: auto; display: flex; gap: 2px; }
.langs a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 9px;
  border-radius: 8px; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); background: var(--surface-2); }
.legal-main { max-width: 760px; padding-top: 40px; }
.legal-text + .legal-text { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
html[data-lang] .legal-text + .legal-text { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-text h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.legal-text h2 { margin: 36px 0 10px; font-size: 20px; line-height: 1.3; scroll-margin-top: calc(var(--bar-h) + 12px); }
.legal-text h3 { margin: 22px 0 6px; font-size: 16px; scroll-margin-top: calc(var(--bar-h) + 12px); }
.legal-text p, .legal-text li { color: var(--ink-2); max-width: 70ch; overflow-wrap: anywhere; }
.legal-text ul { padding-left: 1.2em; }
.legal-text li { margin: 4px 0; }
.legal-text .muted { color: var(--muted); margin-top: 0; }
.legal-text .lead { font-size: 18px; color: var(--ink); }
.legal-text .callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 14px 16px; }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 18px; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .facts-list { grid-template-columns: 1fr; gap: 2px; }
  .facts-list dd { margin-bottom: 10px; }
  .legal-page .brand { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .langs a { padding: 6px 7px; }
}
