/* Shared styles for the legal pages.
 *
 * Deliberately dependency-free: no webfonts, no CDN, no build step. These
 * pages have to be reachable when a store reviewer opens them, so there is
 * nothing here that can fail to load.
 *
 * Both stores open these in an in-app browser on a phone, so this is
 * mobile-first and respects the reader's colour scheme. */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5c5c5c;
  --rule: #e4e4e4;
  --accent: #b8860b;
  --card: #faf8f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131313;
    --fg: #e8e8e8;
    --muted: #a0a0a0;
    --rule: #2e2e2e;
    --accent: #fbbc46;
    --card: #1c1b19;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  overflow-wrap: break-word;
}

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

h1 {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 1.2rem;
  line-height: 1.3;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4rem;
}

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

a:hover {
  text-decoration: none;
}

strong {
  font-weight: 600;
}

/* Publication date under the title. */
.updated {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* The "short version" summary box at the top of the privacy policy. */
.summary {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
}

.summary h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 1rem;
}

nav.pages {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

nav.pages a + a {
  margin-left: 1rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

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