/* page-shell.css — shared brand styles for sub-pages (about, terms, privacy) */

:root {
  --pluc-bg: #f7f3ea;
  --pluc-ink: #0f3b2a;
  --pluc-accent: #f5c13d;
  --pluc-paper: #ffffff;
  --pluc-sage: #cfe0d4;
  --pluc-soft: #e8efe5;
  --pluc-ink-mute: rgba(15,59,42,0.62);
  --pluc-ink-soft: rgba(15,59,42,0.10);
  --pluc-chip: rgba(15,59,42,0.05);
  --pluc-display: 'Sora', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --pluc-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--pluc-bg);
  color: var(--pluc-ink);
  font-family: var(--pluc-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--pluc-accent); color: var(--pluc-ink); }
a { color: inherit; }
a:hover { color: var(--pluc-ink); }

/* ─── Top nav (sticky pill) ─── */
.site-nav {
  position: fixed; top: 14px; left: 14px; right: 14px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(247,243,234,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--pluc-ink-soft); border-radius: 18px;
}
.site-nav__logo img { height: 28px; display: block; }
.site-nav__links { display: flex; gap: 4px; }
.site-nav__links a {
  text-decoration: none; color: var(--pluc-ink);
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; opacity: 0.78;
  transition: background 160ms, opacity 160ms;
}
.site-nav__links a:hover, .site-nav__links a.is-active {
  background: var(--pluc-chip); opacity: 1;
}
.site-nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--pluc-accent); color: var(--pluc-ink);
  border-radius: 999; text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  box-shadow: 0 4px 0 rgba(245,193,61,0.35);
  transition: transform 160ms, box-shadow 200ms;
}
.site-nav__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(245,193,61,0.7); }

/* ─── Page hero ─── */
.page-hero {
  padding: 160px 56px 60px;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999;
  background: var(--pluc-chip); border: 1px solid var(--pluc-ink-soft);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pluc-ink-mute);
}
.page-hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 6px; background: var(--pluc-accent); }
.page-hero h1 {
  font-family: var(--pluc-display);
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.95; letter-spacing: -0.035em;
  font-weight: 800; margin: 24px auto 16px;
  max-width: 1000px; text-wrap: balance;
}
.page-hero h1 em { font-style: normal; color: var(--pluc-accent); }
.page-hero p.lede {
  font-size: 19px; line-height: 1.55;
  color: var(--pluc-ink-mute);
  max-width: 620px; margin: 0 auto;
  font-weight: 500; text-wrap: pretty;
}
.page-hero .meta {
  margin-top: 24px; font-size: 13px; color: var(--pluc-ink-mute);
}

/* decorative blobs for hero */
.page-hero .blob {
  position: absolute; pointer-events: none; z-index: -1;
  border-radius: 50%; filter: blur(40px); opacity: 0.5;
}
.page-hero .blob--sage { background: var(--pluc-sage); width: 360px; height: 360px; top: 60px; left: -120px; }
.page-hero .blob--yellow { background: var(--pluc-accent); width: 220px; height: 220px; top: 140px; right: -80px; opacity: 0.25; }

/* sparkles */
.spark {
  position: absolute; color: var(--pluc-accent);
  animation: plucSpark 3s ease-in-out infinite;
}
@keyframes plucSpark {
  0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.5; }
  50%      { transform: scale(1.1) rotate(180deg); opacity: 1; }
}

/* ─── Content layout ─── */
.page-body {
  max-width: 1200px; margin: 0 auto;
  padding: 60px 56px 80px;
}
.page-body--legal {
  max-width: 760px;
}

/* Section heading */
.section-h {
  font-family: var(--pluc-display); font-weight: 800;
  font-size: clamp(32px, 4vw, 56px); line-height: 1.0;
  letter-spacing: -0.03em; margin: 0 0 20px;
  text-wrap: pretty;
}
.section-h em { font-style: normal; color: var(--pluc-accent); }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--pluc-ink-mute);
  margin-bottom: 14px;
}

/* Generic content prose for legal pages */
.prose h2 {
  font-family: var(--pluc-display); font-weight: 800;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.02em;
  margin: 56px 0 12px; counter-increment: section;
}
.prose h2::before {
  content: counter(section, decimal-leading-zero) ' ';
  color: var(--pluc-accent);
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
}
.prose h3 {
  font-family: var(--pluc-display); font-weight: 700;
  font-size: 18px; margin: 28px 0 8px; letter-spacing: -0.01em;
}
.prose p, .prose li {
  font-size: 16.5px; line-height: 1.65; color: var(--pluc-ink);
  font-weight: 450;
}
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--pluc-ink); text-decoration: underline; text-decoration-color: var(--pluc-accent); text-underline-offset: 3px; }
.prose strong { color: var(--pluc-ink); font-weight: 700; }
.prose { counter-reset: section; }
.prose .callout {
  background: var(--pluc-paper); border: 1px solid var(--pluc-ink-soft);
  border-left: 4px solid var(--pluc-accent);
  padding: 18px 22px; border-radius: 12px; margin: 18px 0 22px;
  font-size: 15.5px;
}
.toc {
  background: var(--pluc-paper); border: 1px solid var(--pluc-ink-soft);
  border-radius: 16px; padding: 22px 26px; margin-bottom: 40px;
  font-size: 14px;
}
.toc h4 {
  font-family: var(--pluc-display); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--pluc-ink-mute); margin: 0 0 12px;
}
.toc ol { counter-reset: tocn; list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.toc ol li { counter-increment: tocn; margin: 0 0 6px; font-weight: 500; break-inside: avoid; }
.toc ol li::before {
  content: counter(tocn, decimal-leading-zero) ' ';
  color: var(--pluc-accent); font-variant-numeric: tabular-nums; margin-right: 6px;
}
.toc a { text-decoration: none; opacity: 0.78; }
.toc a:hover { opacity: 1; }

/* ─── Footer ─── */
.site-footer {
  padding: 60px 56px 60px;
  border-top: 1px solid var(--pluc-ink-soft);
  background: var(--pluc-bg);
}
.site-footer__row {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; align-items: start;
}
.site-footer__brand img { height: 30px; display: block; margin-bottom: 14px; }
.site-footer__brand p {
  color: var(--pluc-ink-mute); font-size: 14px; line-height: 1.5;
  max-width: 320px; margin: 0;
}
.site-footer__col h5 {
  font-family: var(--pluc-display); font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 14px; color: var(--pluc-ink-mute);
}
.site-footer__col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.site-footer__col a {
  text-decoration: none; color: var(--pluc-ink);
  font-size: 14.5px; font-weight: 500; opacity: 0.85;
  transition: opacity 160ms, transform 160ms;
  display: inline-block;
}
.site-footer__col a:hover { opacity: 1; transform: translateX(2px); color: var(--pluc-accent); }
.site-footer__bottom {
  max-width: 1200px; margin: 60px auto 0;
  padding-top: 28px; border-top: 1px solid var(--pluc-ink-soft);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  color: var(--pluc-ink-mute); font-size: 13px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .page-hero { padding: 130px 24px 50px; }
  .page-body { padding: 50px 24px 70px; }
  .site-footer { padding: 48px 24px; }
  .site-footer__row { grid-template-columns: 1fr 1fr; }
  .site-nav__links { display: none; }
  .toc ol { columns: 1; }
}
