/* Shared styles for SinoutX sub-pages (docs, privacy, terms) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B0F19;
  --bg2: #111827;
  --border: rgba(255,255,255,0.08);
  --purple: #7C3AED;
  --cyan: #22D3EE;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --subtle: #64748B;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,15,25,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff;
}
.brand-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.back-link { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.back-link:hover { color: var(--text); }

/* Language switcher */
.lang-switch { display: flex; gap: 2px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.lang-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; transition: all .15s;
}
.lang-btn.active { background: var(--purple); color: #fff; }
.lang-btn:not(button) { text-decoration: none; display: inline-block; line-height: 1.4; }

/* Content */
.content { padding: 48px 0 80px; }
.content h1 {
  font-family: 'Outfit', sans-serif; font-size: 36px; font-weight: 800;
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.content .updated { color: var(--subtle); font-size: 13px; margin-bottom: 40px; }
.content h2 {
  font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700;
  margin: 36px 0 12px; color: var(--text);
}
.content h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.content p { color: var(--muted); margin-bottom: 14px; }
.content ul, .content ol { color: var(--muted); margin: 0 0 14px 22px; }
.content li { margin-bottom: 7px; }
.content a { color: var(--cyan); text-decoration: none; }
.content a:hover { text-decoration: underline; }
.content strong { color: var(--text); }
.content code {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 6px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--cyan);
}
.content pre {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; overflow-x: auto; margin: 0 0 18px; font-size: 13px;
}
.content pre code { background: none; border: none; padding: 0; color: var(--text); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin: 20px 0; }
.doc-card { display: block; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg2); text-decoration: none; transition: border-color .2s, transform .2s; }
.doc-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.doc-card .t { font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.doc-card .d { color: var(--muted); font-size: 13px; }

footer.pagefoot { border-top: 1px solid var(--border); padding: 24px 0; }
.pagefoot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--subtle); font-size: 13px; }
.pagefoot a { color: var(--muted); text-decoration: none; }
.pagefoot a:hover { color: var(--text); }

[data-lang] { display: none; }
[data-lang].active-lang { display: revert; }
