/* Standalone document pages: /support and /privacy.
 *
 * These are pre-rendered from Jaspr components (lib/src/pages, rendered by
 * tool/render_pages.dart) and load no JavaScript at all, so they carry their
 * own stylesheet rather than the app's 54 KB styles.css. Tokens and card
 * chrome are copied from it deliberately — same design, a tenth of the bytes.
 *
 * Fonts are the local Fredoka faces the app already ships (weight tops out at
 * 600) plus the system body stack. No Google Fonts: a privacy policy should
 * not hand a third party a request log of everyone who reads it.
 */

:root {
  --bg: #f2f6fe;
  --surface: #ffffff;
  --surface-2: #e9effc;
  --ink: #1e2a46;
  --muted: #68789b;
  --line: #d9e2f2;
  --accent: #4a6cf7;
  --accent-soft: #e4ebff;
  --accent-deep: #3a55d4;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --card-shadow: 0 6px 18px rgba(30, 42, 70, .10);
  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@font-face {
  font-family: 'Fredoka';
  src: url('fonts/Fredoka-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Fredoka';
  src: url('fonts/Fredoka-500.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Fredoka';
  src: url('fonts/Fredoka-600.ttf') format('truetype');
  font-weight: 600 700;
  font-display: swap;
}

* { box-sizing: border-box; }

/* The app surface fills the window edge to edge (`.frame` in styles.css);
   only the content column is capped. */
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 20px 64px;
}

h1, h2, h3, .brand-name {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 40px 0 28px;
}

header img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.brand-name { font-size: 28px; }

header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
  padding: 26px 26px 22px;
  margin-bottom: 22px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card h3 {
  margin: 20px 0 4px;
  font-size: 16px;
}

.card p, .card li {
  color: var(--muted);
  font-size: 15px;
}

.card p { margin: 0 0 12px; }
.card ul { margin: 0 0 12px; padding-left: 20px; }
.card li { margin-bottom: 7px; }
.card strong { color: var(--ink); }

/* Numbered steps, accent-circled. Play requires the deletion steps to be
   prominent, so they get more weight than an ordinary list. */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 14px;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  margin-bottom: 10px;
  min-height: 26px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  display: grid;
  place-items: center;
}

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

/* ------------------------------------------------------------ support */

.card.contact { padding-bottom: 26px; }

.lead {
  color: var(--muted);
  margin: 0 0 18px;
}

.mail-btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--display);
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--card-shadow);
}

.mail-btn:hover { background: var(--accent-deep); }

.hint {
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin: 18px 0 0;
  font-size: 14.5px;
  /* Wins over `.card p`, which would mute it — this one is meant to be read. */
  color: var(--ink);
}

details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}

details:first-of-type { border-top: none; }

summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 28px 14px 0;
  font-weight: 600;
  font-family: var(--display);
  font-size: 16.5px;
  position: relative;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

details[open] > summary::after { content: '–'; }

details > *:not(summary) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

details ul { padding-left: 20px; }
details li { margin-bottom: 6px; }

/* ------------------------------------------------------------ privacy */

/* The at-a-glance card: same chrome, tinted, and full-contrast text since
   it is the part most people actually read. */
.card.summary {
  background: var(--accent-soft);
  border-color: transparent;
}

.card.summary p, .card.summary li { color: var(--ink); }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 4px 0 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}

th {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  font-size: 14px;
}

th:first-child { border-top-left-radius: 10px; }
th:last-child { border-top-right-radius: 10px; }
td:first-child { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- footer */

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  padding-top: 8px;
}

footer p { margin: 4px 0; }

@media (max-width: 520px) {
  header { padding: 28px 0 20px; }
  header img { width: 56px; height: 56px; }
  .brand-name { font-size: 24px; }
  .card { padding: 20px 18px 16px; border-radius: var(--r-md); }
}
