/* Shared styling for legal pages (Impressum, Datenschutz) — mirrors the bau-digital.ai theme */
:root {
  --bg: #f3efe4;
  --bg-2: #ece6d6;
  --ink: #1a1714;
  --ink-2: #3a342c;
  --mute: #87806f;
  --line-soft: rgba(26, 23, 20, 0.18);
  --accent: #ff5b14;
  --accent-ink: #1a1714;
  --paper: #faf7ee;
  --topbar-h: 74px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
em, .serif { font-style: italic; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* page grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.06;
  background-image:
    radial-gradient(rgba(0,0,0,0.55) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
}

/* top chrome */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 28px;
  max-width: 1100px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 3px; border: 1px dashed var(--bg); }
.brand-name { font-size: 15px; }
.back-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink); border: 1px solid var(--ink); border-radius: 999px;
  padding: 8px 16px; white-space: nowrap;
}
.back-link:hover { background: var(--ink); color: var(--bg); text-decoration: none; }

/* document */
.legal { max-width: 820px; margin: 0 auto; padding: 64px 28px 96px; }
.legal h1 {
  font-size: clamp(40px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.03em;
  font-weight: 600; margin: 0 0 12px; text-wrap: balance;
}
.legal h1 em { color: var(--accent); }
.legal .lede { font-size: 17px; color: var(--ink-2); margin: 0 0 6px; max-width: 60ch; }
.legal .updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0 0 40px;
}
.legal h2 { font-size: 24px; letter-spacing: -0.02em; font-weight: 600; margin: 48px 0 14px; line-height: 1.2; }
.legal h3 { font-size: 16px; font-weight: 600; margin: 26px 0 8px; }
.legal p { margin: 0 0 14px; color: var(--ink-2); max-width: 72ch; }
.legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--ink-2); max-width: 72ch; }
.legal li { margin: 0 0 6px; }
.legal address { font-style: normal; line-height: 1.7; }
hr { border: none; border-top: 1px solid var(--line-soft); margin: 44px 0; }

/* highlighted contact / data card */
.card {
  background: var(--paper); border: 1px solid var(--ink); border-radius: 14px;
  padding: 20px 24px; margin: 0 0 24px; line-height: 1.8;
}

/* placeholder the operator must fill in */
.todo {
  background: rgba(255, 91, 20, 0.14);
  border-bottom: 1px dashed var(--accent);
  padding: 0 4px; border-radius: 2px; font-style: normal;
}

/* footer */
.legal-footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: 24px 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.legal-footer a { color: rgba(255,255,255,0.85); }
.legal-footer a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 600px) {
  .legal { padding: 40px 20px 64px; }
  .topbar-inner { padding: 14px 20px; }
}
