:root {
  --blue: #4f91a6;
  --blue-dark: #3a7486;
  --blue-pale: #c5ebf3;
  --text: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --bg: #f6f6f6;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(79, 145, 166, 0.08);
}

* {
  box-sizing: border-box;
}

body.legal-page-body {
  margin: 0;
  font-family: "Source Sans Pro", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--blue-pale) 0%, var(--bg) 280px);
  min-height: 100vh;
}

.container {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[data-lang-toggle] {
  color: var(--blue-dark);
  font-weight: 600;
}

.legal-main {
  padding: 48px 0 64px;
  min-height: calc(100vh - 180px);
}

.legal-header {
  margin-bottom: 28px;
}

.legal-title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.legal-updated {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.legal-section + .legal-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.legal-section-title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
}

.legal-paragraph {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-paragraph:last-child {
  margin-bottom: 0;
}

.legal-paragraph a {
  color: var(--blue-dark);
}

.legal-footer-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 28px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-desc,
.footer-col p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.9;
}

.footer-col a:hover {
  color: var(--blue-dark);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .legal-content {
    padding: 24px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
