/* ==========================================================================
   legal.css — für impressum.html und datenschutz.html
   Gleiches Kopfzeilen-Muster wie rechner.css / termin.css / wer-sind-wir.css.
   ========================================================================== */

.legal-seite {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Kopfzeile
   ========================================================================== */

.legal-kopf {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) var(--container-pad);
}

.legal-zurueck {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.legal-zurueck:hover { color: var(--accent); }
.legal-zurueck svg   { width: 16px; height: 16px; flex: none; }

/* ==========================================================================
   Inhalt
   ========================================================================== */

.legal-main {
  flex: 1;
  padding-block: var(--space-6) var(--space-9);
}

.legal-titel {
  max-width: 720px;
  margin: 0 auto var(--space-7);
}

.legal-untertitel {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-muted);
}

.legal-content h2 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text);
}

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

.legal-content p { margin-bottom: var(--space-4); }

.legal-content ul {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
  display: grid;
  gap: var(--space-2);
}

.legal-content li { line-height: 1.6; }

.legal-content strong { color: var(--text); font-weight: var(--fw-semibold); }

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

@media (max-width: 768px) {
  .legal-kopf { padding-block: var(--space-3); }
  .legal-zurueck span { display: none; }
  .legal-main { padding-block: var(--space-5) var(--space-7); }
}
