/* Shared skin for the public legal pages (/privacy, /terms, /delete-account).
   These are plain static HTML, served by Netlify before the SPA catch-all, so
   they load with no JavaScript, no session, and no app bundle — which is the
   point: Google has to be able to reach them, and so does someone who has
   already uninstalled the app. */

:root {
  --ink: #0e0e0f;
  --muted: #6b6b70;
  --line: #e6e6e8;
  --page: #ffffff;
  --lime: #c9f227;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f5;
    --muted: #9a9aa2;
    --line: #2a2a2e;
    --page: #0e0e0f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--page);
  color: var(--ink);
  font-family: Archivo, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

header { padding: 40px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }

.mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 19px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
/* The app icon itself, at the size of a capital letter: the same R and dot
   people tap on their home screen. */
.mark img { width: 24px; height: 24px; border-radius: 6px; display: block; }

h1 { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; margin: 20px 0 6px; }
h2 { font-size: 19px; font-weight: 900; letter-spacing: -0.02em; margin: 38px 0 10px; }
h3 { font-size: 15px; font-weight: 900; margin: 22px 0 6px; }

.updated { color: var(--muted); font-size: 13px; margin: 0; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 7px; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
strong { font-weight: 800; }

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 22px 0;
}
.card.warn { border-color: #dc2626; }

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

footer {
  max-width: 680px; margin: 56px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
footer a { color: var(--muted); margin-right: 16px; }

/* ── Theme bridge ─────────────────────────────────────────────────────────
   Opened from inside the app, a two-line inline script stamps the design and
   day/night the user chose (read from the same localStorage the app writes).
   With no JavaScript — crawlers, link previews — nothing is stamped and the
   classic look above stands, which is exactly what Google should see. */
:root[data-design='atelier'] {
  --ink: #3b3237;
  --muted: #8d7a7e;
  --line: rgba(201, 106, 128, 0.28);
  --page: #f4e4e6;
  --lime: #c96a7c;
}
:root[data-design='atelier'][data-theme='dark'] {
  --ink: #f6efec;
  --muted: #a8989d;
  --line: rgba(255, 255, 255, 0.13);
  --page: #241f22;
  --lime: #c98a96;
}
/* The serif voice, without shipping a webfont to a legal page. */
:root[data-design='atelier'] h1,
:root[data-design='atelier'] h2,
:root[data-design='atelier'] h3,
:root[data-design='atelier'] .mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0.005em;
}
:root[data-design='instrument'] {
  --ink: #16170f;
  --muted: #7f8174;
  --line: rgba(20, 21, 15, 0.14);
  --page: #f4f4f1;
  --lime: #5f7d00;
}
:root[data-design='instrument'][data-theme='dark'] {
  --ink: #f2f3ea;
  --muted: #7f8174;
  --line: rgba(255, 255, 255, 0.11);
  --page: #0d0e0d;
  --lime: #c9f227;
}
