/* =========================================================
   LEGAL PAGES — Impressum & Datenschutzerklärung
   Same tokens, fonts and grid as the home page; calm reading layout.
   ========================================================= */

/* Top bar: the "← Zurück zur Startseite" link, styled like the nav */
.legal-nav { justify-content: flex-start; }
.legal-nav a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.legal-nav a:hover { color: var(--cobalt); }

/* Page frame: same side margins and max width as the home page */
.legal {
  padding-inline: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter)));
  padding-block: var(--space-7) var(--section-space);
}

/* Everything full width on phones … */
.legal > * { grid-column: 1 / -1; }

/* … and on laptops the same reading column as the pillar text */
@media (min-width: 64em) {
  .legal > * { grid-column: 4 / span 7; }
}

.legal h1 {
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);   /* 40–72px */
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-5);
}

.legal h2 {
  font-size: var(--text-lg);                        /* 18–20px */
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal p {
  font-size: var(--text-base);                      /* 16–17px */
  line-height: 1.65;
}
.legal p + p { margin-top: var(--space-2); }

/* Long web addresses may break onto the next line on phones */
.legal a { overflow-wrap: anywhere; }

/* "Stand: November 2026 · Impressum" line at the end */
.legal p.legal__meta {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
