/*
 * Styles for the legal pages (Impressum, Datenschutz, Third-party software).
 * Linked from templates/legal/_base.html via
 *   <link rel="stylesheet" th:href="@{/css/legal.css(v=${assetVersion})}">
 * so the per-deploy ?v=<sha> query suffix invalidates the browser cache.
 *
 * Extracted from the inline <style> block 2026-06-15 as part of Epic
 * 1.4.5 (CSP tightening). Palette tokens overlap with home.css,
 * dashboard.css, settings.css and logbuch.css; consolidation behind a
 * shared brand stylesheet is parked under planning/93 "Website style
 * guide".
 */

:root {
  color-scheme: dark;
  --bg-deep: #071016;
  --bg-panel: #0d1a22;
  --bg-elevated: #152532;
  --divider: #1d2e3a;
  --gold: #f1bd56;
  --gold-deep: #c88d2f;
  --cyan: #35d8ee;
  --text: #f4ead0;
  --text-dim: #b3a888;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
body {
  background: radial-gradient(ellipse at top, #0d1a22 0%, var(--bg-deep) 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.55;
}
header.site {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
header.site a.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}
header.site .brand .accent { color: var(--gold); }
header.site .brand img { width: 28px; height: 28px; }
main.legal {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
main.legal h1 {
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--text);
}
main.legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--gold);
}
main.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}
main.legal p { margin: 0.75rem 0; }
main.legal ul { margin: 0.75rem 0; padding-left: 1.5rem; }
main.legal li { margin: 0.25rem 0; }
main.legal a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(53, 216, 238, 0.35); }
main.legal a:hover { text-decoration-color: var(--cyan); }
main.legal address {
  font-style: normal;
  padding: 0.75rem 1rem;
  background: rgba(13, 26, 34, 0.6);
  border-left: 2px solid var(--gold);
  margin: 1rem 0;
}
main.legal .stand {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
main.legal .verbatim {
  padding: 1rem 1.25rem;
  background: rgba(13, 26, 34, 0.6);
  border-left: 2px solid var(--cyan);
  font-size: 0.95rem;
  margin: 1rem 0;
}
main.legal table.tpl {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
main.legal table.tpl th,
main.legal table.tpl td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--divider);
}
main.legal table.tpl th { color: var(--gold); font-weight: 600; }
footer.site {
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--divider);
}
footer.site a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 0.6rem;
}
footer.site a:hover { color: var(--cyan); }
footer.site .eve-credit {
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.6;
  margin-top: 0.75rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
