/* Shared styles for privacy.html and terms.html — matches index.html light theme. */

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

:root {
  --surface-0: #eef2f2;
  --surface-1: #ffffff;
  --surface-2: #f4f8f8;
  --surface-3: #e6eeee;

  --teal-900: #0a1f1e;
  --teal-700: #123430;
  --teal-500: #276b63;
  --teal-400: #3a9e92;
  --teal-300: #5cc4b8;

  --amber:   #f5a623;
  --amber-2: #e09712;
  --amber-dim: rgba(245,166,35,0.12);

  --text-1: #0c2b28;
  --text-2: #1a423e;
  --text-3: #2e6b65;
  --text-4: #5a9e99;

  --border:    rgba(12,43,40,0.08);
  --border-med: rgba(12,43,40,0.14);

  --radius:    10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(12,43,40,0.06);
  --shadow-md: 0 8px 24px rgba(12,43,40,0.08);
}

html { scroll-behavior: smooth; }
body {
  background: var(--surface-0);
  color: var(--text-1);
  font-family: 'Outfit', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--teal-500); text-decoration: none; transition: color .15s; }
a:hover { color: var(--amber-2); }

/* ── Iframe mode (used when the main app embeds this page in a modal) ───── */
body.iframe-mode .legal-topbar,
body.iframe-mode .legal-footer { display: none; }
body.iframe-mode .legal-page  { padding: 28px 36px; max-width: 100%; }
body.iframe-mode              { background: var(--surface-1); }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.legal-topbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-logo { display: flex; align-items: center; }
.topbar-logo img {
  height: 36px;
  filter: brightness(0) saturate(100%) invert(10%) sepia(23%) saturate(1120%) hue-rotate(130deg) brightness(92%) contrast(98%);
}
.topbar-links { display: flex; gap: 24px; }
.topbar-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
}
.topbar-links a.active { color: var(--text-1); font-weight: 600; }

/* ── Page body ───────────────────────────────────────────────────────────── */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}
.legal-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-2);
  background: var(--amber-dim);
  border: 1px solid rgba(245,166,35,0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.legal-page h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.effective-date {
  font-size: 13px;
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-body {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
.legal-body > p:first-child {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 28px;
}
.legal-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.legal-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  margin-top: 24px;
  margin-bottom: 10px;
}
.legal-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 14px;
}
.legal-body ul, .legal-body ol {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 12px 0 20px 24px;
}
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text-1); font-weight: 600; }
.legal-body code {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-2);
}

.legal-divider {
  margin: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.legal-contact {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid var(--border);
}
.legal-contact h3 { margin-top: 0; font-size: 16px; }
.legal-contact p { margin-bottom: 0; font-size: 14px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.legal-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.legal-footer a { font-weight: 500; }

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .legal-topbar { padding: 0 20px; height: 56px; }
  .topbar-links { gap: 16px; }
  .topbar-links a { font-size: 12.5px; }
  .topbar-logo img { height: 28px; }
  .legal-page { padding: 40px 20px 64px; }
  .legal-body { padding: 28px 22px; }
  body.iframe-mode .legal-page { padding: 20px; }
}
