/* ════════════════════════════════════════════════════════
   Rechtsseiten – Impressum & Datenschutz (RTG Camping)
   Schlichtes, sehr gut lesbares Dokument-Layout.
   Navy-Headlines (Kanit italic via main.css), Inter-Lauftext,
   dezente Gold-Akzente. Nur Tokens aus variables.css.
   ════════════════════════════════════════════════════════ */

/* ── Kurzer Hero (Navy, Marken-Schnittkante) ── */
.legal-hero {
  position: relative;
  background: var(--gradient-navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.legal-hero::before {                 /* diagonaler Gold-Keil rechts – RTG-Signature */
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; width: 42%;
  background: linear-gradient(160deg, rgba(255,205,0,.12), rgba(255,205,0,0) 62%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}
.legal-hero-inner { padding: clamp(2.75rem, 7vw, 4.5rem) 1.5rem clamp(2.5rem, 6vw, 3.75rem); }
.legal-hero h1 { color: #fff; margin: .9rem 0 .85rem; }
.legal-hero-stand {
  font-size: .9rem; color: rgba(255,255,255,.72);
  letter-spacing: .01em;
}

/* ── Dokument-Körper ── */
.legal { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); background: var(--white); }
.legal-doc { font-size: 1rem; line-height: 1.8; color: var(--ink); }
.legal-doc > section { margin-bottom: 2.75rem; scroll-margin-top: 92px; }
.legal-doc > section:last-child { margin-bottom: 0; }

/* Überschriften mit dezentem Gold-Balken */
.legal-doc h2 {
  position: relative; padding-left: 1rem; margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}
.legal-doc h2::before {
  content: ""; position: absolute; left: 0; top: .16em; bottom: .16em;
  width: 4px; background: var(--gold); border-radius: 2px;
}
.legal-doc h3 { margin: 1.6rem 0 .5rem; color: var(--navy); font-size: 1.1rem; }
.legal-doc p  { margin-bottom: 1rem; line-height: 1.8; color: var(--ink); }
.legal-doc p:last-child { margin-bottom: 0; }
.legal-doc strong { color: var(--navy); font-weight: 600; }
.legal-doc a {
  color: var(--navy); text-decoration: underline; text-underline-offset: 2px;
  word-break: break-word; transition: color .2s;
}
.legal-doc a:hover { color: var(--gold-600); }

/* Aufzählungen im Lauftext – RTG-Plus-Bullet */
.legal-doc ul { list-style: none; margin: .5rem 0 1rem; display: flex; flex-direction: column; gap: .45rem; }
.legal-doc ul li { position: relative; padding-left: 1.5rem; line-height: 1.7; }
.legal-doc ul li::before {
  content: "+"; position: absolute; left: 0; top: -1px;
  font-family: var(--font-head); font-style: italic; font-weight: 800;
  color: var(--gold-600);
}

/* ── Gesicherte Firmen-/Kontaktdaten ── */
.legal-data {
  margin: 0 0 1.25rem; padding: 1.4rem 1.6rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  line-height: 1.7;
}
.legal-data p { margin-bottom: .35rem; }
.legal-data p:last-child { margin-bottom: 0; }
.legal-data-name {
  font-family: var(--font-head); font-style: italic; font-weight: 800; color: var(--navy);
  font-size: 1.15rem; margin-bottom: .55rem;
}

/* ── Platzhalter-Kasten: finaler e-recht24-Text folgt ── */
.legal-todo {
  margin: 1rem 0 1.5rem; padding: 1.1rem 1.35rem;
  background: #fffdf2;                          /* sehr heller Gold-Ton */
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 8px;
}
.legal-todo::before {
  content: "Platzhalter · finaler e-recht24-Text folgt";
  display: block; margin-bottom: .45rem;
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy);
}
.legal-todo p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.65; }
.legal-todo p + p { margin-top: .5rem; }

/* Inline-Platzhalter-Token (im Fließtext) */
.legal-ph {
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: .82rem; letter-spacing: .01em; color: var(--navy);
  background: rgba(255,205,0,.22);
  padding: .05rem .5rem; border-radius: 5px;
}

/* ── Inhaltsverzeichnis (Datenschutz) ── */
.legal-toc {
  margin: 0 0 2.75rem; padding: 1.5rem 1.75rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.legal-toc .legal-toc-title {
  font-family: var(--font-head); font-style: italic; font-weight: 800;
  font-size: 1.05rem; color: var(--navy); margin: 0 0 .9rem;
}
.legal-toc ol { list-style: none; counter-reset: toc; columns: 2; column-gap: 2.25rem; }
.legal-toc li { counter-increment: toc; margin-bottom: .55rem; break-inside: avoid; }
.legal-toc a {
  display: inline-flex; gap: .6rem; align-items: baseline;
  font-size: .92rem; color: var(--muted); text-decoration: none; line-height: 1.4;
  transition: color .2s;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  color: var(--gold-600); flex-shrink: 0;
}
.legal-toc a:hover { color: var(--navy); }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }
