/* ================================
   Allenby Kapitalpilot — Legal sub-page styles
   Shared across impressum / datenschutz / agb / widerruf / cookies
   ================================ */

:root {
  --brand-navy: #0b1f3a;
  --brand-navy-deep: #061327;
  --brand-gold: #c9a24a;
  --brand-gold-bright: #d9b566;
  --brand-gold-dark: #a8842f;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --bg-warm: #faf8f3;
  --radius: 12px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'IBM Plex Serif', Georgia, serif; }

.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Header (shared with LP) ===== */
header.site-header {
  background: var(--brand-navy);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--brand-gold);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-navy-deep);
  font-weight: 700;
  font-size: 14px;
}
.logo .accent { color: var(--brand-gold); font-weight: 500; }
.header-nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.header-nav a { color: rgba(255,255,255,0.78); text-decoration: none; transition: color 0.15s var(--ease); }
.header-nav a:hover { color: #fff; }
.header-cta {
  background: var(--brand-gold);
  color: var(--brand-navy-deep);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s var(--ease);
}
.header-cta:hover { background: var(--brand-gold-bright); }

/* ===== Page hero (compact for legal) ===== */
.legal-hero {
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,162,74,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}
.crumb a { color: var(--brand-gold); text-decoration: none; }
.crumb a:hover { color: var(--brand-gold-bright); }
.legal-hero h1 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.legal-hero .lead {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  font-weight: 300;
}

/* ===== Demo notice banner ===== */
.demo-notice {
  background: #fef3c7;
  border-bottom: 1px solid #fcd34d;
  color: #78350f;
  padding: 10px 0;
  font-size: 13px;
  text-align: center;
}
.demo-notice strong { font-weight: 600; }

/* ===== Content area ===== */
main.legal {
  padding: 56px 0 88px;
}
.legal-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.legal h2 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 40px 0 16px;
  color: var(--ink);
  padding-top: 8px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--ink);
}
.legal p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.legal p strong { color: var(--ink); font-weight: 600; }
.legal ul, .legal ol {
  margin: 14px 0 14px 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brand-navy); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--brand-gold-dark); }

.legal-block {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 20px 0;
}
.legal-block.warn {
  background: #fffcf5;
  border-color: #ead8a4;
  border-left: 4px solid var(--brand-gold-dark);
}
.legal-block.info {
  background: #f0f7ff;
  border-color: #bfdbfe;
  border-left: 4px solid #1d4ed8;
}
.legal-block p { margin-bottom: 8px; }
.legal-block p:last-child { margin-bottom: 0; }

/* ===== TOC sidebar (optional) ===== */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  font-size: 14px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 6px; }
.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
  transition: color 0.15s, border-color 0.15s;
}
.toc a:hover { color: var(--brand-navy); border-left-color: var(--brand-gold); }

/* ===== Table for legal data ===== */
.legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
  margin: 16px 0;
}
.legal-table th {
  background: var(--bg-soft);
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }

/* ===== Footer (shared with LP) ===== */
footer.site-footer {
  background: var(--brand-navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.footer-col p, .footer-col li { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { padding: 3px 0; }
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--brand-gold); }
.footer-logo {
  font-family: 'IBM Plex Serif', serif;
  font-size: 20px;
  color: #fff;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-logo .accent { color: var(--brand-gold); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-meta { flex-direction: column; }
  .legal-hero { padding: 40px 0 48px; }
  main.legal { padding: 40px 0 64px; }
}
