/* Shared styles for the static public pages (/privacy, /support).
   Kept standalone so App Store reviewers get a plain, fast page (JS only picks light/dark). */
:root {
  --bg: #06080f;
  --panel: #0c1120;
  --border: rgba(92, 200, 242, 0.16);
  --text: #dfe7f5;
  --muted: #8f9fc4;
  --brand: #5cc8f2;
  --heading: #ffffff;
}
/* Light theme: set by /pubtheme.js from the visitor's OS setting or the nav toggle. */
html[data-pub-theme="light"] {
  --bg: #f6f8fd;
  --panel: #ffffff;
  --border: rgba(36, 112, 214, 0.18);
  --text: #1a2140;
  --muted: #4a5878;
  --brand: #2470d6;
  --heading: #0f1530;
}
.theme-btn {
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  width: 30px; height: 30px; font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.65;
}
a { color: var(--brand); }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 820px; margin: 0 auto; padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.top img { height: 36px; display: block; }
.top nav { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--brand); }
main { max-width: 820px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 19px; margin: 34px 0 8px; color: var(--heading); }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; margin: 18px 0;
}
.card strong { color: var(--heading); }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
ul { padding-left: 22px; }
footer {
  max-width: 820px; margin: 0 auto; padding: 24px 16px 48px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}

/* Social links (pubtheme.js) */
.ion-social { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.ion-social-lead { font-size: 13px; font-weight: 600; }
.ion-social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; border: 1px solid var(--border); }
.ion-social-link:hover, .ion-social-link:focus-visible { border-color: currentColor; }
