/* =====================================================================
   legal.css — klassisch-elegantes Layout für die Rechtsseiten
   (Impressum, Datenschutzerklärung, Nutzungsbedingungen)
   Keine externen Web-Fonts (Datenschutz): System-Serif-Stack.
   ===================================================================== */

/* Ruhige Fläche hinter dem Dokument */
body.legal-fixed-header-page,
body.legal-page { background: #e9ebef; }

.legal {
  max-width: none;
  background: #e9ebef;
}

/* Das „Papier" — zentrierte Dokumentkarte */
.legal-doc {
  /* long German compounds (Auftragsverarbeitungsvertrag, Datenschutz-Folgenabschätzung) wrap instead of overflowing */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
  max-width: 720px;
  margin: 34px auto 64px;
  padding: 56px clamp(24px, 6vw, 64px) 48px;
  background: #fffdf7;
  border: 1px solid #e7e2d6;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(24, 28, 38, .05), 0 22px 60px rgba(24, 28, 38, .12);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  color: #23262c;
  font-size: 17.5px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Titel mit klassischer Linie darunter */
.legal-doc h1 {
  font-family: inherit;
  font-size: clamp(22px, 7.5vw, 42px);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 .5rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid #23262c;
}

/* Abschnittsüberschriften — editoriale Kapitälchen-Anmutung */
.legal-doc h2 {
  font-family: inherit;
  font-size: clamp(12.5px, 3.8vw, 14.5px);
  overflow-wrap: anywhere;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #6c6552;
  margin: 2.3rem 0 .7rem;
}

.legal-doc p,
.legal-doc li { max-width: 68ch; margin: 0 0 1.05rem; }
.legal-doc ul { margin: 0 0 1.05rem; padding-left: 1.3rem; }
.legal-doc li { margin: .4rem 0; }
.legal-doc strong { font-weight: 700; color: #1a1c22; }

.legal-doc a {
  color: #33507a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-doc a:hover { color: #22395b; }

.legal-doc hr {
  border: 0;
  border-top: 1px solid #e7e2d6;
  margin: 1.9rem 0;
}

.legal-doc .muted { color: #8b8676; font-style: italic; }

/* Zurück-Link dezent */
.legal-doc a[href$="index.html"] {
  display: inline-block;
  margin-top: 1.7rem;
  font-style: italic;
  text-decoration: none;
}
.legal-doc a[href$="index.html"]:hover { text-decoration: underline; }

/* Datenschutz: inneres Panel flach machen (keine Karte-in-Karte) */
.legal-doc .legal-panel {
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
  margin: 0;
}

/* Mobil: weniger Rand */
@media (max-width: 640px) {
  .legal-doc { margin: 16px 12px 40px; padding: 32px 22px; border-radius: 6px; }
}

/* Narrow phones: tighter paper margins so the text column stays readable */
@media (max-width: 480px) {
  .legal-doc { margin: 16px auto 40px; padding: 32px clamp(16px, 5vw, 24px) 32px; font-size: 16.5px; }
  .legal-doc h2 { letter-spacing: .08em; }
}
@media (max-width: 340px) {
  .legal-doc { padding: 28px 14px; font-size: 16px; }
}
