/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --brand-green: #25D366;   /* used only for logo "WA" text accent */

  --ink-900:   #0f172a;
  --ink-700:   #334155;
  --ink-500:   #64748b;
  --ink-300:   #cbd5e1;
  --ink-100:   #f1f5f9;
  --white:     #ffffff;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);

  --max-w: 1120px;
  --header-h: 64px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { color: var(--ink-900); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p  { margin-top: .75rem; }
p:first-child { margin-top: 0; }
strong { color: var(--ink-900); font-weight: 600; }
code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--ink-100);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 72px; }
.section--alt { background: var(--ink-100); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: .9375rem;
  font-weight: 600;
  transition: opacity .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn-black {
  background: #000;
  color: var(--white);
  border-radius: 999px;
  padding: 12px 28px;
  box-shadow: 0 2px 0 rgba(0,0,0,.9), 0 4px 16px rgba(0,0,0,.22);
  letter-spacing: .01em;
}
.btn-black:hover { background: #111; box-shadow: 0 2px 0 rgba(0,0,0,.9), 0 6px 20px rgba(0,0,0,.30); }
.btn-outline {
  border: 1.5px solid var(--ink-700);
  color: var(--ink-900);
  border-radius: 999px;
  padding: 12px 28px;
}
.btn-outline:hover { border-color: var(--ink-900); background: var(--ink-100); }

/* ── Header / Nav ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-900);
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-name .wa   { color: var(--brand-green); }
.logo-name .connect { color: var(--ink-900); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-500);
  transition: color .15s, background .15s;
}
.nav-links a:not(.btn):hover { color: var(--ink-900); background: var(--ink-100); }
.nav-links a.active:not(.btn) {
  color: var(--ink-900);
  font-weight: 600;
  background: transparent;
  position: relative;
}
.nav-links a.active:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
}

.nav-cta { margin-left: 12px; }
.nav-links .btn-black {
  padding: 8px 20px;
  font-size: .875rem;
  color: var(--white) !important;
}
.nav-links .btn-black:hover { background: #111 !important; color: var(--white) !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-700);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--ink-100);
  padding-block: 40px;
  font-size: .875rem;
  color: var(--ink-500);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.footer-links a {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color .15s;
}
.footer-links a:hover { color: var(--ink-900); }

/* ── Policy-specific layout ─────────────────────────────────────────────── */
.policy-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  padding-block: 64px;
}
.policy-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: .875rem;
}
.policy-toc h4 {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.policy-toc ol { counter-reset: toc; }
.policy-toc li { counter-increment: toc; }
.policy-toc a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-500);
  transition: color .15s, background .15s;
  line-height: 1.4;
}
.policy-toc a::before {
  content: counter(toc);
  font-size: .75rem;
  font-weight: 700;
  color: var(--ink-300);
  min-width: 16px;
  flex-shrink: 0;
}
.policy-toc a:hover,
.policy-toc a.toc-active { color: var(--ink-900); background: var(--ink-100); }
.policy-toc a.toc-active::before { color: var(--ink-900); }

.policy-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 40px;
}
.policy-hero .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: 12px;
}
.policy-hero h1 { margin-bottom: 12px; }
.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--ink-500);
}
.policy-meta span { display: flex; align-items: center; gap: 6px; }

.policy-content section {
  padding-top: 40px;
  margin-top: 0;
  border-top: 1px solid var(--ink-100);
}
.policy-content section:first-child { border-top: none; padding-top: 0; }
.policy-content h2 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.policy-content ul {
  margin-top: .75rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.policy-content ul li {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ink-100);
  border-radius: var(--radius-md);
  font-size: .925rem;
}
.policy-content ul li::before {
  content: '→';
  color: var(--ink-900);
  font-weight: 700;
  flex-shrink: 0;
}
.policy-content .highlight-box {
  margin-top: 1rem;
  padding: 16px 20px;
  background: var(--ink-100);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--ink-700);
}
.policy-content a {
  color: var(--ink-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 4px; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--ink-100);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 10px 14px; font-size: 1rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .policy-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 40px;
  }
  .policy-toc {
    position: static;
    background: var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 20px;
  }

  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
