/* Shared styling for /security, /privacy, /terms, /docs */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Instrument+Serif:ital,wght@0,400;1,400&family=Inter+Tight:wght@300;400;500;600;700&display=swap');

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

:root {
  --paper: #FAFAF7;
  --paper-2: #F3F2EC;
  --ink: #0A0A0A;
  --ink-2: #1B1B1B;
  --dim: #6B6B68;
  --dim-2: #9A9A95;
  --rule: #E5E3DD;
  --rule-2: #D8D6CE;
  --code-bg: #F3F2EC;
  --code-ink: #1B1B1B;
  --signal: oklch(0.68 0.14 152);
  --accent: oklch(0.55 0.14 250);
  --info-bg: #eef4ff;
  --info-text: #1f4fa3;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --px: 24px;
  --border: var(--rule);
  --border-strong: var(--rule-2);
  /* Legacy aliases for docs page */
  --bg: var(--paper);
  --surface: #fff;
  --surface-muted: var(--paper-2);
  --text: var(--ink);
  --text-muted: var(--dim);
  --text-subtle: var(--dim-2);
}

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ===== LAYOUT ===== */
.container { max-width: 720px; margin: 0 auto; padding: 0 var(--px); }

/* ===== NAV ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { display: none; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .slash { color: var(--dim-2); }

/* ===== MAIN ===== */
main { padding: 56px 0 80px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}
.back-link:hover { color: var(--ink); }

h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.effective {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lede {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.55;
  margin-bottom: 48px;
  max-width: 560px;
}

/* ===== POLICY SECTIONS ===== */
section.policy-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
section.policy-section:last-of-type {
  border-bottom: 0;
}

section.policy-section h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim-2);
  margin-bottom: 16px;
}

section.policy-section h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 20px 0 8px;
}

section.policy-section p,
section.policy-section ul {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 12px;
}
section.policy-section p:last-child,
section.policy-section ul:last-child {
  margin-bottom: 0;
}
section.policy-section ul {
  padding-left: 20px;
  list-style: disc;
}
section.policy-section ul li {
  margin-bottom: 6px;
}
section.policy-section strong { font-weight: 500; color: var(--ink); }
section.policy-section code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--paper-2);
  padding: 1px 5px;
  border-radius: 2px;
  color: var(--ink);
}
section.policy-section a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
section.policy-section a:hover { text-decoration-thickness: 2px; }

/* ===== CALLOUT ===== */
.callout {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px 28px;
  margin-top: 40px;
  background: var(--paper-2);
}
.callout p:first-child { font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.callout p:last-child { font-size: 14px; color: var(--dim); margin-bottom: 0; }
.callout a { color: var(--ink); text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}
footer p { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
footer a {
  color: var(--dim);
  text-decoration: none;
}
footer a:hover { color: var(--ink); }
