/* Shared by the website (matewan.ayonix.com) and the copies of these pages bundled in the apps. White, with soft curves. */
:root {
  --ink: #1d1838; --muted: #5d5873; --purple: #5b3cc4; --purple-2: #7a5cf0; --pink: #ec4f93; --gold: #f2b544;
  --coral: #ff7a59; --line: #ece8f6; --soft: #f7f4fe; --bg: #fff; --card: #fff;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "PingFang SC", "Noto Sans JP", "Noto Sans SC", "Yu Gothic", "Microsoft YaHei", sans-serif;
}
:lang(zh-Hans) { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "PingFang SC", "Noto Sans SC",
  "Microsoft YaHei", "Hiragino Sans GB", sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 17px; overflow-x: hidden; }
a { color: var(--purple); }
img { max-width: 100%; }

/* Header: brand, page links, language switch */
header.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto; padding: 14px 20px; background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
header.top a.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--purple); font-weight: 800;
  font-size: 26px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
header.top a.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 14px rgba(91,60,196,.25); }
header.top nav { display: flex; gap: 4px 16px; flex-wrap: wrap; }
header.top nav a { color: var(--ink); font-size: 15px; text-decoration: none; padding: 4px 0; }
header.top nav a:hover { color: var(--purple); }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.langs a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 11px; border-radius: 999px; }
.langs a[aria-current] { background: var(--purple); color: #fff; }

/* Text pages (privacy, terms, support…) */
body.doc { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 520' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%237a5cf0'/%3E%3Cstop offset='.55' stop-color='%23ec4f93'/%3E%3Cstop offset='1' stop-color='%23f2b544'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-40 330 C 260 170 520 470 820 300 S 1260 90 1500 230' fill='none' stroke='url(%23g)' stroke-width='3' opacity='.55'/%3E%3Cpath d='M-40 390 C 300 250 560 520 860 360 S 1280 170 1500 300' fill='none' stroke='url(%23g)' stroke-width='1.5' opacity='.35'/%3E%3Cpath d='M-40 140 C 340 40 700 220 1000 110 S 1360 30 1500 70' fill='none' stroke='%23ece8f6' stroke-width='2'/%3E%3C/svg%3E")
  top center / 100% 520px no-repeat, var(--bg); }
body.doc main { max-width: 860px; margin: 0 auto; padding: 40px 20px 60px; }
body.doc article { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px clamp(20px, 5vw, 48px);
  box-shadow: 0 30px 80px -40px rgba(91,60,196,.35); }
h1 { line-height: 1.2; letter-spacing: -.02em; }
h2 { margin-top: 34px; font-size: 21px; line-height: 1.35; }
.muted { color: var(--muted); font-size: 15px; }
.hero { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; border-radius: 28px; padding: 36px 28px; margin-bottom: 20px; }
.hero h1 { margin: 0 0 8px; } .hero p { margin: 0; opacity: .92; }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
td, th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }

footer { max-width: 1180px; margin: 0 auto; padding: 8px 20px 48px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  header.top { padding: 10px 16px; }
  header.top a.brand { font-size: 22px; }
  header.top a.brand img { width: 30px; height: 30px; }
  header.top nav { order: 3; width: 100%; gap: 2px 14px; }
  header.top nav a { font-size: 14px; }
  body.doc main { padding: 20px 16px 40px; }
}
