/*
 * Shared styling for the three public pages.
 *
 * One stylesheet, no CDN, no fonts to fetch. These pages are read by two
 * audiences — a Google Play reviewer and a user who has just uninstalled the
 * app — and both of them are better served by a page that renders instantly
 * on a bad connection than by anything that needs a network round trip.
 */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f6f9;
  --text: #16161d;
  --muted: #55555f;
  --border: #e3e3ea;
  --accent: #5B4BD6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e13;
    --surface: #17171f;
    --text: #f2f3f7;
    --muted: #a0a0b0;
    --border: #262630;
    --accent: #9b8dff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 32px 16px 64px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main { max-width: 720px; margin: 0 auto; }

header { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 28px; }

.brand { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin: 0; }
.brand span { color: var(--accent); }

h1 { font-size: 28px; line-height: 1.25; letter-spacing: -0.5px; margin: 0 0 8px; }
h2 { font-size: 19px; margin: 36px 0 10px; letter-spacing: -0.2px; }
h3 { font-size: 16px; margin: 24px 0 8px; }

.updated { color: var(--muted); font-size: 14px; margin: 0; }

p, li { color: var(--text); }
ul { padding-left: 22px; }
li { margin-bottom: 8px; }

a { color: var(--accent); }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}

.card h2, .card h3 { margin-top: 0; }

.note { color: var(--muted); font-size: 14px; }

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer a { margin-right: 16px; }

/* A deliberate, unmissable marker for the values that must be filled in
   before this is published. If one of these is still visible on the live
   site, the page is not finished. */
.todo {
  background: #ffe9a8;
  color: #4a3600;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* The operating company, named on every page. Play requires the
   publisher to be identifiable from the privacy policy itself. */
footer .publisher {
  margin: 14px 0 0;
  color: var(--muted);
}
