/* ── TOKENS (aligned with AppColors in lib/core/theme/app_colors.dart) ── */
:root {
  --primary: #00C2FF;
  --primary-variant: #0077B6;
  --secondary: #42D392;
  --secondary-variant: #2AA96F;
  --navy: #1C1C1E;
  --navy-light: #2C2C2E;
  --bg: #F5F9FB;
  --card: #ffffff;
  --text: #1C1C1E;
  --text-muted: #4A4A4C;
  --border: #E5E5EA;
  --font: 'Zen Kaku Gothic New', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.nav--fixed {
  position: fixed; left: 0; right: 0;
}
.nav-inner {
  max-width: 720px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-inner--wide { max-width: 960px; }
.nav-brand {
  font-size: 20px; font-weight: 700; color: var(--navy);
  text-decoration: none; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.nav-brand img {
  width: 28px; height: 28px;
}
.nav-links { display: flex; gap: 20px; }
.nav-links--wide { gap: 24px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current] {
  color: var(--text); font-weight: 700;
}

/* ── FOOTER ── */
.footer {
  max-width: 720px; margin: 0 auto;
  padding: 24px 24px 32px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--text-muted);
}
.footer--wide {
  max-width: 960px;
  padding: 32px 24px;
  border-top: none;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── LEGAL CONTENT ── */
.legal {
  max-width: 720px; margin: 0 auto;
  padding: 104px 24px 80px;
}
.legal-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--navy);
}
.legal-header h1 {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal-header .last-updated {
  font-size: 14px;
  color: var(--text-muted);
}
.legal-intro {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}
.legal-section {
  margin-bottom: 36px;
}
.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}
.legal-section p,
.legal-section ol,
.legal-section ul {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
}
.legal-section ol,
.legal-section ul {
  padding-left: 1.5em;
  margin-top: 8px;
}
.legal-section li {
  margin-bottom: 4px;
}
.legal-section p + p {
  margin-top: 12px;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nav-links--wide { gap: 16px; }
  .footer { flex-direction: column; text-align: center; }
}
