/* anyVersum — Rechtsseiten (Impressum, Datenschutz)
   Ruhige, statische Seiten im Stil der Startseite, aber ohne Canvas und ohne
   bewegten Hintergrund. Der Dunkelmodus greift über html.av-dark. */

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
  /* Hell: helles Blau wie im unteren Drittel der Startseite, statisch */
  background: linear-gradient(180deg, #e8f1fb 0%, #f1f8fe 100%);
  background-attachment: fixed;
  transition: background 400ms var(--ease-out), color 400ms var(--ease-out);
}

.av-dark body {
  color: var(--text-body);
  /* Dunkel: helleres Nachtblau wie oben links, statisch */
  background:
    radial-gradient(1100px 720px at 12% -5%, rgba(95, 73, 214, 0.20), transparent 60%),
    #10142b;
  background-attachment: fixed;
}

.legal {
  max-width: var(--container-text);
  margin: 0 auto;
  padding: var(--space-9) var(--space-6) var(--space-10);
}

.legal__nav {
  margin-bottom: var(--space-8);
}

.legal__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  text-decoration: none;
}
.legal__wordmark:hover { text-decoration: none; }
.legal__wordmark em {
  font-style: italic;
  color: var(--text-accent);
}

.legal h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  color: var(--text-strong);
}

.legal h2 {
  font-size: var(--text-xl);
  margin: var(--space-8) 0 var(--space-3);
  color: var(--text-strong);
}

.legal h3 {
  font-size: var(--text-lg);
  margin: var(--space-6) 0 var(--space-2);
  color: var(--text-strong);
}

.legal h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  margin: var(--space-5) 0 var(--space-2);
  color: var(--text-strong);
}

.legal p {
  margin: 0 0 var(--space-4);
  color: var(--text-body);
}

.legal ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
  color: var(--text-body);
}
.legal li { margin-bottom: var(--space-2); }

.legal strong { color: var(--text-strong); }

/* Links im Rechtstext — bewusst getrennt von Wortmarke und Zurück-Link,
   damit deren eigene Farben nicht überschrieben werden. */
.legal__content a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.legal__content a:hover { color: var(--link-hover); }

.legal__pending {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.legal__back {
  display: inline-block;
  margin-top: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}
