/*
 * Shared look for the two standalone legal pages.
 *
 * A plain stylesheet in public/ rather than part of the Vue app: these are documents, not screens.
 * They must render with no JavaScript, survive being opened inside an in-app browser on a bad
 * connection, and keep working if the SPA build ever breaks. That also means they are exempt from
 * the app's router (there isn't one) and cost nothing in the main bundle.
 */

:root {
  color-scheme: light dark;

  --ink: #1e2430;
  --ink-soft: #48505f;
  --ink-muted: #6b7385;
  --paper: #fdf6ec;
  --card: #fffdf8;
  --rule: rgba(30, 36, 48, 0.1);
  --accent: #b0446a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ecf4;
    --ink-soft: #b6bdcc;
    --ink-muted: #8a92a3;
    --paper: #0b1120;
    --card: #121a2c;
    --rule: rgba(232, 236, 244, 0.12);
    --accent: #f2a0bd;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* An in-app browser on iOS can sit under the home indicator. */
  padding-bottom: max(5rem, env(safe-area-inset-bottom));
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-decoration: none;
}

h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.updated {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.375rem;
  font-weight: 500;
  margin: 2.75rem 0 0.75rem;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

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

ul {
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

/* A fact worth not burying: the two or three sentences that actually answer "what do you know
   about me". */
.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  margin: 1.75rem 0;
}

.note p:last-child {
  margin-bottom: 0;
}

.note p:first-child {
  margin-top: 0;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

footer a {
  color: var(--ink-muted);
}
