/*
 * Privacy policy and terms (privacy.html, terms.html). Same look as "How Airlock works"
 * (how-it-works.html): its palette, Inter, the shield logo, the same page width and title block.
 * The text keeps a readable line length, starting at the same left edge as the logo and title.
 */
:root {
  --bg-base: #0b0f19;
  --bg-surface: #121826;
  --bg-subtle: #1a2132;
  --border-hairline: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-body: #cbd5e1;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --blue: #60a5fa;
  --sky-glow: rgba(56, 189, 248, 0.10);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-base);
  background-image: radial-gradient(ellipse 900px 420px at 50% -120px, var(--sky-glow), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  padding: 28px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 1120px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; margin-bottom: 28px; border: 0; }
.brand svg { width: 28px; height: 28px; }
.brand span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; font-size: 14px; }
.page-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-hairline); }
.page-title { font-size: clamp(24px, 3.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.page-desc { font-size: 15px; color: var(--text-secondary); margin-top: 4px; }

/* The document itself: a card like the sections on How it works, text at a readable width */
.legal-body { background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: 14px; padding: 28px 30px 32px; }
.legal-body > * { max-width: 760px; }
.legal-body > table { max-width: none; }
.lead { font-size: 16.5px; color: var(--text-body); line-height: 1.65; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); margin: 32px 0 8px; }
p, li { font-size: 15px; line-height: 1.7; color: var(--text-body); }
p + p { margin-top: 10px; }
ul { padding-left: 20px; margin-top: 6px; }
li { margin: 5px 0; }
strong { color: var(--text-primary); font-weight: 600; }
code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.88em; color: var(--text-primary); background: var(--bg-subtle); border: 1px solid var(--border-hairline); border-radius: 5px; padding: 1px 5px; word-break: break-word; }
a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(96, 165, 250, 0.35); }
a:hover, a:focus-visible { border-bottom-color: var(--blue); }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border-hairline); line-height: 1.55; }
th { color: var(--text-primary); font-weight: 600; background: var(--bg-subtle); }
td { color: var(--text-body); }
.footer { margin-top: 28px; font-size: 12px; color: var(--text-muted); }
.footer a { color: var(--text-secondary); border-bottom-color: transparent; }
.footer a:hover { color: var(--text-primary); }
@media (max-width: 640px) {
  .legal-body { padding: 20px 18px 24px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border: 1px solid var(--border-hairline); border-radius: 10px; margin: 10px 0; padding: 4px 0; }
  td { border: 0; padding: 4px 12px; }
  td:first-child { color: var(--text-primary); font-weight: 600; padding-top: 10px; }
  td:last-child { padding-bottom: 10px; }
}
