/* legal.css — content styling for the Privacy Policy / Impressum pages.
   Loaded in addition to styles.css (nav, floating-actions, footer, fonts,
   color tokens are all shared with the landing page from there). This file
   only adds the document-reading layout: dark hero, light content column,
   section numbering, the data tables, and the callouts the source legal
   documents themselves mark out (retention notices, missing-information
   flags, red-highlighted controller details). */

/* ── DOC HERO (dark, matches landing .hero tone) ── */
.doc-hero {
  background: #0f0e0d;
  color: #fafaf8;
  padding: 120px 48px 72px;
  position: relative;
  overflow: hidden;
}
.doc-hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}
.doc-hero-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }
.doc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase;
  color: #a89ff5;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(91,79,207,0.12);
  border: 1px solid rgba(91,79,207,0.25);
  margin-bottom: 28px;
}
.doc-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #a89ff5; }
.doc-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900; line-height: 1.08; letter-spacing: -1.2px;
  margin: 0 0 20px;
}
.doc-hero h1 em { font-style: italic; font-weight: 400; color: #f5a623; }
.doc-hero-sub { font-size: 16px; color: rgba(250,250,248,0.55); max-width: 580px; line-height: 1.6; margin: 0 0 28px; }
.doc-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: rgba(250,250,248,0.45);
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
}
.doc-meta strong { color: #fafaf8; font-weight: 600; }

/* ── CONTENT (light) ── */
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 88px 48px 120px; background: #fafaf8; }

.doc-section { margin-bottom: 64px; scroll-margin-top: 32px; }
.doc-section-num {
  font-family: 'Playfair Display', serif;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: #5b4fcf; text-transform: uppercase;
  margin-bottom: 12px; display: flex; align-items: center; gap: 12px;
}
.doc-section-num::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(91,79,207,0.3), transparent); }
.doc-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.6px; margin: 0 0 20px; color: #0f0e0d;
}
.doc-section h3 { font-size: 15px; font-weight: 600; color: #0f0e0d; margin: 28px 0 8px; }
.doc-section p { font-size: 16px; line-height: 1.75; color: #3d3a37; margin: 0 0 16px; }
.doc-section a { color: #5b4fcf; text-decoration: none; border-bottom: 1px solid rgba(91,79,207,0.3); }
.doc-section a:hover { color: #0f0e0d; border-color: #5b4fcf; }
.doc-section strong { color: #0f0e0d; font-weight: 600; }
.doc-section em { font-style: italic; color: #555; }
.doc-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(91,79,207,0.08); padding: 1px 6px; border-radius: 4px;
  font-size: 13px; color: #5b4fcf;
}

/* Text marked in red in the source legal documents (controller identity
   details) — preserved verbatim, styled with the site's existing "red"
   accent (already used for competitor pricing / fee-calc-bad) rather than
   introducing a new color. */
.legal-red { color: #c0392b; font-weight: 600; }

/* Controller / identity card */
.controller-card {
  background: #fff; border: 1px solid rgba(15,14,13,0.08); border-radius: 14px;
  padding: 24px 28px; margin: 20px 0 8px;
}
.controller-card-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #999; margin-bottom: 12px; }
.controller-row { display: flex; gap: 12px; padding: 6px 0; font-size: 14px; flex-wrap: wrap; }
.controller-row .key { color: #888; min-width: 96px; flex-shrink: 0; }
.controller-row .val { color: #0f0e0d; flex: 1; }

/* Identity block (Impressum — no table in the source, just stacked lines) */
.identity-block { background: #fff; border: 1px solid rgba(15,14,13,0.08); border-radius: 14px; padding: 24px 28px; margin: 20px 0 8px; }
.identity-block p { margin: 0 0 4px; font-size: 15px; line-height: 1.6; }
.identity-block p:last-child { margin-bottom: 0; }

/* Rights list — typographic, no cards */
.rights-list { list-style: none; margin: 24px 0 20px; display: flex; flex-direction: column; gap: 4px; }
.rights-list li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid rgba(15,14,13,0.1); align-items: baseline; }
.rights-list li:last-child { border-bottom: 1px solid rgba(15,14,13,0.1); }
.rights-list .art { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; color: #5b4fcf; letter-spacing: 0.5px; white-space: nowrap; padding-top: 2px; }
.rights-list .art-num { font-size: 20px; font-style: italic; font-weight: 400; color: #b87214; display: block; line-height: 1; margin-bottom: 2px; }
.rights-list .right-body h4 { font-size: 16px; font-weight: 600; color: #0f0e0d; margin: 0 0 6px; letter-spacing: -0.2px; }
.rights-list .right-body p { font-size: 15px; line-height: 1.65; color: #555; margin: 0; }

/* Highlight note (amber) — used only where the source document itself marks
   a passage out (retention statements, "MISSING INFORMATION" flags). */
.doc-note { background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.25); border-left: 3px solid #f5a623; padding: 16px 20px; border-radius: 10px; margin: 20px 0; }
.doc-note p { margin: 0; font-size: 14px; color: #555; line-height: 1.65; }
.doc-note strong { color: #0f0e0d; }
.doc-note .flag { color: #b87214; font-weight: 600; }

/* Bullet list */
.doc-section ul.clean-list { list-style: none; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 9px; }
.doc-section ul.clean-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.65; color: #3d3a37; }
.doc-section ul.clean-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: #5b4fcf; }

/* Data table (third-party summary table) */
.doc-table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid rgba(15,14,13,0.08); border-radius: 12px; }
table.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
table.doc-table th, table.doc-table td { text-align: left; padding: 12px 16px; vertical-align: top; }
table.doc-table th { background: rgba(15,14,13,0.03); font-weight: 600; color: #0f0e0d; font-size: 11px; letter-spacing: 0.4px; text-transform: uppercase; }
table.doc-table td { color: #3d3a37; line-height: 1.55; border-top: 1px solid rgba(15,14,13,0.07); }

/* Responsive */
@media (max-width: 760px) {
  .doc-hero { padding: 96px 24px 56px; }
  .doc-wrap { padding: 64px 24px 80px; }
  .doc-section h2 { font-size: 24px; }
  .rights-list li { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .rights-list .art-num { display: inline; font-size: 17px; margin-right: 6px; }
}
