/* ====================================================================
   SPROSSN · Legal pages (Impressum / Datenschutz)
   Reuses tokens from colors_and_type.css
 ==================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--char);
  color: var(--bone);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  mix-blend-mode: screen; opacity: 0.35;
  background-image: url("assets/noise-overlay.svg");
  background-size: 460px 460px;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--voltage); color: var(--char); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 56px; position: relative; }

/* nav (matches main site) */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,20,15,0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rule-dark);
}
nav.top .inner {
  max-width: 1320px; margin: 0 auto; padding: 18px 56px;
  display: flex; align-items: center; gap: 24px;
}
nav.top .logo img { height: 24px; display: block; }
nav.top .status {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(237,231,211,0.55);
  display: inline-flex; align-items: center; gap: 9px;
  padding-left: 22px; margin-left: 2px; border-left: 1px solid var(--rule-dark);
}
nav.top .right { margin-left: auto; display: flex; gap: 12px; align-items: center; }
nav.top .backlink {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(237,231,211,0.7); display: inline-flex; align-items: center; gap: 10px; padding: 10px 6px;
}
nav.top .backlink:hover { color: var(--voltage); }
nav.top .backlink .arr { transition: transform 160ms cubic-bezier(0.4,0,0.2,1); }
nav.top .backlink:hover .arr { transform: translateX(-4px); }

/* header */
header.legal-head { padding: 96px 0 56px; border-bottom: 1px solid var(--rule-dark); }
.legal-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--voltage); display: inline-flex; align-items: center; gap: 13px; margin: 0 0 26px;
}
.legal-eyebrow .dash { color: rgba(229,255,0,0.4); }
header.legal-head h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(46px, 7vw, 92px); line-height: 0.95; letter-spacing: -0.05em;
  margin: 0; max-width: 16ch;
}
header.legal-head .updated {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: rgba(237,231,211,0.5); margin: 28px 0 0;
}

/* notice banner — stealth context */
.notice {
  margin: 40px 0 0; padding: 22px 26px;
  background: var(--char-soft); border: 1px solid var(--rule-dark); border-left: 3px solid var(--voltage);
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: rgba(237,231,211,0.74);
  max-width: 78ch;
}
.notice strong { color: var(--bone); font-weight: 600; }

/* body: two-column with sticky toc */
.legal-body { padding: 64px 0 24px; display: grid; grid-template-columns: 240px 1fr; gap: 80px; align-items: start; }
.toc { position: sticky; top: 104px; }
.toc .toc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(237,231,211,0.42); margin: 0 0 18px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.toc a { font-family: var(--font-body); font-size: 14px; line-height: 1.4; color: rgba(237,231,211,0.68); display: block; padding-left: 14px; border-left: 1px solid var(--rule-dark); transition: color 150ms, border-color 150ms; }
.toc a:hover { color: var(--voltage); border-color: var(--voltage); }

.prose { max-width: 70ch; }
.prose section { padding: 0 0 44px; }
.prose section + section { border-top: 1px solid var(--rule-dark); padding-top: 44px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 36px);
  line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 22px; color: var(--bone);
}
.prose h3 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--voltage); margin: 26px 0 12px;
}
.prose p { font-family: var(--font-body); font-size: 16px; line-height: 1.68; color: rgba(237,231,211,0.78); margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose a.inline { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(229,255,0,0.5); }
.prose a.inline:hover { color: var(--voltage); }
.prose ul { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: rgba(237,231,211,0.78); padding-left: 22px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--voltage); }

/* definition rows for Impressum */
.facts { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; }
.fact { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--rule-dark); }
.fact:first-child { border-top: 1px solid var(--rule-dark); }
.fact .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(237,231,211,0.5); padding-top: 2px; }
.fact .v { font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--bone); }
.fact .v a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(229,255,0,0.5); }
.fact .v a:hover { color: var(--voltage); }

/* footer (matches main site, compact) */
footer { padding: 64px 0 40px; border-top: 1px solid var(--rule-dark); margin-top: 40px; }
footer .row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer .brand img { height: 24px; display: block; }
footer .links { display: flex; gap: 26px; flex-wrap: wrap; }
footer .links a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(237,231,211,0.7); }
footer .links a:hover { color: var(--voltage); }
footer .bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule-dark); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .bottom span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(237,231,211,0.42); }
footer .bottom .acc { color: var(--voltage); }

@media (max-width: 900px) {
  .wrap { padding: 0 28px; }
  nav.top .inner { padding: 16px 28px; }
  nav.top .status { display: none; }
  header.legal-head { padding: 64px 0 44px; }
  .legal-body { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; }
  .toc ul { flex-flow: row wrap; gap: 8px 18px; }
  .toc a { border-left: 0; padding-left: 0; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  footer .row { flex-direction: column; align-items: flex-start; }
}
