/* Shared styles for Privacy + Terms — same tokens as the app. */
:root {
  --bg: #e8edf4; --panel: #ffffff; --line: #e6e9ee; --line-2: #d7dde5;
  --text: #111827; --muted: #4b5563; --body: #1f2937; --faint: #6b7280;
  --accent: #111827; --accent-ink: #fff;
  --shadow-sm: 0 1px 3px rgba(17,24,39,0.06);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b1020; --panel: #12192b; --line: #243044; --line-2: #334155;
  --text: #f1f5f9; --muted: #94a3b8; --body: #cbd5e1; --faint: #94a3b8;
  --accent: #f1f5f9; --accent-ink: #0b1020;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.28);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.6;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--text); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 48px 22px 88px; }
.legal-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px;
}
.back:hover { color: var(--text); }
.legal-switch { display: flex; gap: 4px; font-size: 13px; font-weight: 700; }
.legal-switch a {
  color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px;
}
.legal-switch a:hover { color: var(--text); background: var(--panel); }
.legal-switch a[aria-current="page"] { color: var(--text); background: var(--panel); }
h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin: 22px 0 4px; line-height: 1.15; }
.updated { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
h2 { font-size: 18px; font-weight: 700; margin: 30px 0 8px; letter-spacing: -0.2px; }
p, li { font-size: 15px; color: var(--body); }
ul { padding-left: 20px; }
li { margin: 5px 0; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--text); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px 24px 24px; box-shadow: var(--shadow-sm);
}
.tldr {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--text);
  border-radius: 10px; padding: 14px 18px; margin: 0 0 26px; font-size: 15px; color: var(--body);
}
code {
  font-size: 13px; background: var(--bg); padding: 1px 5px; border-radius: 4px;
}
.legal-foot { margin-top: 36px; color: var(--muted); font-size: 13px; }
.legal-foot a { font-weight: 600; }

/* ---------- 404 (inspired by pnm.now/404, with Trotty) ---------- */
.wrap-404 { max-width: 860px; }
.err {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px; align-items: center; margin: 36px 0 8px;
}
.err-photo {
  display: block; width: 100%; height: auto; max-height: 460px;
  object-fit: cover; object-position: center top;
  border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: var(--panel);
}
.err-kicker {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint);
}
.err h1 { font-size: 36px; margin: 0 0 14px; letter-spacing: -0.7px; }
.err-lead { margin: 0 0 14px; font-size: 16px; color: var(--body); line-height: 1.55; }
.err-aside {
  margin: 0 0 28px; font-size: 14px; color: var(--muted); font-style: italic; line-height: 1.55;
}
.err-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-go {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 700;
}
.btn-go:hover { opacity: 0.9; }
.err-more {
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--line-2);
}
.err-more:hover { color: var(--text); border-bottom-color: var(--text); }

@media (max-width: 720px) {
  .err { grid-template-columns: 1fr; gap: 28px; margin-top: 22px; }
  .err h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .wrap { padding: 28px 18px 72px; }
  h1 { font-size: 28px; }
  .card { padding: 4px 18px 20px; }
  .err h1 { font-size: 30px; }
  .err-photo { max-height: 380px; }
}
