/* ==========================================================================
   Rechtliche Seiten — Impressum, Datenschutz

   Diese Seiten sind bewusst statisches HTML ohne JavaScript. Rechtstexte
   müssen auch dann lesbar sein, wenn Skripte blockiert werden oder
   fehlschlagen. Kopf und Fuß stehen deshalb direkt im Dokument.
   ========================================================================== */

.legal-header {
  padding: clamp(1rem, .8rem + 1vw, 1.6rem) var(--gutter);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.legal-header a {
  font-size: var(--fs-small);
  text-decoration: none;
  color: var(--muted);
}
.legal-header a:hover { color: var(--ink); }

.legal-header__mark {
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink) !important;
}

.legal-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.legal-hero h1 {
  margin-top: var(--sp-sm);
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: var(--ls-display);
}

/* ---------- Fließtext ------------------------------------------------------ */

.legal {
  max-width: var(--w-text);
  padding-bottom: var(--section-y);
}

.legal h2 {
  margin-top: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -.01em;
}

.legal h2:first-child { margin-top: 0; }

.legal p,
.legal ul { margin-top: var(--sp-md); }

.legal p { line-height: var(--lh-body); }

.legal ul { padding-left: 1.2rem; display: grid; gap: .55rem; }
.legal li { line-height: var(--lh-body); }

.legal a { color: var(--accent-strong); }

.legal strong { font-weight: 600; }

/* ---------- Geltungsbereich --------------------------------------------------
   Steht ganz oben und sagt, für welche Websites der Text gilt. Muss auffallen,
   ohne wie eine Warnung auszusehen. */

.legal-scope {
  margin-bottom: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  padding-left: clamp(1rem, .7rem + 1vw, 1.5rem);
  border-left: 2px solid var(--accent-strong);
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--ink);
  max-width: 52ch;
}

.legal-stamp {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted-soft);
}

/* ---------- Der Kasten „Kurz vorweg" ---------------------------------------- */

.legal-lead {
  padding: clamp(1.25rem, 1rem + 1.4vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--paper-warm);
  box-shadow: inset 0 0 0 1px var(--line);
}

.legal-lead h2 { margin-top: 0; }

/* ---------- Schnellzugriff auf einen Abschnitt ------------------------------
   Steht nur dort, wo es einen Abschnitt gibt, den Leute gezielt suchen.
   Ein Sprung innerhalb der Seite funktioniert ohne JavaScript; eine
   Weiterleitung von außen tut es nicht — siehe Kommentar in
   legal-content.js.                                                        */

.legal-jump {
  margin: var(--sp-md) 0 clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  padding: var(--sp-sm) var(--sp-md);
  border-left: 3px solid var(--accent-strong);
  background: var(--paper-warm);
  font-size: var(--fs-body);
  max-width: 52ch;
}

/* Damit die Überschrift beim Sprung nicht unter der Kopfzeile klebt. */
.legal h2 { scroll-margin-top: 5rem; }

/* ---------- Prüfpunkte ------------------------------------------------------
   Sichtbar und nicht zu übersehen. Alles, was beim Übertragen der
   bestehenden Fassungen angepasst wurde oder noch offen ist, steht hier —
   nicht stillschweigend im Fließtext.                                       */

.notice {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  padding: clamp(1.25rem, 1rem + 1.4vw, 2rem);
  border-radius: var(--r-lg);
  border: 2px dashed var(--accent);
  background: var(--accent-wash);
}

.notice h2 {
  margin-top: 0;
  font-size: var(--fs-h4);
  color: var(--accent-strong);
}

.notice > p,
.notice > ul { font-size: var(--fs-small); }

.notice li + li { margin-top: .55rem; }

.notice__flag {
  display: inline-block;
  margin-bottom: var(--sp-xs);
  padding: .25em .7em;
  border-radius: var(--r-pill);
  background: var(--accent-strong);
  color: var(--accent-on);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

/* ---------- Fuß --------------------------------------------------------------- */

.legal-footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-lg) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm) var(--sp-lg);
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--muted);
}

.legal-footer nav { display: flex; gap: var(--sp-md); flex-wrap: wrap; }
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover { color: var(--ink); }

@media (hover: none) {
  .legal-header a, .legal-footer a { padding-block: .5rem; }
}
