/*
 * Siby's public pages: /privacy, /terms and /delete-account (spec B80), /about (B120) and /install (B121), in English and Spanish.
 * Plain HTML that reads without JavaScript or a sign-in. nginx serves /privacy from privacy.html
 * (ops/server/web/nginx.conf).
 *
 * The colors are the app's own tokens, copied from src/theme/theme.ts (DESIGN.md section 3), and kept here only:
 * bg.canvas, bg.surface, text.primary, text.secondary, text.link and border.subtle, in light and dark.
 * Change them in theme.ts first, then here.
 */
:root {
  color-scheme: light dark;
  --canvas: #F4F6F9;
  --surface: #FFFFFF;
  --text: #181E29;
  --text-secondary: #4D5460;
  --link: #2B4BCA;
  --border: #DFE2E7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #101318;
    --surface: #191D23;
    --text: #EAEDF2;
    --text-secondary: #B3B9C4;
    --link: #95B3FF;
    --border: #2E3239;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

@media (min-width: 600px) {
  .page { padding: 32px 24px 64px; }
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.wordmark { display: block; height: 32px; width: auto; }

.language { font-size: 14px; }

main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 16px;
}

@media (min-width: 600px) {
  main { padding: 32px; }
}

h1 { font-size: 28px; line-height: 1.25; font-weight: 600; margin: 0 0 4px; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 32px 0 8px; }
p, ul, ol { margin: 0 0 12px; }
li { margin-bottom: 4px; }
ul, ol { padding-inline-start: 24px; }

.updated, footer { color: var(--text-secondary); font-size: 14px; }
.updated { margin-bottom: 24px; }

a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }

footer { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
