/* pebbleapp.dk — shared styles for the privacy + support pages.
   External stylesheet (no inline styles) so it passes the site's strict CSP:
   style-src 'self'. No scripts, no external resources, no web fonts. */

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --ink: #242a28;
  --muted: #5a635e;
  --faint: #8b948f;
  --line: #e4e7e2;
  --accent: #4f8768;
  --accent-ink: #3c6e53;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141817;
    --surface: #1b2120;
    --ink: #e9ece8;
    --muted: #a7b0aa;
    --faint: #6e7873;
    --line: #2a312e;
    --accent: #6fb08c;
    --accent-ink: #8ac4a4;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 22px 96px;
}

/* Masthead */
.masthead {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.masthead .tag {
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* Document */
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  text-wrap: balance;
}
.updated {
  color: var(--faint);
  font-size: 14px;
  margin: 0 0 36px;
}
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 32px;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}

p { margin: 0 0 18px; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

strong { font-weight: 650; }

ul { margin: 0 0 18px; padding-left: 1.15em; }
li { margin: 0 0 10px; }

/* Callout for the "short version" */
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 32px;
}
.note p { margin: 0; }

/* Support Q&A */
.qa { margin: 0 0 8px; }
.qa h2 { margin-bottom: 6px; }

/* Email / contact emphasis */
.contact {
  display: inline-block;
  font-weight: 600;
  color: var(--accent-ink);
}

/* Footer */
.foot {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .sep { color: var(--line); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.12s ease; }
}
