/* ==========================================================================
   Sub pages – simple header, legal pages (legal notice, privacy policy), 404.
   Only loaded by the pages generated from pages/*.html (scripts/build.mjs).
   ========================================================================== */

/* ---------- Simple header: always solid, two plain links instead of a menu ---------- */
.site-header--simple .site-header__bar::before { opacity: 1; }
.site-header--simple .site-nav ul { flex-direction: row; gap: 12px; margin-right: -14px; }

/* ---------- Legal pages ---------- */
.legal { position: relative; isolation: isolate; padding: 180px var(--gutter) 120px; }
.legal::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 70% at 70% 0%, rgb(230 254 44 / .12), transparent 70%);
}
.legal__inner { max-width: 760px; margin-inline: auto; }
.legal__back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px;
  color: var(--muted); font-size: 1rem; transition: color .3s var(--ease-out), gap .3s var(--ease-out);
}
.legal__back:hover { color: var(--lime); gap: 12px; }
.legal h1, .legal h2, .not-found__code, .not-found__title {
  font-family: var(--font-display); font-weight: 800; font-stretch: 62%;
}
.legal h1, .legal h2, .not-found__title { text-transform: uppercase; }
.legal h1 { font-size: clamp(3rem, 1.6rem + 5vw, 5.5rem); line-height: 1; color: var(--heading); }
.legal__lead { margin-top: 20px; color: var(--muted); font-size: 1.125rem; }
.legal h2 {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--faq-border);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; color: var(--text);
}
.legal h3 { margin-top: 28px; font-size: 1.0625rem; font-weight: 600; color: var(--text); }
.legal p, .legal li, .legal dd { color: var(--muted-strong); font-size: 1rem; line-height: 1.65; }
.legal p, .legal ul, .legal dl { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.25em; }
.legal li + li { margin-top: 6px; }
.legal dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px 24px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
.legal a:not(.legal__back) { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.legal a:not(.legal__back):hover { text-decoration-thickness: 2px; }
/* Placeholder for data that is still missing – must be gone before going live */
.todo {
  padding: 1px 6px; border-radius: 6px;
  background: rgb(230 254 44 / .14); color: var(--lime);
  box-shadow: inset 0 0 0 1px rgb(230 254 44 / .35);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
}
.legal__note {
  margin-top: 40px; padding: 16px 20px; border-radius: 16px;
  background: var(--glass-bg); box-shadow: inset 0 0 0 1px var(--faq-border);
  color: var(--muted-strong); font-size: 1rem;
}

/* ---------- 404 ---------- */
.not-found {
  position: relative; isolation: isolate; overflow-x: clip;
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 160px var(--gutter) 120px; text-align: center;
}
.not-found .dots { top: 50%; translate: -50% -50%; }
.not-found .glow--cta { top: 50%; translate: -50% -50%; }
.not-found__code {
  line-height: .9;
  font-size: clamp(8rem, 4rem + 22vw, 18rem);
  background: linear-gradient(180deg, var(--neutral-50), rgb(230 254 44 / .9));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 80px rgb(230 254 44 / .25);
}
.not-found__title {
  margin-top: 8px; color: var(--heading);
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); line-height: 1.05; text-wrap: balance;
}
.not-found__text { max-width: 440px; margin: 16px auto 40px; color: var(--muted); font-size: 1.125rem; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .site-header--simple .site-nav a { padding: 8px 10px; font-size: .9375rem; white-space: nowrap; }

  .legal { padding-top: 130px; padding-bottom: 80px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dt { margin-top: 12px; }

  .not-found { padding-top: 120px; padding-bottom: 80px; }
  .not-found__text { font-size: 1.0625rem; }
  .not-found__actions { width: 100%; }
  .not-found__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .site-header--simple .site-header__logo svg { width: 112px; }
  .site-header--simple .site-header__bar { padding-inline: 20px 8px; }
  .site-header--simple .site-nav ul { gap: 0; margin-right: 0; }
  .site-header--simple .site-nav a { padding-inline: 8px; font-size: .875rem; }
}

@media (pointer: coarse) {
  .legal__back { padding-block: 11px; margin-block: -11px 21px; }
}
