/* =========================================================================
   Alexander Schwarzhof — Legal pages (Impressum, Datenschutzerklärung)
   Dark theme, readable long-form typography. BEM naming, no inline styles.
   ========================================================================= */

:root {
  --bg: #0E0E10;
  --surface: #1A1B1E;
  --line: rgba(229, 229, 229, 0.09);
  --line-strong: rgba(229, 229, 229, 0.16);
  --text: #E5E5E5;
  --muted: #9A9A9E;
  --faint: #86878D;
  --accent: #4F8FC7;
  --accent-bright: #6BA6D8;
  --serif: "Spectral", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --pad: clamp(22px, 5vw, 64px);
}

* { box-sizing: border-box; }

.legal {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 2px; }

/* ---------- Top bar ---------- */
.legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--line);
}
.legal-bar__brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .01em;
  color: var(--text);
}
.legal-bar__mark { color: var(--accent); font-weight: 500; }
.legal-bar__back { font-size: 14px; color: var(--muted); }
.legal-bar__back:hover { color: var(--text); }

/* ---------- Content ---------- */
.legal-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) var(--pad);
}
.legal-main__title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 12px;
}
.legal-main__intro {
  color: var(--muted);
  margin: 0 0 40px;
}

/* Editorial note shown to the operator; remove before publishing. */
.legal-note {
  border-left: 2px solid var(--accent);
  background: var(--surface);
  padding: 16px 20px;
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 15px;
}
.legal-note strong { color: var(--text); }

.legal-section { margin: 0 0 36px; }
.legal-section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text);
}
.legal-section p { margin: 0 0 14px; }
.legal-section ul { margin: 0 0 14px; padding-left: 22px; }
.legal-section li { margin: 0 0 6px; }

/* Placeholder tokens the operator still has to fill in. */
.legal-ph {
  color: var(--accent-bright);
  font-style: italic;
  background: rgba(79, 143, 199, 0.10);
  padding: 0 4px;
  border-radius: 3px;
}

.legal-address {
  font-style: normal;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.6;
}

.legal-meta {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

/* ---------- Footer ---------- */
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 26px var(--pad);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.legal-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.legal-footer__link { color: var(--muted); font-size: 14px; }
.legal-footer__link:hover { color: var(--text); text-decoration: none; }
.legal-footer__copy { color: var(--faint); font-size: 13px; }
