/* Shared styling for the three policy pages Google Play requires to be publicly reachable. */

:root {
  --ink: #1b1f2a;
  --muted: #5b6377;
  --line: #dfe3ec;
  --accent: #1f4fa8;
  --paper: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e9f2;
    --muted: #99a1b5;
    --line: #2b303d;
    --accent: #8faaf0;
    --paper: #14171f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2.4rem 0 0.6rem;
  letter-spacing: -0.01em;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

p, li { color: var(--ink); }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

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

code {
  background: var(--line);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { margin-right: 1rem; }

/* ---------------------------------------------------------------------------
   Terms of Service only: numbered clauses.

   Numbering is not decoration here — a clause you can cite ("clause 5.2") is what
   makes a term enforceable in a dispute and referenceable in support email.
   --------------------------------------------------------------------------- */

.clauses { counter-reset: clause; }

.clauses > h2 {
  counter-increment: clause;
  counter-reset: sub;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.clauses > h2::before {
  content: counter(clause) ".";
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  flex: none;
}

.clauses > p,
.clauses > ul {
  margin-left: 1.85rem;
}

.clauses > p.sub {
  counter-increment: sub;
  position: relative;
}

.clauses > p.sub::before {
  content: counter(clause) "." counter(sub);
  position: absolute;
  left: -1.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  top: 0.15em;
}

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.copyright {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

/* The privacy policy's data table. Wrapped in .table-scroll so a narrow phone scrolls
   the table rather than the whole page. */
.table-scroll {
  overflow-x: auto;
  margin: 1.2rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  min-width: 34rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

td:first-child {
  font-weight: 600;
}
