/* ============================================================
   Moonpath — legal pages (privacy / terms / children-privacy)
   Same navy/cream palette as the splash, but reading-optimized.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.legal {
  font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 500;
  color: #1f2937;
  background: #fffdf7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
body.legal a { color: #1c2a5e; text-decoration: underline; text-underline-offset: 2px; }
body.legal a:hover { color: #0f1c4a; }
body.legal img { max-width: 100%; display: block; }
body.legal code {
  background: rgba(15, 28, 74, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ── Top nav ── */
.legal__nav {
  position: sticky;
  top: 0;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6e1d6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  z-index: 10;
}
.legal__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  color: #0f1c4a;
  text-decoration: none;
}
.legal__brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.legal__back {
  font-size: 14px;
  font-weight: 700;
  color: #4b5563;
  text-decoration: none;
}
.legal__back:hover { color: #0f1c4a; }

/* ── Page content ── */
.legal__page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.legal__page h1 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f1c4a;
}
.legal__date {
  margin: 0 0 28px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.legal__page h2 {
  margin: 36px 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f1c4a;
}
.legal__page h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: #1f2937;
}
.legal__page p {
  margin: 0 0 16px;
  font-size: 16px;
  color: #374151;
}
.legal__page ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #374151;
}
.legal__page ul li {
  margin-bottom: 8px;
  font-size: 16px;
}
.legal__page strong { font-weight: 800; color: #1f2937; }
.legal__placeholder {
  margin-top: 32px;
  padding: 14px 18px;
  background: #fff7d4;
  border: 1px solid #f3e2a3;
  border-radius: 12px;
  font-size: 13px;
  color: #6b5414;
}
.legal__placeholder em { font-style: italic; }

/* ── Footer ── */
.legal__foot {
  border-top: 1px solid #e6e1d6;
  background: #faf6ec;
  padding: 28px 24px;
  text-align: center;
}
.legal__foot nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 10px;
}
.legal__foot nav a {
  color: #4b5563;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.legal__foot nav a:hover { color: #0f1c4a; text-decoration: underline; text-underline-offset: 3px; }
.legal__foot p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 0.02em;
}
