/* Impressum + Datenschutz. Static pages, not SPA routes: they have to answer
   without JavaScript (Google's OAuth review fetches the privacy URL, and a
   court asks whether the Impressum is "unmittelbar erreichbar"), and they must
   never depend on the app booting. Tokens come from theme.css. */

.legal {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 20px 96px;
}

.legal-back {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  transition: color .15s;
}
.legal-back:hover { color: var(--text-dim); }

.legal-rule { width: 56px; height: 3px; background: var(--accent); margin: 40px 0 26px; }

/* "Datenschutzerklärung" is one 20-letter word: at a 34px floor it is wider
   than a 360px phone's text column and pushes the whole page sideways. */
.legal h1 {
  font-size: clamp(28px, 8.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  hyphens: auto;
  overflow-wrap: break-word;
}

.legal-stand { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.legal h2 {
  font-size: clamp(20px, 4.6vw, 24px);
  line-height: 1.25;
  margin: 48px 0 0;
}

.legal h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 26px 0 0;
}

.legal p, .legal li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-dim);
}
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); font-weight: 600; }

.legal a.inline {
  color: var(--accent-text);
  border-bottom: 1px solid var(--accent-dim);
  overflow-wrap: anywhere;
}
.legal a.inline:hover { border-bottom-color: var(--accent-text); }

.legal-address { font-style: normal; color: var(--text); font-size: 15.5px; line-height: 1.7; margin: 12px 0 0; }

.legal-foot {
  display: flex;
  gap: 20px;
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.legal-foot a { color: var(--muted); transition: color .15s; }
.legal-foot a:hover, .legal-foot a[aria-current="page"] { color: var(--text-dim); }
