/* Shared by the privacy, terms and support pages. Same colours as index.html. */
:root {
  --bg: #f5f5f7; --card: #ffffff; --text: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7;
  --code-bg: #f0f0f2;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --card: #1c1c1e; --text: #f5f5f7; --muted: #98989d; --line: #38383a; --code-bg: #2c2c2e; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  padding: max(24px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
  background: var(--bg); color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.page { max-width: 680px; margin: 0 auto; }

header { display: flex; align-items: center; gap: 12px; margin: 0 4px 20px; }
.home { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
/* The app icon. The pages keep "HS" in the markup (tools/policy-pages.py writes it); it's hidden. */
.mark {
  width: 36px; height: 36px; flex: none;
  background: url(/img/icon-256.png) center / contain no-repeat;
  color: transparent; font-size: 0;
}

main {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 28px;
}
@media (max-width: 480px) { main { padding: 24px 20px; border-radius: 16px; } }

h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.4px; margin: 0 0 6px; }
h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.2px; margin: 32px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
.updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.lead { font-size: 19px; margin: 0 0 20px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
li > ul { margin: 6px 0 0; }
strong { font-weight: 600; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.muted { color: var(--muted); }

.contact {
  margin: 0 0 8px; padding: 20px; border-radius: 14px; background: var(--code-bg);
}
.contact p:last-child { margin-bottom: 0; }
.button {
  display: inline-block; margin-top: 4px; padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: var(--card); text-decoration: none; font-weight: 600;
}

footer {
  margin: 20px 4px 0; font-size: 14px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
footer a { color: var(--muted); }
footer .note { flex-basis: 100%; }

/* Page-to-page fades, matching the home page (home.css). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.2s ease both vt-out; }
::view-transition-new(root) { animation: 0.45s cubic-bezier(0.16, 1, 0.3, 1) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 12px; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
