/* Shared styles for Privacy, Terms and Delete Account pages.
   Tokens mirror the ones in index.html. */
:root {
  --sky: #5CC6F2;
  --sky-light: #C4ECFF;
  --gold: #FFD23F;
  --orange: #FF9F1C;
  --red: #E53935;
  --purple: #3D1466;
  --purple-2: #57208F;
  --purple-3: #2A0C4A;
  --cream: #FFF8E7;
  --ink: #2B1446;
  --ink-soft: #5B4A72;
  --white: #FFFFFF;
  --radius: 28px;
  --shadow: 0 10px 0 rgba(43, 20, 70, .12), 0 24px 48px rgba(43, 20, 70, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; line-height: 1.15; margin: 0; }
a { color: var(--purple-2); }
img { display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border-radius: 999px; padding: 14px 24px;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 0; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }
.btn-gold { background: var(--gold); color: var(--purple); box-shadow: 0 5px 0 #D99A0B; }
.btn-gold:active { box-shadow: 0 2px 0 #D99A0B; }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 5px 0 #A82623; }
.btn-red:active { box-shadow: 0 2px 0 #A82623; }

/* ---------- Header ---------- */
.legal-hero {
  background: linear-gradient(180deg, var(--sky) 0%, #8DD8F8 60%, var(--sky-light) 100%);
  padding: 18px 0 72px;
}
.legal-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 3px 0 rgba(43, 20, 70, .18); }
.logo span { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--purple); letter-spacing: .3px; }
.legal-nav .btn { padding: 10px 18px; font-size: .95rem; }

.eyebrow {
  display: inline-block; background: var(--white); color: var(--purple-2);
  font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 0 rgba(43, 20, 70, .12);
}
.legal-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; color: var(--white);
  margin: 16px 0 10px;
  text-shadow: 0 4px 0 var(--purple-2), 0 10px 24px rgba(61, 20, 102, .25);
}
.legal-hero .meta { font-weight: 800; color: var(--purple-2); }

/* ---------- Body ---------- */
.legal-main { margin-top: -40px; padding-bottom: 96px; }
.card {
  max-width: 820px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 48px 56px;
}
@media (max-width: 600px) { .card { padding: 28px 20px; border-radius: 22px; } }

.card > p:first-child { font-size: 1.12rem; }
.card h2 {
  font-size: 1.6rem; font-weight: 700; color: var(--purple);
  margin: 40px 0 12px; scroll-margin-top: 24px;
}
.card h3 { font-size: 1.15rem; font-weight: 600; color: var(--purple-2); margin: 22px 0 6px; }
.card p, .card li { color: var(--ink-soft); }
.card p { margin: 0 0 12px; }
.card ul { margin: 0 0 12px; padding-left: 22px; }
.card li { margin-bottom: 6px; }
.card strong { color: var(--ink); }

.toc {
  background: var(--cream); border-radius: 20px; padding: 20px 24px; margin: 24px 0 8px;
}
.toc strong { display: block; font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--purple); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.toc a { text-decoration: none; font-weight: 700; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.note {
  background: #FFF1BF; border-radius: 18px; padding: 16px 20px; margin: 16px 0;
  color: #7A5300; font-weight: 700;
}
.note.warn { background: #FFE3DE; color: #8E3B33; }

/* ---------- Delete form ---------- */
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--purple); color: var(--gold); font: 700 .95rem "Fredoka", sans-serif;
}

.delete-form { margin: 24px 0 8px; display: grid; gap: 14px; }
.delete-form label { font-weight: 800; color: var(--purple); }
.delete-form input[type="email"] {
  width: 100%; font: 700 1.05rem "Nunito", sans-serif; color: var(--ink);
  padding: 14px 18px; border-radius: 16px; border: 3px solid #EADFF5; background: var(--white);
  outline: none; transition: border-color .15s ease;
}
.delete-form input[type="email"]:focus { border-color: var(--purple-2); }
.delete-form input[aria-invalid="true"] { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700 !important; color: var(--ink-soft) !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--purple-2); flex: none; }
.form-error { color: var(--red); font-weight: 800; min-height: 1.4em; margin: 0 !important; }
.form-success {
  display: none; background: #E4F6D8; color: #2F6B1F; border-radius: 18px; padding: 16px 20px; font-weight: 700;
}
.form-success.show { display: block; }
.delete-form .btn { justify-self: start; }
@media (max-width: 480px) { .delete-form .btn { justify-self: stretch; } }

/* ---------- Footer ---------- */
footer { background: var(--purple-3); color: #CDBAE8; padding: 32px 0; font-weight: 700; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
footer .logo span { color: var(--gold); font-size: 1.25rem; }
footer .logo img { width: 36px; height: 36px; border-radius: 10px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { text-decoration: none; color: inherit; }
footer nav a:hover, footer nav a[aria-current="page"] { color: var(--gold); }

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