/*
  Shared styling for the Boba compliance pages.

  Deliberately one small stylesheet and no framework: these pages exist so a
  Play reviewer, a parent, or someone who has already uninstalled the app can
  read them on a phone with a bad connection. Every rule here serves legibility.
*/

:root {
  --ink: #4a2c1e;
  --ink-soft: #7b5a42;
  --bg: #fff8f0;
  --bg-alt: #fdf1e3;
  --card: #ffffff;
  --purple: #6d28d9;
  --pink: #db2777;
  --line: #ecdfd2;
  --shadow: 0 1px 3px rgba(74, 44, 30, 0.08), 0 8px 24px rgba(74, 44, 30, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3e9e0;
    --ink-soft: #c4ab98;
    --bg: #1c1512;
    --bg-alt: #241b17;
    --card: #241b17;
    --purple: #c4a6ff;
    --pink: #f9a8d4;
    --line: #3a2c25;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

/* ── Header ─────────────────────────────────────────────── */

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

header.site .logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: none;
}

header.site .name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

header.site .tag {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ── Type ───────────────────────────────────────────────── */

h1 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

h2 {
  font-size: 19px;
  margin: 34px 0 10px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 16px;
  margin: 22px 0 6px;
}

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

.updated {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

ul { padding-left: 22px; }
li { margin: 5px 0; }

a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 2px; }

strong { font-weight: 700; }

/* ── Cards, callouts, tables ────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}

.note {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 15px;
}

.note strong { color: var(--purple); }

.tbl-scroll { overflow-x: auto; margin: 16px 0; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 420px;
}

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

th { font-weight: 700; background: var(--bg-alt); }

/* ── Navigation cards on the landing page ───────────────── */

.links { display: grid; gap: 12px; margin: 26px 0; }

.links a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.links a:hover { border-color: var(--purple); }

.links .t { font-weight: 700; display: block; }
.links .d { font-size: 14px; color: var(--ink-soft); }

/* ── Footer ─────────────────────────────────────────────── */

footer.site {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }

.mail {
  font-weight: 700;
  word-break: break-all;
}
