/* ==================================================================
   Snifo — shared styles for the legal pages (privacy / terms /
   delete-account). Same type scale and palette as landing_final.html,
   but tuned for long-form reading rather than for the marketing page.
================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #FF2D87;
  --blue: #2B6CFF;
  --lime: #84CC16;
  --dark: #0A0A1A;
  --white: #FFFFFF;
  --grey: #F5F5F7;
  --ink: rgba(10, 10, 26, 0.78);
  --ink-soft: rgba(10, 10, 26, 0.55);
  --rule: rgba(10, 10, 26, 0.08);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.display { font-family: 'Unbounded', sans-serif; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.legal-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.legal-logo {
  font-family: 'Unbounded', sans-serif; font-weight: 800;
  font-size: 1.15rem; color: var(--white);
  text-decoration: none; letter-spacing: -0.02em;
}
.legal-back {
  font-size: 0.85rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.6); text-decoration: none;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--white); }

/* ---------- Page head ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 6px 16px; border-radius: 100px;
  background: var(--grey); color: var(--ink-soft);
  margin-bottom: 20px;
}
.legal h1 {
  font-family: 'Unbounded', sans-serif; font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  color: var(--dark); line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.legal-lede {
  font-size: 1.05rem; line-height: 1.65;
  color: var(--ink-soft);
}
.legal-eff {
  margin-top: 14px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Table of contents ---------- */
.legal-toc {
  margin: 40px 0 48px;
  padding: 28px 32px;
  background: var(--grey);
  border-radius: 24px;
}
.legal-toc h2 {
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-soft);
  margin-bottom: 16px;
}
.legal-toc ol {
  list-style: none;
  columns: 2; column-gap: 32px;
}
.legal-toc li { margin-bottom: 9px; break-inside: avoid; }
.legal-toc a {
  font-size: 0.9rem; color: var(--ink);
  text-decoration: none; transition: color 0.2s;
}
.legal-toc a:hover { color: var(--pink); }

/* ---------- Body ---------- */
.legal section { scroll-margin-top: 84px; margin-bottom: 40px; }
.legal h2 {
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: 1.15rem; color: var(--dark);
  line-height: 1.35; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.legal p { font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { font-size: 1rem; line-height: 1.7; margin-bottom: 9px; }
.legal strong { color: var(--dark); font-weight: 700; }
.legal a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--dark); }
.legal code {
  font-family: 'Outfit', sans-serif; font-weight: 600;
  color: var(--dark); background: var(--grey);
  padding: 1px 7px; border-radius: 6px;
}
.legal hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }

/* Site navigation note — NOT part of the legal document text. Visually set
   apart so it can never be read as a clause of the Policy or the Terms. */
.legal-aside {
  margin-top: 18px;
  padding: 12px 18px;
  border-left: 3px solid var(--rule);
  font-size: 0.88rem !important;
  color: var(--ink-soft);
}

/* Pull-quote used for consent wording and other verbatim blocks. */
.legal-quote {
  margin: 0 0 14px;
  padding: 22px 26px;
  background: var(--grey);
  border-left: 4px solid var(--lime);
  border-radius: 0 16px 16px 0;
}
.legal-quote p { font-size: 0.98rem; margin-bottom: 0; }

/* Callout for the things a visitor is most likely looking for. */
.legal-callout {
  margin: 0 0 24px;
  padding: 26px 30px;
  background: #F7FEE7;
  border-radius: 20px;
}
.legal-callout h2 { margin-bottom: 10px; }
.legal-callout p:last-child { margin-bottom: 0; }

.legal-steps { counter-reset: step; list-style: none; margin-left: 0; }
.legal-steps li {
  counter-increment: step;
  position: relative; padding-left: 44px; margin-bottom: 16px;
}
.legal-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--dark); color: var(--white);
  font-family: 'Unbounded', sans-serif;
  font-weight: 700; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  padding: 48px 24px; text-align: center;
}
.footer-links {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 8px 20px; margin-bottom: 20px;
}
.footer-links a {
  font-size: 0.85rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--pink); }
.footer p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.3); line-height: 1.6; }
.footer-meta { margin-top: 6px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.22); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .legal { padding: 44px 20px 72px; }
  .legal-toc { padding: 24px; margin: 32px 0 40px; }
  .legal-toc ol { columns: 1; }
  .legal-quote, .legal-callout { padding: 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
