/* Shared styles for the English site and the public policy pages.
   Tokens and nav/footer mirror default.html so the pages look like one site. */
:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-card: #161616;
  --border: #262626;
  --border-strong: #333333;
  --text: #fafafa;
  --text-dim: #a3a3a3;
  --text-muted: #737373;
  --accent: #a78bfa;
  --accent-hover: #c4b5fd;
  --accent-soft: rgba(167, 139, 250, 0.12);
  --radius: 12px;
  --radius-lg: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

nav.top { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, 0.78); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
nav.top .inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 11px; font-size: 19px; }
.logo-mark { width: 34px; height: 34px; display: inline-flex; filter: drop-shadow(0 6px 16px rgba(167, 139, 250, 0.30)); }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-text { font-weight: 800; font-size: 20px; letter-spacing: -0.025em; color: var(--text); }
.logo-text .grad, .grad { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 60%, #c4b5fd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu { display: flex; gap: 28px; font-size: 14px; color: var(--text-dim); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.lang-switch { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.lang-switch a { padding: 2px 4px; }
.lang-switch a:hover { color: var(--accent); }
.lang-switch strong { color: var(--text); padding: 2px 4px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: all .18s ease; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
@media (max-width: 880px) { .menu { display: none; } }
@media (max-width: 480px) { .nav-actions .btn-ghost { display: none; } }

/* Marketing sections */
.hero { padding: 88px 0 64px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
.hero .lead { margin: 20px auto 0; max-width: 720px; color: var(--text-dim); font-size: 18px; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; color: var(--text-muted); font-size: 13px; }
section.s { padding: 72px 0; border-top: 1px solid var(--border); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; }
.sec-head p { color: var(--text-dim); margin-top: 10px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p, .card li { color: var(--text-dim); font-size: 14px; }
.card ul { padding-left: 18px; }
.step-num { display: inline-flex; width: 28px; height: 28px; border-radius: 999px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
pre.code { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; overflow-x: auto; font-size: 13px; color: #e5e5e5; text-align: left; }
.notice { background: var(--accent-soft); border: 1px solid rgba(167, 139, 250, 0.35); border-radius: var(--radius); padding: 16px 18px; color: #ddd6fe; font-size: 14px; }
.notice a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--text-dim); margin-top: 10px; font-size: 14px; }

/* Pricing table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.prices { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.prices th, table.prices td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.prices thead th { color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-elev); }
table.prices tbody tr:last-child td, table.prices tbody tr:last-child th { border-bottom: 0; }
table.prices td.num { font-family: 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap; }
table.prices .model { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; }
table.prices .vendor { color: var(--text-muted); font-size: 12px; }
.table-note { color: var(--text-muted); font-size: 13px; margin-top: 12px; }

/* Policy documents */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; }
.doc .meta { color: var(--text-muted); font-size: 13px; margin-top: 8px; }
.doc .entity { margin-top: 20px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; }
.doc h3 { font-size: 16px; margin: 20px 0 6px; }
.doc p, .doc li { color: #d4d4d4; font-size: 15px; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; }
.doc li + li { margin-top: 4px; }
.doc a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.doc .toc { margin-top: 24px; font-size: 14px; color: var(--text-dim); }
.doc .toc a { margin-right: 14px; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 56px 0 8px; }
.doc .translation-note { color: var(--text-muted); font-size: 13px; margin-top: 6px; }
.doc .contact-list { list-style: none; padding: 0; }
.doc .contact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.doc .contact-list strong { display: inline-block; min-width: 180px; color: var(--text); }

footer { border-top: 1px solid var(--border); padding: 48px 0 28px; color: var(--text-dim); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .foot-brand { grid-column: 1 / -1; } }
.foot-col h5 { color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.foot-col a { display: block; padding: 5px 0; color: var(--text-dim); font-size: 13px; }
.foot-col a:hover { color: var(--accent); }
.foot-brand p { color: var(--text-muted); font-size: 13px; margin: 12px 0 4px; max-width: 360px; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: 12px; }
@media (max-width: 640px) { .container { padding: 0 16px; } .hero { padding: 64px 0 48px; } section.s { padding: 56px 0; } }
