/*
 * Rechtsseiten (Systemseiten impressum und datenschutz, gleiches CSS in beiden Ordnern):
 * eigenes CSS über tokens-v1, basis-v1, icons-v1. Werte 1:1 aus dem Prototyp
 * impressum/index.html bzw. datenschutz/index.html (Kopfbereich mit Blobs, Pillenleiste,
 * Lesespalte, Karten).
 */

html { scroll-padding-top: calc(var(--nav-h) + 24px); }

.read { max-width: var(--read-w); margin: 0 auto; }   /* zentrierte Lesespalte */

/* ============================================================
   KOPFBEREICH  –  Blob-Hintergrund wie im Hero der Event-Seiten
   ============================================================ */
.legal-hero {
  position: relative; overflow: hidden;
  background: var(--marine-05);
  padding: calc(var(--nav-h) + 72px) 0 64px;
}
.legal-hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; filter: blur(55px);
}
.legal-hero .container { position: relative; z-index: 1; }

.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; }
.toc a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  border-radius: 999px; border: 2px solid var(--marine);
  font-size: 0.85rem; font-weight: 600; color: var(--marine); text-decoration: none;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.2s, color 0.2s;
}
.toc a:hover,
.toc a[aria-current="page"] { background: var(--marine); color: var(--white); }

/* ============================================================
   INHALT
   ============================================================ */
.legal { padding: 72px 0 120px; }
.legal p { color: var(--anthrazit); }
.legal p + p { margin-top: 14px; }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 18px; }
.legal h3 { font-size: 1.15rem; margin: 32px 0 8px; }
.legal-block + .legal-block { margin-top: 72px; }
.legal a { overflow-wrap: anywhere; }  /* lange URLs brechen statt überzustehen */
.legal ul { margin: 12px 0 14px; padding-left: 1.3em; }
.legal li { color: var(--anthrazit); }
.legal li + li { margin-top: 4px; }
.legal .legal-note { margin-top: 40px; font-size: 0.85rem; color: var(--anthrazit-70); }

.legal-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px;
  background: var(--marine-05);
  border: 1px solid var(--marine-10);
  border-radius: 20px;
  padding: 32px 36px;
}
.legal-card p + p { margin-top: 0; }
.legal-card--single { grid-template-columns: 1fr; gap: 12px; }
.legal-card strong { font-weight: 600; color: var(--marine); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .legal-hero { padding: calc(var(--nav-h) + 40px) 0 48px; }
  .legal { padding: 56px 0 80px; }
  .legal-card { grid-template-columns: 1fr; padding: 24px 22px; }
  .legal-block + .legal-block { margin-top: 56px; }
}
/* sehr schmale Displays (320 px): lange Wörter wie „Datenschutzbestimmungen“ trennen statt überstehen */
@media (max-width: 359px) {
  .legal h2 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
}
