/* Second-pass treatment for the five public information pages. Load after styles.css
   and site-cinematic-pages.css; the shared header is intentionally untouched. */
html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"], [data-page="contact"], [data-page="privacy"], [data-page="terms"]) {
  --info-line: rgba(127, 172, 249, .25);
  --info-glow: rgba(58, 118, 246, .23);
  --info-surface: #0d1b35;
  background: radial-gradient(ellipse 760px 420px at 83% 115px, rgba(35, 93, 196, .2), transparent 75%), #071124;
}

html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"], [data-page="contact"], [data-page="privacy"], [data-page="terms"]) .page-main {
  width: min(1390px, calc(100% - 48px));
  padding-top: clamp(42px, 5vw, 76px);
}

html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"]) .marketing-hero,
html[data-theme="dark"] body.page-content:is([data-page="contact"], [data-page="privacy"], [data-page="terms"]) .public-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(330px, 32vw, 470px);
  display: grid;
  align-items: center;
  border: 1px solid rgba(137, 181, 255, .34);
  border-radius: 30px;
  padding: clamp(34px, 5.5vw, 78px);
  color: #f7faff;
  background: radial-gradient(circle at 82% 32%, rgba(52, 128, 255, .28), transparent 34%), radial-gradient(circle at 5% 100%, rgba(87, 73, 186, .2), transparent 46%), linear-gradient(125deg, #0a1932, #0e2447 65%, #0a1a35);
  box-shadow: 0 28px 75px rgba(0, 6, 27, .36), inset 0 1px rgba(208, 228, 255, .12), 0 0 48px rgba(44, 102, 226, .11);
}

html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"]) .marketing-hero::before,
html[data-theme="dark"] body.page-content:is([data-page="contact"], [data-page="privacy"], [data-page="terms"]) .public-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 43%, rgba(129, 179, 255, .08) 43.2%, transparent 43.5%), radial-gradient(circle at 86% 50%, transparent 0 16%, rgba(115, 169, 255, .12) 16.2% 16.4%, transparent 16.7% 25%, rgba(115, 169, 255, .08) 25.2% 25.4%, transparent 25.7%);
}

html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"], [data-page="contact"], [data-page="privacy"], [data-page="terms"]) :is(.marketing-hero h2, .public-intro h2) {
  max-width: 820px;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.06em;
  text-wrap: balance;
}

html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"], [data-page="contact"], [data-page="privacy"], [data-page="terms"]) :is(.marketing-hero p, .public-intro p) { color: #c2d5f2; }
html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"], [data-page="contact"], [data-page="privacy"], [data-page="terms"]) :is(.marketing-hero .marketing-eyebrow, .public-intro .marketing-eyebrow) { color: #91bcff; }
html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"]) .marketing-hero { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: clamp(28px, 5vw, 80px); }
html[data-theme="dark"] body.page-content[data-page="faq"] .faq-question-mark { color: rgba(138, 187, 255, .25); opacity: 1; text-shadow: 0 0 60px rgba(83, 145, 255, .35); }
html[data-theme="dark"] body.page-content[data-page="how"] .how-mini-timeline { border-color: rgba(133, 177, 255, .32); background: rgba(7, 20, 43, .65); box-shadow: 0 18px 44px rgba(0, 8, 32, .25), inset 0 1px rgba(223, 237, 255, .08); }
html[data-theme="dark"] body.page-content[data-page="how"] .how-mini-timeline span { background: rgba(36, 67, 119, .65); border: 1px solid rgba(142, 183, 255, .16); }

html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"], [data-page="contact"], [data-page="privacy"], [data-page="terms"]) :is(.how-editorial-step, .faq-layout aside, .faq-item, .contact-aside, .contact-form, .policy-index, .public-help) {
  border: 1px solid var(--info-line);
  background: radial-gradient(circle at 100% 0, rgba(50, 104, 210, .12), transparent 46%), linear-gradient(150deg, #11213e, var(--info-surface));
  box-shadow: 0 18px 42px rgba(0, 7, 26, .25), inset 0 1px rgba(204, 226, 255, .06);
}

