/* ═══════════════════════════════════════════════════════════
   KANZ Privacy Policy — Stylesheet
   Design tokens shared with kanz-landing (colors, type, chrome).
   Doc-site layout — intentionally NOT the landing page.
   ═══════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #050505;
  color: #ECEFF4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: #2563EB; color: white; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1F1F1F; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ── Utility ── */
.font-headline { font-family: 'Syne', sans-serif; }

/* ── Nav ── */
.nav-solid {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #1F1F1F;
}

/* ── Sticky table of contents ── */
.toc-sticky {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7.5rem);
  overflow-y: auto;
}
.toc-sticky::-webkit-scrollbar { width: 4px; }
.toc-sticky::-webkit-scrollbar-thumb { background: #1F1F1F; }

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #B0B8C4;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.toc-link:hover {
  color: #ECEFF4;
  background: rgba(255, 255, 255, 0.03);
}
.toc-link.active {
  color: #ECEFF4;
  background: rgba(37, 99, 235, 0.10);
  border-left-color: #2563EB;
}
.toc-link .toc-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
  min-width: 1.1rem;
}
.toc-link.active .toc-num { color: #2563EB; }

/* ── Policy content ── */
.policy-section {
  scroll-margin-top: 5.5rem;
}

/* ── Focus states ── */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
a:focus-visible, button:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  #nav .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  [id] {
    scroll-margin-top: 5rem;
  }
  .toc-sticky {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

/* ── Touch-friendly tap targets ── */
@media (hover: none) and (pointer: coarse) {
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
  .toc-link { min-height: 40px; }
}
