/* Terms and Privacy pages: plain static HTML so anyone (and Google's review) can read them without JavaScript.
   Same look as the app's Pixel theme (src/styles/index.css, :root[data-theme='pixel']). Keep these values in step. */
:root {
  --paper: #12102b;
  --card: #1d1a45;
  --ink: #f5f5ff;
  --muted: #c4c0ee;
  --line: #4a4570;
  --accent: #3dff8b;
  --mark: #5cd3ff;
  --highlight: #2e2a63;
  --shadow: #000000;
  color-scheme: dark;
}
* { box-sizing: border-box; border-radius: 0; }
html { background: var(--paper); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper) linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 4px;
  color: var(--ink);
  font: 20px/1.45 "VT323", monospace;
  font-size-adjust: 0.72;
}

header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(18, 16, 43, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(245, 245, 255, 0.15);
  padding-top: env(safe-area-inset-top);
}
header nav { max-width: 1000px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 15px/1 "Press Start 2P", monospace; color: var(--ink); text-decoration: none; }
.brand img { image-rendering: pixelated; }
.switch { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid rgba(245, 245, 255, 0.4); color: var(--ink); text-decoration: none; font-weight: 700; }
.switch:hover { border-color: var(--ink); }

main { max-width: 1000px; margin: 0 auto; padding: 32px 20px 64px; }
.card { background: var(--card); border: 2.4px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow); padding: 24px 22px 28px; }
h1 { font-weight: 400; font-size: 64px; line-height: 0.95; margin: 0 0 6px; color: var(--accent); }
h2 { font-weight: 400; font-size: 34px; line-height: 1; margin: 30px 0 6px; padding-top: 20px; border-top: 2px dashed var(--line); }
p, li { margin: 6px 0; }
ul { padding-left: 0; list-style: none; }
li { position: relative; padding-left: 22px; }
/* Square pixel bullets. */
li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 8px; height: 8px; background: var(--accent); }
b { color: var(--ink); }
a { color: var(--mark); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.meta { color: var(--muted); margin: 0 0 18px; }
.lead { background: var(--highlight); border-left: 6px solid var(--accent); padding: 10px 14px; margin: 0 0 8px; }
footer { max-width: 1000px; margin: 0 auto; padding: 0 20px 40px; display: flex; gap: 24px; justify-content: center; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
/* Long links (web addresses) wrap instead of making the page scroll sideways. */
a { overflow-wrap: anywhere; }
.brand, .switch { white-space: nowrap; }
.switch .short { display: none; }

/* Phones: smaller headings, tighter padding, nothing wider than the screen. */
@media (max-width: 560px) {
  header nav { padding: 8px 12px; }
  .brand { font-size: 12px; gap: 8px; }
  .brand img { width: 24px; height: 24px; }
  .switch { padding: 0 10px; font-size: 18px; }
  main { padding: 16px 12px 40px; }
  .card { padding: 18px 14px 22px; box-shadow: 3px 3px 0 var(--shadow); }
  h1 { font-size: 44px; line-height: 1; margin-bottom: 10px; }
  h2 { font-size: 28px; margin-top: 22px; padding-top: 16px; }
  .lead { padding: 8px 10px; border-left-width: 4px; }
  footer { gap: 16px; padding: 0 12px 28px; flex-wrap: wrap; }
}
/* Narrow phones: a smaller name and a short button label ("Terms" / "Privacy") so both fit down to 320 px. */
@media (max-width: 440px) {
  header nav { gap: 8px; padding: 8px 10px; }
  .brand { font-size: 12px; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .switch { padding: 0 12px; }
  .switch .long { display: none; }
  .switch .short { display: inline; }
  footer { row-gap: 0; }
}
