/* Shared chrome for the legal pages (impressum, privacy, terms).
   Tokens mirror app/landing.html, which mirrors the app's app.css, so the
   whole product reads as one thing. Change them here and in landing together. */

:root {
  --paper:       #fffdfa;
  --paper-sunk:  #f6f1e9;
  --ink:         #0d0c0b;
  --ink-muted:   #7a7570;
  --accent:      #b06a2a;
  --accent-ink:  #9e5e20;
  --line:        #d6cdc0;
  --line-soft:   #e8e0d4;

  --font-ui:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-md:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;

  --radius:    6px;
  --radius-sm: 4px;
}

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

body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Header — identical to landing.html ── */
.site-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.site-header .wordmark { font-size: var(--text-base); font-weight: 700; letter-spacing: 0.1em; color: inherit; text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; }
.site-header nav a { font-size: var(--text-sm); color: var(--ink-muted); text-decoration: none; margin-left: 0; transition: color 0.12s; }
.site-header nav a:hover { color: var(--accent-ink); }
.site-header nav a.nav-signin { color: var(--accent-ink); font-weight: 600; }
@media (min-width: 640px) {
  .site-header { padding: 20px 40px; }
  .site-header .wordmark { font-size: 1.05rem; }
  .site-header nav { gap: 4px 26px; }
}

/* ── Secondary navigation — moves between the three legal pages ── */
.legal-nav { border-bottom: 1px solid var(--line-soft); background: var(--paper-sunk); padding: 0 20px; }
.legal-nav ul { max-width: 680px; margin: 0 auto; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.legal-nav a {
  display: inline-block;
  padding: 11px 14px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.legal-nav a:hover { color: var(--accent-ink); }
.legal-nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; border-bottom-color: var(--accent); }
@media (min-width: 640px) { .legal-nav { padding: 0 40px; } }

/* ── Content ── */
.content { max-width: 680px; margin: 0 auto; padding: 48px 24px 80px; }
.content-label { font-size: var(--text-sm); color: var(--accent-ink); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.content h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px; }
.divider { width: 44px; height: 2px; background: var(--accent); margin-bottom: 22px; }
.updated { font-size: var(--text-sm); color: var(--ink-muted); margin-bottom: 28px; }
.content h2 { font-size: var(--text-lg); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; margin: 38px 0 10px; }
.content p { font-size: var(--text-md); color: var(--ink-muted); line-height: 1.7; }
.content p + p { margin-top: 12px; }
.content strong { color: var(--ink); font-weight: 600; }
.content a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.content ul { margin: 12px 0 0 20px; }
.content li { font-size: var(--text-md); color: var(--ink-muted); line-height: 1.7; }
.content li + li { margin-top: 6px; }
.content code { font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace); font-size: 0.9em; background: var(--paper-sunk); padding: 1px 5px; border-radius: var(--radius-sm); color: var(--ink); }
.address { font-size: var(--text-md); color: var(--ink-muted); line-height: 1.8; }

/* ── Subprocessor list ── */
.party { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--paper-sunk); padding: 14px 16px; margin-top: 10px; }
.party-name { font-size: var(--text-md); font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.party-role { font-size: var(--text-md); color: var(--ink-muted); line-height: 1.65; }

/* ── Contact form (impressum) ── */
.contact-form { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); background: var(--paper);
  font-family: inherit; font-size: var(--text-md); color: var(--ink);
  border-radius: var(--radius-sm); outline: none; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-muted); opacity: 0.7; }
.contact-form textarea { min-height: 110px; }
.contact-form button {
  align-self: flex-start; padding: 11px 24px;
  background: transparent; border: 1.5px solid var(--accent); color: var(--accent-ink);
  font-family: inherit; font-size: var(--text-md); font-weight: 600;
  cursor: pointer; border-radius: var(--radius); transition: background 0.15s, color 0.15s;
}
.contact-form button:hover:not(:disabled) { background: var(--accent); color: var(--paper); }
.contact-form button:disabled { opacity: 0.55; cursor: default; }
.form-status { font-size: var(--text-md); min-height: 1.4em; margin-top: 8px; color: var(--ink-muted); }
.form-status.is-ok { color: var(--accent-ink); }
.form-status.is-error { color: #c0392b; }

.contact-legal { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--text-sm); }
.content .contact-legal a { color: var(--ink-muted); text-decoration: none; padding: 8px 0; }
.content .contact-legal a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
