/* 法律文档页（隐私政策等） */
:root {
  --c-brand: #2a9d72;
  --c-brand-dark: #1a5c45;
  --c-ink: #15202b;
  --c-ink-muted: #5c6b7a;
  --c-paper: #faf9f7;
  --c-white: #ffffff;
  --c-border: #e8e4de;
  --font: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --header-h: 64px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body.legal-page {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
  font-size: 1.0625rem;
  font-weight: 600;
}

.legal-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 32px) 80px;
}

.legal-doc h1 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  color: var(--c-brand-dark);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--c-ink-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
}

.legal-intro {
  margin-bottom: 32px;
  color: var(--c-ink);
}

.legal-intro p + p {
  margin-top: 1em;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 12px;
}

.legal-section h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-ink-muted);
  margin: 16px 0 8px;
}

.legal-section p {
  margin-bottom: 10px;
  text-align: justify;
}

.legal-section ul {
  margin: 8px 0 12px 1.25em;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section li::marker {
  color: var(--c-brand);
}

.legal-strong {
  font-weight: 600;
  color: var(--c-ink);
}

.legal-link {
  color: var(--c-brand);
  word-break: break-all;
}

.legal-link:hover {
  text-decoration: underline;
}

.legal-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 32px) 40px;
  border-top: 1px solid var(--c-border);
  font-size: 0.8125rem;
  color: var(--c-ink-muted);
  text-align: center;
}

.legal-footer p + p {
  margin-top: 6px;
}

.legal-footer a {
  color: var(--c-ink-muted);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--c-brand);
}

@media (max-width: 600px) {
  .legal-doc {
    padding-top: 24px;
  }

  .legal-section ul {
    margin-left: 1em;
  }
}
