/* ═══════════════════════════════════════════════════════════════
   ARILUNA — Shared styles for legal & support pages
   Same brand DNA as landing, calmer for long-form reading.
═══════════════════════════════════════════════════════════════ */
:root {
  --ink: #0a0d16;
  --ink-2: #10141f;
  --ink-3: #171c2b;
  --moon: #f2e8cc;
  --moon-warm: #eddcaa;
  --moon-shade: #b8a672;
  --gold: #c9a765;
  --halo: #6d7ea8;
  --halo-deep: #3f4a6b;
  --paper: #e4dcc4;
  --paper-mute: #8a8570;
  --hairline: rgba(242, 232, 204, 0.10);
  --hairline-2: rgba(242, 232, 204, 0.18);

  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --f-body: 'Fraunces', Georgia, serif;

  --t-eyebrow: 0.75rem;
  --t-body: clamp(1rem, 0.94rem + 0.3vw, 1.12rem);
  --t-h3: clamp(1.24rem, 1.08rem + 0.8vw, 1.62rem);
  --t-h2: clamp(1.62rem, 1.36rem + 1.3vw, 2.44rem);
  --t-h1: clamp(2.4rem, 1.8rem + 3vw, 4rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--moon); text-decoration: underline; text-decoration-color: var(--hairline-2); text-underline-offset: 3px; transition: text-decoration-color 0.3s; }
a:hover { text-decoration-color: var(--gold); }
img, svg { display: block; }
::selection { background: var(--gold); color: var(--ink); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--halo-deep); border-radius: 4px; }

/* ATMOSPHERE (quieter than landing) */
.atmosphere {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 100% 60% at 70% 10%, rgba(109, 126, 168, 0.06), transparent 60%),
    radial-gradient(ellipse 70% 40% at 20% 90%, rgba(201, 167, 101, 0.03), transparent 60%),
    var(--ink);
}
.stars-quiet { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.4; }
.stars-quiet svg { width: 100%; height: 100%; }

/* LAYOUT */
.wrap { max-width: 46rem; margin: 0 auto; padding-inline: 1.5rem; }
.wrap-wide { max-width: 62rem; margin: 0 auto; padding-inline: 1.5rem; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1.2rem 1.5rem;
  background: rgba(10, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--moon);
  text-decoration: none;
}
.brand svg { width: 22px; height: 22px; }
.site-nav {
  display: flex;
  gap: 1.6rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-nav a { color: var(--halo); text-decoration: none; transition: color 0.25s; }
.site-nav a:hover { color: var(--moon); }
.site-nav a.active { color: var(--moon); }
@media (max-width: 640px) { .site-nav { display: none; } }

/* PAGE INTRO */
.page-intro {
  padding: 5rem 1.5rem 3rem;
  border-bottom: 1px solid var(--hairline);
  max-width: 62rem;
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--halo);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 1.4rem;
  height: 1px;
  background: currentColor;
}
.page-title {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 96;
  font-weight: 400;
  font-size: var(--t-h1);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--moon);
  margin-bottom: 1.5rem;
  max-width: 20ch;
}
.page-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--moon-warm);
}
.page-meta {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--halo);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.page-lede {
  font-size: 1.15rem;
  color: var(--paper);
  max-width: 44rem;
  margin-top: 1.5rem;
  font-variation-settings: "opsz" 24;
}

/* ARTICLE CONTENT */
article {
  padding: 3rem 0 6rem;
}
article h2 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 72;
  font-weight: 400;
  font-size: var(--t-h2);
  color: var(--moon);
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
  scroll-margin-top: 6rem;
  line-height: 1.15;
}
article h2:first-child { margin-top: 0; }
article h2 em { font-style: italic; font-weight: 300; color: var(--moon-warm); }
article h2 .num {
  display: inline-block;
  margin-right: 0.7rem;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-variation-settings: "opsz" 96;
}
article h3 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 48;
  font-weight: 500;
  font-size: var(--t-h3);
  color: var(--moon);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.005em;
}
article p {
  color: var(--paper);
  margin-bottom: 1.2rem;
  font-variation-settings: "opsz" 20;
}
article p:last-child { margin-bottom: 0; }
article strong { color: var(--moon); font-weight: 500; }
article em { font-style: italic; color: var(--moon-warm); }
article ul, article ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--paper);
}
article li {
  margin-bottom: 0.5rem;
  font-variation-settings: "opsz" 20;
}
article li::marker { color: var(--gold); }
article code {
  font-family: var(--f-mono);
  font-size: 0.9em;
  color: var(--moon-warm);
  background: rgba(201, 167, 101, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}
article blockquote {
  border-left: 2px solid var(--gold);
  padding: 0.6rem 0 0.6rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--moon-warm);
  background: rgba(201, 167, 101, 0.04);
  font-variation-settings: "opsz" 24;
}
article blockquote p { color: var(--moon-warm); }

