/* VirPull Companion — Privacy Policy */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --brand: #4f46e5;
  --brand-2: #0ea5e9;
  --brand-soft: #eef2ff;
  --link: #4338ca;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111827;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #1f2937;
    --brand-soft: #1e1b4b;
    --link: #a5b4fc;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.brand-name {
  font-weight: 800;
}

.brand-product {
  font-weight: 500;
  color: var(--text-muted);
}

/* Hero */

.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(600px 200px at 10% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent),
    radial-gradient(500px 200px at 90% 0%, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--link);
  }
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.updated {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 64px;
  align-items: start;
}

/* Table of contents */

.toc {
  position: sticky;
  top: 88px;
  font-size: 0.9375rem;
}

.toc-title {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}

.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
}

.toc a:hover {
  color: var(--text);
  border-left-color: var(--brand);
}

/* Policy content */

.policy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 48px;
  max-width: 760px;
}

.policy section {
  scroll-margin-top: 88px;
}

.policy section + section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.policy h2 {
  margin: 0 0 12px;
  font-size: 1.3125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.policy p {
  margin: 0 0 14px;
}

.policy p:last-child {
  margin-bottom: 0;
}

.policy ul {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

.policy li + li {
  margin-top: 6px;
}

.policy li::marker {
  color: var(--brand);
}

.summary {
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: 12px;
}

.summary .summary-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.summary ul {
  margin: 0;
}

.contact-card {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  word-break: break-word;
}

.contact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 880px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
  }

  .toc {
    position: static;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
  }

  .policy {
    max-width: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .policy {
    padding: 24px 20px;
  }

  .policy section + section {
    margin-top: 28px;
    padding-top: 28px;
  }

  .summary {
    padding: 16px 18px;
    margin-bottom: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .toc,
  .skip-link {
    display: none;
  }

  .layout {
    display: block;
  }

  .policy {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
