/* Ferienhaus Belgien – Stylesheet
   Farben, Schriften und Formen aus dem FerienhausBelgien-Design-System. */

:root {
  /* Palette */
  --cream-50: #fffbed;
  --cream-100: #fcf0cf;
  --cream-200: #fcebb1;
  --cream-300: #ffe5a8;
  --blush-50: #fcf3ec;
  --ink-900: #1e2833;
  --navy-900: #06064d;
  --tan-400: #c6ad8d;
  --tan-200: #ccbea3;
  --apricot-100: #fce8d2;
  --apricot-500: #eeae66;
  --burgundy-700: #840025;
  --alert-100: #ffd6d6;
  --alert-400: #ef706f;
  --alert-700: #cc0000;
  --ok-100: #e3efd9;
  --ok-700: #2f5a1f;
  --flag-black: #1a1a1a;
  --flag-be-yellow: #fdda24;
  --flag-be-red: #ef3340;
  --flag-de-red: #dd0000;
  --flag-de-gold: #ffce00;
  --flag-nl-red: #ae1c28;
  --flag-nl-blue: #21468b;

  /* Rollen */
  --bg: var(--cream-50);
  --bg-band: #fdf3d8;
  --surface-raised: var(--cream-100);
  --surface-hover: var(--cream-300);
  --surface-paper: #ffffff;
  --text: var(--ink-900);
  --text-muted: #5f5240;
  --link: var(--navy-900);
  --rule: var(--ink-900);
  --rule-soft: var(--tan-400);
  --action: var(--ink-900);
  --action-hover: #2f3d4d;
  --on-action: var(--cream-50);
  --focus: var(--navy-900);

  /* Schrift */
  --font-display: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Alegreya Sans", "Gill Sans", "Trebuchet MS", Verdana, sans-serif;

  /* Abstände und Formen */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 64px;
  --radius-s: 3px;
  --radius-leaf: 8px;
  --leaf: var(--radius-leaf) 0 var(--radius-leaf) 0;
  --shadow-tab: 1px 1px 3px var(--tan-200);
  --shadow-header: 0 2px 6px rgba(30, 40, 51, 0.18);
  --page-max: 1180px;
  --measure: 62ch;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 600; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.35; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: 12px; top: -60px; background: var(--action); color: var(--on-action); padding: 8px 14px; z-index: 100; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 243, 236, 0.96);
  backdrop-filter: saturate(1.2) blur(6px);
  box-shadow: var(--shadow-header);
}
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font: 500 26px/1 var(--font-display); letter-spacing: .01em; }
.brand-name span, .footer-brand span { font-weight: 600; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: var(--space-1); margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 6px 12px; text-decoration: none; color: var(--link);
  font-weight: 500; border-radius: var(--leaf);
}
.main-nav a:hover, .main-nav a.is-active { background: var(--surface-raised); box-shadow: var(--shadow-tab); }

.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius-s); overflow: hidden; flex: none; }
.lang button {
  font: 700 13px/1 var(--font-sans); letter-spacing: .05em; padding: 8px 9px;
  background: transparent; color: var(--link); border: 0; border-left: 1px solid var(--rule-soft); cursor: pointer;
}
.lang button:first-child { border-left: 0; }
.lang button:hover { background: var(--surface-hover); }
.lang button[aria-pressed="true"] { background: var(--ink-900); color: var(--cream-50); }

.menu-toggle { display: none; }

