/* ============================================================
   LuNa — legal / document pages (Impressum, Datenschutz)
   Editorial long-form reading layout.
   ============================================================ */

.doc-nav-spacer { height: 0; }

.doc-hero {
  border-bottom: 1px solid var(--border);
  padding: clamp(40px, 8vh, 84px) 0 clamp(28px, 4vh, 48px);
}
.doc-hero .eyebrow { margin-bottom: 14px; }
.doc-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  font-weight: 300;
}
.doc-hero .meta {
  margin-top: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--faint);
}

.doc-body { padding: clamp(36px, 6vh, 64px) 0 clamp(60px, 12vh, 120px); }
.doc-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

/* sticky table of contents */
.doc-toc { position: sticky; top: 86px; }
.doc-toc .toc-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
}
.doc-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.doc-toc a {
  display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px;
  font-size: 14px; color: var(--ink-soft); transition: background .14s, color .14s;
  counter-increment: toc;
}
.doc-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--faint); font-family: var(--font-mono); font-size: 12px; }
.doc-toc a:hover { background: var(--surface-2); color: var(--ink); }
.doc-toc a.active { background: var(--accent-tint); color: var(--accent-deep); }

/* prose */
.prose { max-width: 64ch; }
.prose section { padding-bottom: clamp(28px, 4vh, 44px); margin-bottom: clamp(28px, 4vh, 44px); border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.prose section:last-child { border-bottom: none; margin-bottom: 0; }
.prose h2 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 16px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--font-sans); font-weight: 600; font-size: 16px; margin: 22px 0 8px; color: var(--ink); }
.prose p { color: var(--ink-soft); margin-bottom: 14px; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { opacity: 0.7; }
.prose ul { margin: 4px 0 16px; padding-left: 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* address card */
.addr-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
  font-style: normal; line-height: 1.7; color: var(--ink); margin: 4px 0 6px;
}
.addr-card .role { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }

/* placeholder you must fill in */
.fill {
  background: var(--accent-tint);
  border-bottom: 1.5px dashed var(--accent);
  color: var(--accent-deep);
  padding: 1px 5px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.9em;
}
.fill-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-tint); border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 30px;
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.5;
}
.fill-note svg { flex: none; margin-top: 1px; stroke: var(--accent-deep); }

/* doc footer */
.doc-foot { border-top: 1px solid var(--border); padding: 30px 0 44px; }
.doc-foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.doc-foot-links { display: flex; gap: 22px; }
.doc-foot-links a { font-size: 14px; color: var(--muted); transition: color .14s; }
.doc-foot-links a:hover { color: var(--ink); }
.doc-foot small { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }

/* entrance */
@keyframes doc-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.doc-hero > .container > * { animation: doc-fade-up .6s cubic-bezier(.2,.7,.3,1) both; }
.doc-hero .eyebrow { animation-delay: .03s; }
.doc-hero h1 { animation-delay: .09s; }
.doc-hero .meta { animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  .doc-hero > .container > * { animation: none; }
}

@media (max-width: 800px) {
  .doc-grid { grid-template-columns: 1fr; gap: 8px; }
  .doc-toc { position: static; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
  .doc-toc ol { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .doc-toc a { background: var(--surface-2); }
}
