/* Khalseen site: the privacy policy, the link fallback page (/open/) and 404.
   Colours from the app's src/theme/tokens.ts, the same as the landing page.
   Fonts come from /fonts/fonts.css (served from this site, no Google Fonts call),
   so a visit tells no one else anything: no tracking, analytics or cookies. */
:root {
  --paper: #F1F2F4;
  --card: #FFFFFF;
  --ink: #0E0F11;
  --text2: #3A3D44;
  --muted: #6B6F76;
  --line: #ECEDEF;
  --lime: #D7F45B;
  --sky: #AEDBFA;
  --onDark: #A3A7AE;
  --shadow: 0 1px 2px rgba(14,15,17,.05), 0 14px 34px -14px rgba(14,15,17,.16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 640px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }

/* Privacy */
.top { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 24px; }
.top img { width: 40px; height: 40px; border-radius: 10px; }
.top span { font-weight: 700; font-size: 20px; }
.doc { background: var(--card); border-radius: 24px; padding: 28px 20px; }
.doc h1 { font-weight: 700; font-size: 28px; line-height: 1.2; margin: 0 0 4px; }
.doc .date { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.doc h2 { font-weight: 600; font-size: 19px; margin: 28px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--text2); }
.doc ul { padding-left: 20px; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--ink); font-weight: 600; }
@media (min-width: 600px) { .doc { padding: 40px 40px; } }

/* Link fallback (/open/) and 404: the landing page's header, one white card, its footer */
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 36px; height: 36px; border-radius: 10px; }
.page main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 32px; }
.card { background: var(--card); border-radius: 28px; padding: 32px 24px; box-shadow: var(--shadow); }
.card h1 { font-size: clamp(30px, 7vw, 40px); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 12px; text-wrap: balance; }
.card p { margin: 0 0 8px; color: var(--text2); }
.card .path { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-weight: 500; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; background: var(--paper); color: var(--ink); transition: background .2s, transform .2s; }
.button:hover { background: #E7E9EC; }
.button:active { transform: scale(.97); }
.button.dark { background: var(--ink); color: #fff; }
.button.dark:hover { background: #2A2C31; }
@media (max-width: 420px) { .button { flex: 1 1 100%; } }
.foot { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; font-size: 14px; color: var(--text2); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