@media (max-width: 1180px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: var(--space-2); margin-left: auto;
    font: 500 16px/1 var(--font-sans); color: var(--text); background: var(--surface-raised);
    border: 0; padding: 10px 14px; border-radius: var(--leaf); box-shadow: var(--shadow-tab); cursor: pointer;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blush-50); box-shadow: var(--shadow-header);
    padding: var(--space-3) max(20px, env(safe-area-inset-right, 0px)) var(--space-5) max(20px, env(safe-area-inset-left, 0px));
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: var(--space-2); }
  .main-nav a { background: var(--surface-raised); box-shadow: var(--shadow-tab); padding: 10px 14px; }
  .header-inner { position: relative; gap: var(--space-3); }
}
@media (max-width: 520px) {
  .brand-name { font-size: 21px; }
  .brand img { width: 32px; height: 32px; }
  .menu-toggle span[data-i18n] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lang button { padding: 8px 6px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 18px; }
  .brand img { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 700 16px/1.3 var(--font-sans); letter-spacing: .02em;
  padding: 12px 22px; border-radius: var(--radius-s); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--action); color: var(--on-action); border-color: var(--action); }
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-light { background: rgba(255, 251, 237, 0.92); color: var(--ink-900); border-color: var(--cream-50); }
.btn-light:hover { background: var(--cream-300); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--rule); padding: 8px 14px; font-size: 15px; }
.btn-ghost:hover { background: var(--surface-hover); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: var(--cream-50); overflow: hidden; background: var(--ink-900); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(20,26,34,.55) 0%, rgba(20,26,34,.25) 45%, rgba(20,26,34,0) 70%),
  linear-gradient(180deg, rgba(30,40,51,0) 25%, rgba(30,40,51,.35) 50%, rgba(20,26,34,.82) 100%); }
