/* =========================================================
   RENÉ KRESS – Rechtsseiten (Impressum / Datenschutz)
   css/legal.css
   Dunkles Prose-Layout, das die Design-Tokens aus style.css
   (--bg, --grad, --c1 …, Space Grotesk / Inter) weiterverwendet.
   Alles unter .legal-page gescoped, damit nichts mit der
   Startseite kollidiert.
   ========================================================= */

.legal-page {
  padding: calc(var(--header-h) + 72px) 0 120px;
  position: relative;
}

/* dezenter Farbschimmer oben, wie auf den Content-Sections */
.legal-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  background:
    radial-gradient(60% 80% at 82% -10%, rgba(232, 121, 249, .10), transparent 60%),
    radial-gradient(50% 70% at 10% 0%, rgba(34, 211, 238, .09), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ── Kopf ── */
.legal-head { margin-bottom: 44px; }
.legal-head .eyebrow { margin-bottom: 20px; }
.legal-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.04em;
  margin: 0;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
}

/* ── Inhaltsverzeichnis (Datenschutz) ── */
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 40px;
}
.legal-toc h2 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 14px;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2px;
  counter-reset: toc;
}
.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.legal-toc a::before {
  counter-increment: toc;
  content: counter(toc);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--c2);
  min-width: 18px;
}
.legal-toc a:hover { background: var(--surface-2); color: var(--text); }

/* ── Abschnitte ── */
.legal-section {
  position: relative;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal-section:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

.legal-section > h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-section > h2 .sec-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--c1);
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 8px;
  padding: 3px 9px;
  line-height: 1;
  position: relative;
  top: -3px;
  flex-shrink: 0;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  margin: 28px 0 10px;
}

.legal-section p,
.legal-section li {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--muted);
}
.legal-section p { margin: 0 0 14px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--text); font-weight: 600; }

.legal-section a {
  color: var(--c1);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, .3);
  transition: border-color .2s var(--ease), color .2s var(--ease);
  overflow-wrap: anywhere;
}
.legal-section a:hover { color: var(--white); border-bottom-color: var(--white); }

.legal-section ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section ul li {
  position: relative;
  padding-left: 22px;
  margin: 0;
}
.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

/* Definitionsreihen (Impressum) */
.legal-rows {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.legal-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
}
.legal-row:last-child { border-bottom: none; }
.legal-row dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted-2);
  padding-top: 2px;
}
.legal-row dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}
.legal-row dd a { color: var(--c1); text-decoration: none; }
.legal-row dd a:hover { text-decoration: underline; }

/* Hinweis-/Kontakt-Box */
.legal-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 22px 0 0;
}
.legal-note .legal-note-icon { font-size: 20px; line-height: 1.4; flex-shrink: 0; }
.legal-note p { margin: 0; font-size: 14.5px; color: var(--muted); }
.legal-note strong { color: var(--text); }

/* weiterführende Links unten */
.legal-more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.legal-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 18px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.legal-more a:hover { background: var(--surface-2); transform: translateY(-2px); }

@media (max-width: 560px) {
  .legal-row { grid-template-columns: 1fr; gap: 4px; }
  .legal-row dt { padding-top: 0; }
}
