/* ============================================================
   Legal pages (imprint / privacy) — restyled in the new system.
   Content is unchanged (legally required German text); only the
   look is ported to the locked tokens. Tokens come from tokens.css.
   Targets the existing legal-page markup (nav / main / footer).
   ============================================================ */

body { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- Nav ---- */
nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--container-pad);
  border-bottom: 1px solid var(--line-strong);
}
.nav-logo svg { height: 40px; width: auto; display: block; color: var(--text-strong); }
.nav-back {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-ui); font-size: var(--fs-caption); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted);
  transition: color var(--dur) var(--ease-out);
}
.nav-back:hover { color: var(--text-strong); }
.nav-back svg { transition: transform var(--dur) var(--ease-out); }
.nav-back:hover svg { transform: translateX(-3px); }

/* ---- Main ---- */
main { flex: 1; position: relative; z-index: 1; max-width: 820px; width: 100%; margin: 0 auto; padding: var(--sp-9) var(--container-pad) var(--sp-10); }

.page-eyebrow { font-family: var(--font-ui); font-size: var(--fs-caption); font-weight: var(--fw-semibold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--gold-500); margin-bottom: var(--sp-4); }
.page-title { font-family: var(--font-display); font-size: clamp(var(--fs-h1), 6vw, var(--fs-display-1)); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); color: var(--text-strong); line-height: var(--lh-display); margin: 0 0 var(--sp-7); }
.page-title em { font-style: normal; color: var(--gold-500); }

.page-stand { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-muted); letter-spacing: 0.06em; margin: calc(var(--sp-5) * -1 + var(--sp-3)) 0 var(--sp-7); }

.rule { width: 40px; height: 1px; background: var(--line-strong); margin-bottom: var(--sp-7); border: 0; }

/* Legal-text lists */
.legal-section ul { margin: var(--sp-3) 0 var(--sp-3) var(--sp-5); }
.legal-section ul li { font-family: var(--font-ui); font-size: var(--fs-body); font-weight: var(--fw-regular); line-height: var(--lh-body); color: var(--text-body); margin-bottom: var(--sp-1); }

/* Legal basis tag — flat sharp label (no pill), teal-tinted */
.rechtsgrundlage { display: inline-block; font-family: var(--font-ui); font-size: var(--fs-caption); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--teal-500);
  background: var(--teal-tint-14); border: 1px solid var(--teal-tint-30); border-radius: 0;
  padding: var(--sp-1) var(--sp-3); margin-bottom: var(--sp-4); }

/* Rights table */
.rights-table { width: 100%; border-collapse: collapse; margin: var(--sp-4) 0; }
.rights-table th { font-family: var(--font-ui); font-size: var(--fs-caption); font-weight: var(--fw-semibold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted); text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line-strong); }
.rights-table td { font-family: var(--font-ui); font-size: var(--fs-small); font-weight: var(--fw-regular); color: var(--text-body); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
.rights-table tr:last-child td { border-bottom: none; }
.rights-table tr:hover td { background: rgba(249,250,251,0.03); }

/* Notice block */
.notice-block { background: rgba(249,250,251,0.03); border: 1px solid var(--line-strong); border-radius: 2px; padding: var(--sp-5) var(--sp-6); margin-top: var(--sp-8); }
.notice-block p { font-family: var(--font-ui); font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 0; }
.notice-block strong { color: var(--gold-500); }

/* ---- Content ---- */
.legal-section { margin-bottom: var(--sp-7); }
.legal-section h2 {
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-semibold); color: var(--text-strong);
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-5); letter-spacing: -0.01em;
}
.legal-section p { font-family: var(--font-ui); font-size: var(--fs-body); font-weight: var(--fw-regular); line-height: var(--lh-body); color: var(--text-body); margin-bottom: var(--sp-3); }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { font-weight: var(--fw-semibold); color: var(--text-strong); }
.legal-section a { color: var(--gold-500); text-decoration: none; border-bottom: 1px solid var(--gold-tint-40); padding-bottom: 1px; transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.legal-section a:hover { color: var(--gold-400); border-color: var(--gold-500); }

.address-block { background: var(--surface-card); border: 1px solid var(--line-strong); border-radius: 2px; padding: var(--sp-5) var(--sp-6); margin: var(--sp-5) 0; }
.address-block p { margin-bottom: var(--sp-1); }
.address-block p:last-child { margin-bottom: 0; }

.disclaimer-block { background: rgba(249,250,251,0.03); border-left: 2px solid var(--line-strong); padding: var(--sp-4) var(--sp-5); margin-top: var(--sp-4); }
.disclaimer-block p { font-size: var(--fs-small); color: var(--text-muted); }

/* ---- Footer ---- */
footer {
  position: relative; z-index: 1;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-strong);
  padding: var(--sp-6) var(--container-pad);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
}
.footer-copy { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-muted); letter-spacing: 0.04em; }
.footer-links { display: flex; gap: var(--sp-5); }
.footer-links a { font-family: var(--font-ui); font-size: var(--fs-caption); color: var(--text-muted); letter-spacing: 0.04em; transition: color var(--dur) var(--ease-out); }
.footer-links a:hover { color: var(--text-strong); }

@media (max-width: 600px) {
  nav, footer { padding-inline: var(--sp-5); }
  main { padding: var(--sp-7) var(--sp-5) var(--sp-9); }
  footer { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}