/* TABLE OF CONTENTS */
.toc {
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}
.toc-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--halo);
  margin-bottom: 1rem;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  margin-bottom: 0.5rem;
  padding-left: 2rem;
  position: relative;
  font-variation-settings: "opsz" 20;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--gold);
  top: 0.25rem;
}
.toc a {
  color: var(--paper);
  text-decoration: none;
  transition: color 0.25s;
}
.toc a:hover { color: var(--moon); }

/* CALLOUT — important information block */
.callout {
  border: 1px solid var(--gold);
  background: rgba(201, 167, 101, 0.06);
  padding: 1.5rem 1.75rem;
  border-radius: 4px;
  margin: 2rem 0;
  position: relative;
}
.callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}
.callout-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-color: #e8956d; background: rgba(232, 149, 109, 0.06); }
.callout.warn::before { background: #e8956d; }
.callout.warn .callout-label { color: #e8956d; }

/* DEFINITION LIST (Impressum, contact) */
.definitions {
  margin: 2rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(140px, 12rem) 1fr;
  gap: 0.85rem 2rem;
}
.definitions dt {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--halo);
  padding-top: 0.25rem;
}
.definitions dd {
  color: var(--paper);
  font-variation-settings: "opsz" 20;
}
@media (max-width: 640px) {
  .definitions {
    grid-template-columns: 1fr;
    gap: 0.25rem 0;
  }
  .definitions dt { margin-top: 1rem; }
  .definitions dt:first-child { margin-top: 0; }
}

/* CROSSLINKS at page bottom */
.cross-links {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.cross-links a {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--hairline-2);
  border-radius: 4px;
  text-decoration: none;
  color: var(--paper);
  transition: border-color 0.3s, background 0.3s;
}
.cross-links a:hover {
  border-color: var(--moon-shade);
  background: rgba(242, 232, 204, 0.02);
}
.cross-links .cross-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--halo);
  display: block;
  margin-bottom: 0.4rem;
}
.cross-links .cross-title {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 48;
  font-size: 1.2rem;
  color: var(--moon);
  font-weight: 400;
}
.cross-links .prev .cross-label::before { content: '← '; }
.cross-links .next { text-align: right; }
.cross-links .next .cross-label::after { content: ' →'; }
@media (max-width: 640px) {
  .cross-links { grid-template-columns: 1fr; }
  .cross-links .next { text-align: left; }
}

/* FAQ specific */
.faq-list details {
  border-bottom: 1px solid var(--hairline);
  padding-block: 0.5rem;
}
.faq-list details:first-child { border-top: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer;
  padding: 1.4rem 0;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 48;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--moon);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: color 0.3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold); }
.faq-list summary::after {
  content: '';
  width: 12px; height: 12px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  opacity: 0.6;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list .answer {
  padding: 0 0 1.6rem;
  color: var(--paper);
  max-width: 44rem;
  font-variation-settings: "opsz" 20;
}
.faq-list .answer p + p { margin-top: 0.8rem; }
.faq-category {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.faq-category:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* CRISIS PAGE special */
.crisis-hero {
  background: linear-gradient(180deg, rgba(232, 149, 109, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid rgba(232, 149, 109, 0.3);
  padding: 4rem 1.5rem 3rem;
}
.crisis-hero h1 { color: var(--moon); }
.crisis-numbers {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}
.crisis-number {
  border: 1px solid var(--hairline-2);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  background: var(--ink-2);
}
.crisis-number.primary {
  border-color: var(--gold);
  background: rgba(201, 167, 101, 0.05);
}
.crisis-name {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 48;
  font-size: 1.3rem;
  color: var(--moon);
  margin-bottom: 0.4rem;
}
.crisis-phone {
  font-family: var(--f-mono);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.crisis-desc {
  color: var(--paper);
  font-size: 0.95rem;
  font-variation-settings: "opsz" 20;
}
.crisis-desc a { color: var(--moon); }

/* FOOTER */
footer {
  border-top: 1px solid var(--hairline);
  padding: 2.5rem 0;
  margin-top: 5rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--halo);
}
footer .wrap-wide { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
footer nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
footer a { color: var(--halo); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--moon); }
footer .made {
  color: var(--gold);
  font-style: italic;
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Focus states */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
