/* Text pages (support, privacy, terms, 404). The home page keeps its own inline styles. */
:root {
  --bg: #FAFAF7; --surface: #FFFFFF; --border: #E8E7E1;
  --text: #111111; --text-mid: #3E3E3A; --link: #1E6BF1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214; --surface: #1A1B1F; --border: #2C2D33;
    --text: #F2F2EE; --text-mid: #B8B8B0; --link: #7DA9FF;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6;
}
a { color: var(--link); }

.top { background: linear-gradient(135deg, #4c1d95 0%, #dc2626 50%, #14b8a6 100%); }
.top-inner { max-width: 760px; margin: 0 auto; padding: 18px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand span { font-size: 20px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; overflow-wrap: break-word; }
h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.5px; margin: 0 0 8px; }
h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.meta { color: var(--text-mid); margin-bottom: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }
.card p:last-child { margin-bottom: 0; }
.big { font-size: 20px; font-weight: 600; }
details { border-bottom: 1px solid var(--border); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 4px; color: var(--text-mid); }

footer { background: #111827; color: #9ca3af; font-size: 13px; padding: 24px 16px; text-align: center; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
footer a { color: #d1d5db; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
