/* ============================================================
   AIRR · 长文排版共享样式
   同时被 /legal/*.html 与根级业务页（pricing/faq/about/contact）引用
   ============================================================ */

:root {
  --bg:          #0a0a0f;
  --bg2:         #111118;
  --bg3:         #1a1a24;
  --surface:     #1e1e2a;
  --surface2:    #252535;
  --border:      rgba(255,255,255,0.08);
  --border2:     rgba(255,255,255,0.15);
  --text:        #f0eef8;
  --text2:       #9896b0;
  --text3:       #5e5c78;
  --accent:      #7c6af7;
  --accent2:     #a594ff;
  --accent-glow: rgba(124,106,247,0.25);
  --safe:        #4ecb8d;
  --radius:      14px;
  --radius-lg:   20px;
  --font-en:     'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-zh:     'Noto Sans SC', 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-zh);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
body.lang-en { font-family: var(--font-en); }

/* 背景柔光，呼应主站 */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
body::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,106,247,0.14), transparent 70%);
  top: -140px; left: -140px;
}
body::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(78,203,141,0.08), transparent 70%);
  bottom: -120px; right: -120px;
}

/* ---------- 顶部栏 ---------- */
.legal-topbar {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.legal-topbar a.legal-home {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text3);
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}
.legal-topbar a.legal-home:hover { color: var(--accent2); }

.legal-lang-btn {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.legal-lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent2);
}

/* ---------- 正文容器 ---------- */
.legal-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 120px;
}

.legal-content h1 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.legal-content .legal-sub {
  color: var(--text3);
  font-size: 13px;
  margin-bottom: 48px;
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--accent2);
}

.legal-content p {
  color: var(--text);
  margin: 0 0 16px;
  font-size: 15px;
}
.legal-content p.muted,
.legal-content .muted {
  color: var(--text2);
  font-size: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--text);
}
.legal-content li { margin-bottom: 8px; }

.legal-content a {
  color: var(--accent2);
  text-decoration: underline;
  text-decoration-color: rgba(165,148,255,0.4);
  text-underline-offset: 3px;
  transition: color .2s;
}
.legal-content a:hover { color: var(--accent); }

.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content em { color: var(--accent2); font-style: normal; font-weight: 500; }

/* 重点提示条（EU 14 天放弃权等） */
.legal-callout {
  background: linear-gradient(135deg, rgba(124,106,247,0.08), rgba(124,106,247,0.02));
  border: 1px solid var(--border2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--text);
  font-size: 14px;
}
.legal-callout strong { color: var(--accent2); }

/* 表格（Privacy 子处理者列表用） */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.legal-content th,
.legal-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-content th {
  color: var(--text3);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* 定价卡片（pricing 页） */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
}
.price-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent2);
  margin: 8px 0;
  letter-spacing: -0.02em;
}
.price-amount .price-cents { font-size: 24px; vertical-align: super; margin-left: 2px; }
.price-kind {
  color: var(--text3);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.price-includes {
  text-align: left;
  max-width: 420px;
  margin: 24px auto 0;
}
.price-includes li { padding-left: 4px; }
.price-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 30px var(--accent-glow);
  transition: all .2s;
}
.price-cta:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow);
}

/* FAQ 折叠项 */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--surface);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: var(--text);
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  font-size: 22px;
  color: var(--accent2);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p:first-of-type { margin-top: 14px; }
.faq-item p:last-of-type { margin-bottom: 4px; }

/* Contact 卡片 */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}
.contact-card-label {
  color: var(--text3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.contact-card-value { font-size: 18px; color: var(--text); font-weight: 500; }
.contact-card-value a { font-weight: 500; }

/* 底部小字 */
.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0 24px;
}
.legal-footer-note {
  color: var(--text3);
  font-size: 12px;
  text-align: center;
}
.legal-footer-note a { color: var(--text2); }

/* 移动端 */
@media (max-width: 640px) {
  .legal-topbar { padding: 20px 16px 0; }
  .legal-content { padding: 40px 16px 80px; }
  .legal-content h1 { font-size: 24px; }
  .legal-content h2 { font-size: 18px; margin: 36px 0 14px; }
  .legal-content p, .legal-content li { font-size: 14.5px; }
  .price-card { padding: 24px 16px; }
  .price-amount { font-size: 40px; }
}
