/* Shared shell for every page except the home: the same floating header, footer and hero feel as the home page. */
:root { --hdr-h: 64px; --pad: clamp(16px, 5vw, 48px); }
body { background: #FBFAFF; }
.header-spacer { display: none; }

/* ---------- Floating header ---------- */
.hdr { position: fixed; z-index: 50; top: 10px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 20px)); height: var(--hdr-h);
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 0 10px 0 16px;
  background: rgba(255,255,255,.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 999px; box-shadow: 0 8px 26px rgba(58,36,128,.12), inset 0 0 0 1px rgba(255,255,255,.7); }
.hdr-brand { display: flex; align-items: center; gap: 8px; color: var(--aurora-900); text-decoration: none; font: 600 1.15rem var(--display); }
.hdr-brand img { border-radius: 10px; }
.hdr-nav { display: flex; justify-content: center; gap: 2px; }
.hdr-nav a { padding: 8px 14px; border-radius: 999px; color: var(--aurora-900); text-decoration: none; font: 600 .98rem var(--display); white-space: nowrap; transition: background .2s; }
.hdr-nav a:hover { background: var(--aurora-50); }
.hdr-nav a[aria-current="page"] { background: var(--aurora-100); color: var(--aurora-700); }
.hdr .hdr-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: linear-gradient(150deg, #9B82FB, #6544D6);
  color: #fff; text-decoration: none; font: 600 .98rem var(--display); box-shadow: 0 8px 18px rgba(101,68,214,.32), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .2s; }
.hdr .hdr-cta:hover { transform: translateY(-2px); color: #fff; }
.hdr-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--aurora-50); color: var(--aurora-700); cursor: pointer; place-items: center; }
@media (max-width: 960px) {
  .hdr { grid-template-columns: 1fr auto auto; padding-left: 12px; }
  .hdr-brand span { display: none; }
  .hdr-burger { display: grid; }
  .hdr-nav { display: none; }
  .hdr.open .hdr-nav { display: flex; flex-direction: column; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 10px; border-radius: 26px;
    background: rgba(255,255,255,.96); box-shadow: 0 20px 44px rgba(58,36,128,.2); }
  .hdr.open .hdr-nav a { padding: 14px 16px; font-size: 1.1rem; }
}

/* ---------- Hero: sits under the header, with a sun (or moon) echoing the home page ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--hdr-h) + clamp(44px, 7vw, 84px)) var(--pad-x) clamp(36px, 5vw, 64px); }
.page-hero::after { content: ""; position: absolute; right: clamp(16px, 8vw, 140px); top: calc(var(--hdr-h) + 40px); width: clamp(70px, 10vw, 130px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #FFF6D8 0 38%, #FFD27A 39% 60%, rgba(255,194,75,0) 72%); opacity: .75; }
.page-hero.sky-night::after { background: radial-gradient(circle at 38% 38%, #FFFDF4 0 45%, #E9E4FF 46% 62%, rgba(233,228,255,0) 72%); opacity: .85; }
.page-hero .journey-inner { position: relative; z-index: 1; }
@media (max-width: 700px) { .page-hero::after { opacity: .45; } }

/* ---------- Footer ---------- */
.ftr { padding: 56px var(--pad) 32px; background: #14121C; color: #B9B2CE; font-size: .95rem; line-height: 1.55; }
.ftr-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.ftr-brand img { border-radius: 12px; margin-bottom: 12px; }
.ftr-brand p { max-width: 34ch; margin: 0 0 12px; }
.ftr-h { margin: 0 0 10px; font: 600 .85rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: #D3C7FF; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { color: #F2EFFA; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr-legal { max-width: 1120px; margin: 36px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.ftr .social-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ftr .social-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #F2EFFA; }
.ftr .social-icon:hover { background: rgba(255,255,255,.16); text-decoration: none; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }

.no-hero-sun .page-hero::after { display: none; }

/* The closing call-to-action band stays dark so its text holds contrast and it meets the footer cleanly. */
.sky-dawn { background: linear-gradient(178deg, #1D1A3A 0%, #3A2480 55%, #2A1F5C 100%); }
.sky-dawn .trust-strip span, .sky-dawn .trust-strip { color: var(--night-muted); }

/* ---------- Legal pages (Terms, Privacy) ---------- */
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; max-width: 1100px; }
.legal-toc { position: sticky; top: calc(var(--hdr-h, 72px) + 24px); max-height: calc(100vh - 140px); overflow: auto; padding: 18px 18px 18px 20px; border-radius: 22px; background: #fff; box-shadow: 0 6px 22px rgba(101,68,214,.1), inset 0 0 0 1px rgba(101,68,214,.1); font-size: .88rem; }
.legal-toc ol { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-toc a { color: var(--ink, #241553); text-decoration: none; font-weight: 700; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--aurora-600, #6544D6); text-decoration: underline; }
.legal-body { min-width: 0; overflow-wrap: anywhere; }
.legal-body h2 { margin-top: 2.2em; scroll-margin-top: 96px; }
.legal-body h3 { scroll-margin-top: 96px; }
.legal-body p, .legal-body li { line-height: 1.7; }
.legal-body .table-wrap { overflow-x: auto; margin: 1.2em 0; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(101,68,214,.14); -webkit-overflow-scrolling: touch; }
.legal-body table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9rem; }
.legal-body th, .legal-body td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(101,68,214,.12); }
.legal-body th { background: #F4F1FF; font-family: var(--display, Fredoka, sans-serif); font-weight: 600; }
@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; }
}