html[data-theme="dark"] body.page-content[data-page="how"] .how-editorial { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; border-top: 0; }
html[data-theme="dark"] body.page-content[data-page="how"] .how-editorial-step { grid-template-columns: 86px minmax(0, 1fr); gap: 14px; padding: clamp(24px, 3vw, 38px); border-radius: 22px; }
html[data-theme="dark"] body.page-content[data-page="how"] .how-editorial-number { font-size: clamp(2.6rem, 4vw, 4rem); line-height: 1; color: #81b2ff; text-shadow: 0 0 32px var(--info-glow); }
html[data-theme="dark"] body.page-content[data-page="how"] .how-editorial-step:nth-child(even) .how-editorial-number { color: #adabff; }
html[data-theme="dark"] body.page-content[data-page="faq"] .faq-layout { align-items: start; margin-top: 28px; gap: clamp(22px, 4vw, 50px); }
html[data-theme="dark"] body.page-content[data-page="faq"] .faq-item { margin-bottom: 12px; }
html[data-theme="dark"] body.page-content[data-page="faq"] .faq-item[open] { border-color: rgba(129, 174, 255, .7); box-shadow: 0 18px 42px rgba(32, 84, 202, .18); }
html[data-theme="dark"] body.page-content[data-page="faq"] .faq-item summary { cursor: pointer; }
html[data-theme="dark"] body.page-content[data-page="faq"] .faq-item summary b { color: #c7dcff; background: #243d6a; }
html[data-theme="dark"] body.page-content:is([data-page="privacy"], [data-page="terms"]) .policy-layout { margin-top: 32px; }
html[data-theme="dark"] body.page-content:is([data-page="privacy"], [data-page="terms"]) .policy-index { border-radius: 21px; }
html[data-theme="dark"] body.page-content:is([data-page="privacy"], [data-page="terms"]) .policy-index a { border-radius: 8px; padding-inline: 10px; }
html[data-theme="dark"] body.page-content:is([data-page="privacy"], [data-page="terms"]) .policy-index a:hover,
html[data-theme="dark"] body.page-content:is([data-page="privacy"], [data-page="terms"]) .policy-index a:focus-visible { color: #fff; background: rgba(79, 128, 221, .22); }
html[data-theme="dark"] body.page-content:is([data-page="privacy"], [data-page="terms"]) .policy-body section { padding-inline: clamp(22px, 3vw, 40px); border: 1px solid var(--info-line); border-radius: 18px; margin-bottom: 14px; background: rgba(14, 29, 56, .68); }
html[data-theme="dark"] body.page-content:is([data-page="privacy"], [data-page="terms"]) .policy-body section:first-child { padding-top: 27px; }
html[data-theme="dark"] body.page-content[data-page="contact"] .contact-layout { margin-top: 28px; }
html[data-theme="dark"] body.page-content[data-page="contact"] .contact-form :is(input:not([type="checkbox"]), textarea) { background: rgba(5, 17, 37, .7); border-color: rgba(123, 166, 241, .35); }
html[data-theme="dark"] body.page-content[data-page="contact"] .contact-form :is(input:not([type="checkbox"]), textarea):focus-visible { outline-color: #83b5ff; border-color: #a2c8ff; }

@media (max-width: 900px) {
  html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"]) .marketing-hero { grid-template-columns: 1fr; }
  html[data-theme="dark"] body.page-content[data-page="how"] .how-editorial { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"], [data-page="contact"], [data-page="privacy"], [data-page="terms"]) .page-main { width: calc(100% - 24px); padding-top: 28px; }
  html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"]) .marketing-hero,
  html[data-theme="dark"] body.page-content:is([data-page="contact"], [data-page="privacy"], [data-page="terms"]) .public-intro { min-height: 0; padding: 34px 24px; border-radius: 23px; }
  html[data-theme="dark"] body.page-content:is([data-page="how"], [data-page="faq"], [data-page="contact"], [data-page="privacy"], [data-page="terms"]) :is(.marketing-hero h2, .public-intro h2) { font-size: clamp(2.2rem, 10vw, 3.3rem); }
  html[data-theme="dark"] body.page-content[data-page="how"] .how-editorial-step { grid-template-columns: 54px minmax(0, 1fr); padding: 22px; }
  html[data-theme="dark"] body.page-content[data-page="faq"] .faq-question-mark { display: none; }
  html[data-theme="dark"] body.page-content[data-page="contact"] .contact-pair { grid-template-columns: 1fr; }
  html[data-theme="dark"] body.page-content:is([data-page="privacy"], [data-page="terms"]) .public-help { flex-wrap: wrap; }
}