.hero-content { position: relative; padding-block: var(--space-7); display: grid; gap: var(--space-4); }
.eyebrow { font: 500 15px/1.4 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cream-200); }
.hero h1 { font-size: clamp(42px, 7vw, 80px); font-weight: 500; line-height: 1.02; max-width: 14ch; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; max-width: 46ch; color: #fff8e6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero .btn-primary { background: var(--cream-200); color: var(--ink-900); border-color: var(--cream-200); }
.hero .btn-primary:hover { background: var(--cream-300); border-color: var(--cream-300); }
.hero :focus-visible { outline-color: var(--flag-be-yellow); }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--space-7); }
.section-band { background: var(--bg-band); border-block: 1px dotted var(--tan-400); }
.kicker { font: 700 14px/1.4 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--burgundy-700); margin-bottom: var(--space-2); }
.lead { font-size: 19px; line-height: 1.6; }
.section-intro { max-width: var(--measure); margin-top: var(--space-3); color: var(--text-muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.split-text { display: grid; gap: var(--space-4); max-width: var(--measure); min-width: 0; }
.split-text h2 { margin-bottom: var(--space-1); }
.split-rev .split-photo { order: -1; }
.photo { margin: 0; }
.photo img { width: 100%; border: 1px solid var(--rule); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: var(--space-5); }
  .split-rev .split-photo { order: 0; }
}

/* Ausstattung */
.features { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.leaf { background: var(--surface-raised); border-radius: var(--leaf); box-shadow: var(--shadow-tab); padding: var(--space-5); }
.features h3 { margin-bottom: var(--space-1); }
.features p { font-size: 16px; line-height: 1.55; color: var(--text); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.gallery { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.gallery li { min-width: 0; }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-span { grid-column: span 2; }
.g-item { display: block; width: 100%; padding: 0; border: 1px solid var(--rule); background: var(--ink-900); cursor: zoom-in; aspect-ratio: 3 / 2; overflow: hidden; }
.g-wide .g-item, .g-span .g-item { aspect-ratio: auto; height: 100%; }
.g-item { position: relative; }
/* Bild füllt die Kachel, bestimmt aber nicht ihre Höhe: die Reihenhöhe kommt von den 3:2-Kacheln */
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s; }
.g-item:hover img { transform: scale(1.03); }
@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-wide, .g-span { grid-column: auto; grid-row: auto; }
  .g-wide .g-item, .g-span .g-item { aspect-ratio: 3 / 2; height: auto; }
  /* ungerade Bildanzahl: letztes Bild über die ganze Breite, damit keine Lücke bleibt */
  .gallery li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(20, 26, 34, .9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); display: grid; gap: var(--space-2); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,.5); }
.lightbox figcaption { color: var(--cream-100); text-align: center; font-style: italic; }
.lb-close, .lb-nav { position: fixed; background: rgba(255, 251, 237, .12); color: var(--cream-50); border: 1px solid rgba(255,251,237,.4); width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 251, 237, .25); }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: calc(16px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(16px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lightbox :focus-visible { outline-color: var(--flag-be-yellow); }

/* ---------- Region ---------- */
.places { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: grid; gap: var(--space-2); }
.places li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px dotted var(--tan-400); }
.ctag { display: inline-flex; align-items: center; gap: 5px; font: 700 12px/18px var(--font-sans); letter-spacing: .05em; padding: 0 6px; border: 1px solid var(--rule-soft); border-radius: var(--radius-s); background: var(--surface-paper); }
.ctag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.ctag-b::before { background: linear-gradient(90deg, var(--flag-black) 33%, var(--flag-be-yellow) 33% 66%, var(--flag-be-red) 66%); }
.ctag-d::before { background: linear-gradient(180deg, var(--flag-black) 33%, var(--flag-de-red) 33% 66%, var(--flag-de-gold) 66%); }
.ctag-nl::before { background: linear-gradient(180deg, var(--flag-nl-red) 33%, #ffffff 33% 66%, var(--flag-nl-blue) 66%); }

/* ---------- Belegungskalender ---------- */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.cal-range { font: 600 20px/1.3 var(--font-display); }
.cal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-5); }
@media (max-width: 960px) { .cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cal-grid { grid-template-columns: 1fr; } .cal-toolbar { justify-content: center; } .cal-range { order: -1; width: 100%; text-align: center; } }

.month { background: var(--surface-paper); border: 1px solid var(--rule-soft); padding: var(--space-4); min-width: 0; }
.month h3 { color: var(--burgundy-700); margin-bottom: var(--space-3); font-size: 21px; }
.month table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.month th { font: 700 13px/28px var(--font-sans); background: var(--apricot-500); color: var(--ink-900); }
.month td { height: 36px; text-align: center; font-size: 15px; background: var(--apricot-100); color: var(--ink-900); position: relative; }
.month td.empty { background: transparent; }
.month td.booked { background: var(--burgundy-700); color: #ffffff; text-decoration: line-through; text-decoration-thickness: 1px; }
.month td.arrive { background: linear-gradient(to bottom right, var(--apricot-100) 50%, var(--burgundy-700) 50%); font-weight: 700; }
.month td.depart { background: linear-gradient(to bottom right, var(--burgundy-700) 50%, var(--apricot-100) 50%); font-weight: 700; }
.month td.arrive span, .month td.depart span { display: inline-block; min-width: 22px; line-height: 20px; background: rgba(255,255,255,.88); border-radius: 50%; padding: 1px 2px; }
.month td.past { opacity: .4; }
.month td.today { outline: 2px solid var(--ink-900); outline-offset: -2px; font-weight: 700; }

.cal-legend { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); font-size: 15px; color: var(--text-muted); }
.cal-legend li { display: flex; align-items: center; gap: var(--space-2); }
.lg { display: inline-block; width: 18px; height: 18px; border: 1px solid var(--rule-soft); }
.lg-free { background: var(--apricot-100); }
.lg-booked { background: var(--burgundy-700); }
.lg-arrive { background: linear-gradient(to bottom right, var(--apricot-100) 50%, var(--burgundy-700) 50%); }
.lg-depart { background: linear-gradient(to bottom right, var(--burgundy-700) 50%, var(--apricot-100) 50%); }
.cal-cta { margin-top: var(--space-5); }

/* ---------- Preise ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.prices { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; margin-top: var(--space-5); }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }
.rates-wrap { background: var(--surface-paper); border: 1px solid var(--rule-soft); overflow-x: auto; min-width: 0; }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates th, .rates td { padding: var(--space-4); text-align: left; vertical-align: top; border-bottom: 1px dotted var(--tan-400); }
.rates tbody tr:last-child th, .rates tbody tr:last-child td { border-bottom: 0; }
.rates thead th { font: 700 17px/1.3 var(--font-display); background: var(--cream-200); border-bottom: 2px solid var(--ink-900); }
.rates thead .rates-stay { font: 700 13px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); vertical-align: bottom; }
.rates thead th.peak { background: var(--apricot-500); }
.rates td.peak { background: var(--apricot-100); }
.rates small { display: block; font: 400 14px/1.4 var(--font-sans); color: var(--text-muted); margin-top: 2px; }
.rates thead th small { color: var(--ink-900); opacity: .8; }
.rates tbody th { font: 700 17px/1.35 var(--font-sans); }
.rates .price { display: block; font: 700 24px/1.2 var(--font-sans); }
@media (max-width: 480px) {
  .rates th, .rates td { padding: var(--space-3) 10px; }
  .rates .price { font-size: 20px; }
  .rates thead th { font-size: 16px; }
}

.extras { display: grid; gap: var(--space-4); align-content: start; }
.extras dl { margin: 0; display: grid; gap: var(--space-3); }
.extras dl > div { padding-bottom: var(--space-3); border-bottom: 1px dotted var(--tan-400); }
.extras dt { font-weight: 700; margin-bottom: 2px; }
.extras dl > div.row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.extras .row dt { margin-bottom: 0; }
.extras dd { margin: 0; display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.extras dd b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.extras .btn { justify-self: start; }

/* ---------- Gastgeber ---------- */
.hosts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.hosts-text { display: grid; gap: var(--space-3); padding: var(--space-6); }
.signature { font: italic 400 26px/1.3 var(--font-display); margin-top: var(--space-2); }
@media (max-width: 820px) { .hosts { grid-template-columns: 1fr; gap: var(--space-5); } .hosts-text { padding: var(--space-5); } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-6); align-items: start; }
.contact-info { display: grid; gap: var(--space-4); }
.address-card { font-style: normal; line-height: 1.7; display: grid; gap: var(--space-4); }
.addr + .addr { padding-top: var(--space-4); border-top: 1px dotted var(--tan-400); }
.addr-label { display: block; font: 700 12px/1.4 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--burgundy-700); margin-bottom: var(--space-1); }
.textlink { font-weight: 500; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: var(--space-4); background: var(--surface-paper); border: 1px solid var(--rule-soft); padding: var(--space-6); min-width: 0; }
@media (max-width: 560px) { .form { padding: var(--space-5) var(--space-4); } }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-1); min-width: 0; }
.field label { font: 700 14px/1.4 var(--font-sans); letter-spacing: .03em; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--font-sans); color: var(--text); background: var(--surface-paper);
  border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 10px 12px; min-height: 46px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field.invalid input, .field.invalid textarea { border: 2px solid var(--alert-400); }
