/* Shared styling for the 顺联VPN legal pages.
 *
 * Deliberately standalone: no external fonts, no CDN, no analytics, no
 * JavaScript. A privacy policy that loads third-party resources would itself be
 * a data-collection event, and it would break the very claim the page makes.
 *
 * Colours are chosen so the page is readable in both light and dark mode without
 * a media query — dark text on a light background, with a dark-mode override for
 * people who prefer it.
 */

:root {
  --bg: #ffffff;
  --fg: #1a1a1f;
  --muted: #5c5c66;
  --rule: #e3e3e8;
  --accent: #3b2fd4;
  --note-bg: #fdf6e3;
  --note-rule: #e6c34a;
  --warn-bg: #fdecec;
  --warn-rule: #d94a4a;
  --code-bg: #f4f4f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --fg: #e8e8ee;
    --muted: #a0a0ac;
    --rule: #2c2c33;
    --accent: #9d92ff;
    --note-bg: #2a2416;
    --note-rule: #8a7320;
    --warn-bg: #2c1a1a;
    --warn-rule: #8a3535;
    --code-bg: #202027;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 780px; margin: 0 auto; }

header {
  padding: 40px 0 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}

h1 { font-size: 1.7em; line-height: 1.3; margin: 0 0 6px; }
h2 { font-size: 1.2em; margin: 2em 0 0.5em; padding-top: 0.3em; }
h3 { font-size: 1.02em; margin: 1.4em 0 0.4em; }

p, li { color: var(--fg); }
ul, ol { padding-left: 1.4em; }
li { margin: 0.35em 0; }

.meta { color: var(--muted); font-size: 0.88em; margin: 0 0 4px; }

a { color: var(--accent); }

code {
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8em 0;
  font-size: 0.94em;
}
th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; }

.note, .warn {
  border-left: 3px solid var(--note-rule);
  background: var(--note-bg);
  padding: 12px 16px;
  margin: 1.2em 0;
  border-radius: 0 4px 4px 0;
}
.warn { border-left-color: var(--warn-rule); background: var(--warn-bg); }
.note p, .warn p { margin: 0.4em 0; }

.lang { margin: 24px 0 0; font-size: 0.92em; }
.lang a { margin-right: 14px; }

footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.86em;
}
