/* ============================================================
   ONFRIA · page.css — styles for legal pages and 404
   Loaded only by: legal/*.html, 404.html
   (keeps index.html CSP-clean — no inline <style> blocks)
   ============================================================ */

/* ---- shared legal page layout ---- */
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  color: var(--text);
}
.legal-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: .5rem;
}
.legal-wrap .updated {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 3rem;
}
.legal-wrap h2 {
  font-size: 1.2rem;
  margin: 2.2rem 0 .6rem;
  color: var(--text);
}
.legal-wrap p,
.legal-wrap li {
  color: var(--muted);
  line-height: 1.7;
  font-size: .96rem;
  margin-bottom: .8rem;
}
.legal-wrap ul {
  padding-left: 1.4rem;
  margin-bottom: .8rem;
}
.legal-wrap a { color: var(--blue-hi); }

/* imprint has no .updated line — remove margin-bottom override */
.legal-wrap.imprint h1 { margin-bottom: 2rem; }

/* ---- header override: static pages have no intro, header always visible ---- */
.head.solid {
  opacity: 1;
  pointer-events: auto;
}

/* ---- platform page ---- */
.platform-page {
  background: var(--bg);
}
/* NOTE: reveal-on-scroll is now driven by js/page.js on the content pages
   (the old `.platform-page .reveal{opacity:1}` disable was removed). The
   html:not(.js) and prefers-reduced-motion fallbacks in style.css keep
   everything visible without JS / with reduced motion. */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(7.5rem, 16vh, 10rem) 0 clamp(3.5rem, 8vw, 6rem);
  color: var(--text);
  background:
    radial-gradient(90% 70% at 50% 10%, rgba(47,111,221,.22), transparent 68%),
    linear-gradient(180deg, #060b16 0%, #04070d 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  max-width: 13ch;
}
.page-hero p {
  max-width: 62ch;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
}

/* ============================================================
   SUB-PAGE IDENTITY — LIGHT EDITORIAL
   The sub-pages lead with a light, editorial surface (distinct from the
   homepage's dark cinematic hero) while reusing the same brand system —
   the light zone content, and the dark CTA card + dark footer as bookends.
   Scoped to body.editorial so index.html / style.css stay untouched.
   ============================================================ */
body.editorial {
  background: #f4f6fa;
}
/* signature: a thin brand accent bar pinned to the very top */
body.editorial::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 30;
  background: var(--grad);
}

/* light header (mirrors .head.lightbar, applied statically — no JS toggle) */
.editorial .head,
.editorial .head.scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(16, 32, 58, .1);
}
.editorial .head .menu { color: rgba(30, 44, 66, .72); }
.editorial .head .menu:hover { color: #131c2b; }
.editorial .head .logo-tx { color: #131c2b; }
.editorial .head .logo-tx small { color: rgba(30, 44, 66, .6); }

/* light editorial hero (dark text tokens, blue eyebrow, hairline divider) */
.editorial .page-hero {
  --text: #131c2b;
  --muted: rgba(30, 44, 66, .64);
  --line2: rgba(16, 32, 58, .22);
  color: var(--text);
  background:
    radial-gradient(80% 70% at 50% -8%, rgba(47, 111, 221, .10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
  border-bottom: 1px solid rgba(16, 32, 58, .08);
}
.editorial .page-hero .eyebrow { color: var(--deep); }
.editorial .page-hero p { color: var(--muted); font-size: clamp(1.02rem, 1.35vw, 1.2rem); }

/* ---- content pages ---- */
.content-page .page-hero h1 {
  max-width: 15ch;
}
.page-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.page-stack {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.page-stack p + p {
  margin-top: 1rem;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: .65rem;
}
.check-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--deep);
}
.page-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .28rem .55rem;
  margin-bottom: .9rem;
  border-radius: 999px;
  background: rgba(47, 111, 221, .1);
  color: var(--deep);
  font: 700 .68rem/1 var(--f-text);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.use-case-grid .tile {
  grid-column: span 2;
}
.use-case-grid .tile:nth-child(4),
.use-case-grid .tile:nth-child(5) {
  grid-column: span 3;
}
.use-case-grid .check-list {
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .page-split {
    grid-template-columns: 1fr;
  }
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .use-case-grid .tile,
  .use-case-grid .tile:nth-child(4),
  .use-case-grid .tile:nth-child(5) {
    grid-column: auto;
  }
}
@media (max-width: 560px) {
  .use-case-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- footer legal-links row (used in legal/*.html footers) ---- */
.legal-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

/* ---- 404 page ---- */
.err-wrap {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.err-code {
  font-family: var(--f-display);
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -.02em;
}
.err-wrap h1 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  margin: .8rem 0 1rem;
}
.err-wrap p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.err-wrap .btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-text);
  font-weight: 700;
  font-size: .9rem;
  padding: .78rem 1.4rem;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  transition: background .2s;
}
.err-wrap .btn:hover { background: var(--blue-hi); }

/* 404 page needs full-height centering */
.err-body {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(70% 55% at 50% 30%, rgba(47,111,221,.18), transparent 70%), var(--bg);
}