.field .err { font-size: 14px; font-weight: 700; color: var(--alert-700); }
.check { grid-template-columns: auto 1fr; align-items: start; gap: var(--space-3); }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--ink-900); }
.check label { font-weight: 400; letter-spacing: 0; font-size: 15px; line-height: 1.5; }
.check.invalid label { color: #a30000; }
.check .err { grid-column: 1 / -1; }
.privacy-link { grid-column: 2; font-size: 15px; justify-self: start; }
.field .err { color: #a30000; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.hint { font-size: 14px; color: var(--text-muted); }

.notice { padding: 14px 16px; border-radius: var(--radius-s); font-weight: 700; font-size: 17px; line-height: 1.5; }
.notice.is-error { background: var(--alert-100); border: 2px solid var(--alert-400); color: #a30000; }
.notice.is-ok { background: var(--ok-100); border: 2px solid #8bb174; color: var(--ok-700); }

/* ---------- Impressum / Datenschutz ---------- */
.legal-page .site-header { position: static; }
.back { margin-left: auto; }
.legal { max-width: calc(var(--measure) + 40px); padding-block: var(--space-6) var(--space-7); }
.legal h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 600; margin-bottom: var(--space-2); }
.legal h2 { font-size: 22px; margin: var(--space-6) 0 var(--space-2); scroll-margin-top: 20px; }
.legal p, .legal ul { margin: 0 0 var(--space-3); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: var(--space-1); }
.legal .lead { margin-block: var(--space-4); }
.legal-lang { font-size: 14px; color: var(--text-muted); font-style: italic; }
.toc { background: var(--surface-raised); border-radius: var(--leaf); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-4); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: var(--space-6); }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.legal-stand { margin-top: var(--space-6); color: var(--text-muted); font-size: 15px; }
.legal-foot { margin-top: var(--space-5); font-weight: 500; }
mark.todo { background: #ffe58a; color: var(--ink-900); padding: 1px 4px; border-radius: 2px; font-weight: 700; }
.footer-small a[aria-current="page"] { font-weight: 700; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-200); border-top: 1px solid var(--rule); padding-block: var(--space-6); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-5); flex-wrap: wrap; }
.footer-brand { font: 500 26px/1.2 var(--font-display); margin-bottom: var(--space-2); }
.footer-small { font-size: 15px; color: var(--text-muted); }
.script { font: italic 400 clamp(34px, 5vw, 46px)/1 var(--font-display); color: var(--ink-900); }
