/* ============================================================
   21-Day Challenge — Legal pages (privacy, terms, delete-account)
============================================================ */

:root {
  --terra: #19c5a8;
  --terra-l: #4dd6bf;
  --terra-d: #0fa08a;
  --sage: #6bae75;
  --sage-d: #4a8a54;
  --cream: #f2fdfb;
  --warm: #e6f8f5;
  --peach: #c8f0ea;
  --ink: #0d2e28;
  --ink2: #2a5049;
  --muted: #6a9a90;
  --border: #c8eae5;
  --white: #ffffff;
  --rose: #e88aa0;
  --gold: #f5c842;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--terra-d); text-decoration: none; font-weight: 600; }
a:hover { color: var(--terra); text-decoration: underline; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 253, 251, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200, 234, 229, 0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; color: var(--ink); }
.nav-logo img { height: 32px; width: auto; }
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--terra-d);
  transition: all .2s;
}
.nav-back:hover { background: var(--terra); color: white; border-color: var(--terra); text-decoration: none; }

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(25, 197, 168, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--terra-d);
  margin-bottom: 20px;
  position: relative;
}
.page-tag i { font-size: 14px; }
.page-title {
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  position: relative;
  color: var(--ink);
}
.page-title em { color: var(--terra); font-style: normal; }
.page-sub {
  font-size: 16px;
  color: var(--ink2);
  max-width: 640px;
  position: relative;
}
.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  position: relative;
}

/* ===== CONTENT ===== */
.content {
  padding: 32px 0 80px;
}
.content-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px;
  box-shadow: 0 12px 32px rgba(13, 46, 40, 0.04);
}
.content h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 36px 0 14px;
  scroll-margin-top: 96px;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
}
.content p, .content li {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 12px;
}
.content ul, .content ol { padding-left: 22px; margin-bottom: 12px; }
.content li { margin-bottom: 6px; }
.content strong { color: var(--ink); font-weight: 600; }

.callout {
  background: var(--warm);
  border-left: 4px solid var(--terra);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout i { font-size: 22px; color: var(--terra-d); flex-shrink: 0; margin-top: 1px; }
.callout div { font-size: 14.5px; color: var(--ink2); line-height: 1.6; }
.callout.warn { background: #fff5e6; border-left-color: var(--gold); }
.callout.warn i { color: #a07000; }
.callout.danger { background: #fdecef; border-left-color: var(--rose); }
.callout.danger i { color: #a03a5d; }

.toc {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-bottom: 32px;
}
.toc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.toc ol {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}
.toc li { margin-bottom: 8px; font-size: 14px; }
.toc a { color: var(--ink2); font-weight: 500; }
.toc a:hover { color: var(--terra-d); }
@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .content-card { padding: 28px 22px; }
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, #0a3a32 0%, #062925 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  text-decoration: none;
}
.footer-links a:hover { color: var(--terra-l); text-decoration: none; }
@media (max-width: 560px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

::selection { background: var(--terra); color: white; }
