:root {
  --ink: #2d2928;
  --muted: #6f625f;
  --soft: #9a8c88;
  --paper: #fffaf6;
  --panel: rgba(255, 250, 246, 0.72);
  --line: rgba(80, 65, 58, 0.12);
  --accent: #a55f7f;
  --accent-deep: #7c405b;
  --shadow: 0 24px 70px rgba(79, 62, 56, 0.1);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgba(228, 203, 193, 0.34), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(204, 219, 224, 0.28), transparent 30rem),
    linear-gradient(180deg, #fffaf7 0%, #f7eee8 52%, #f4ede5 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

html[lang="zh-CN"] body {
  font-family:
    "SF Pro SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Inter, ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(80, 65, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 65, 58, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 74%);
}

a {
  color: inherit;
  text-decoration: none;
}

[data-lang="zh"] {
  display: none !important;
}

html[lang="zh-CN"] [data-lang="en"] {
  display: none !important;
}

html[lang="zh-CN"] [data-lang="zh"] {
  display: revert !important;
}

.page-shell {
  position: relative;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.legal-nav {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  margin-top: 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(80, 65, 58, 0.12);
  border-radius: 24px;
  background: rgba(255, 250, 246, 0.74);
  box-shadow: 0 12px 36px rgba(79, 62, 56, 0.08);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.nav-links a:hover,
.back-link:hover,
.legal-card a:hover {
  color: var(--accent-deep);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(80, 65, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.lang-toggle strong {
  color: var(--ink);
  font-weight: 780;
}

.legal-main {
  padding: 78px 0 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.back-link::before {
  content: "←";
}

.legal-hero {
  max-width: 780px;
  margin-top: 52px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 780;
}

html[lang="zh-CN"] h1 {
  max-width: 760px;
  font-size: clamp(40px, 6.4vw, 66px);
  line-height: 1.13;
  font-weight: 660;
}

.lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

html[lang="zh-CN"] .lede {
  font-size: 18px;
  line-height: 1.86;
}

.updated {
  margin-top: 18px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(250, 244, 240, 0.84)),
    var(--panel);
  box-shadow: 0 16px 50px rgba(79, 62, 56, 0.07);
  padding: 30px;
}

.legal-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 760;
}

html[lang="zh-CN"] .legal-card h2 {
  font-weight: 650;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

html[lang="zh-CN"] .legal-card p,
html[lang="zh-CN"] .legal-card li {
  line-height: 1.9;
}

.legal-card p {
  margin: 12px 0 0;
}

.legal-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-card a {
  color: var(--accent-deep);
  font-weight: 760;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(80, 65, 58, 0.12);
  font-size: 14px;
  font-weight: 760;
}

.button.primary {
  border-color: rgba(80, 65, 58, 0.08);
  background: var(--ink);
  color: #fffaf6;
  box-shadow: 0 12px 26px rgba(45, 41, 40, 0.14);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.support-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.support-item {
  border: 1px solid rgba(80, 65, 58, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  padding: 18px;
}

.support-item h3 {
  margin: 0;
  font-size: 16px;
}

.support-item p {
  margin-top: 8px;
  font-size: 14px;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 0 46px;
  border-top: 1px solid rgba(80, 65, 58, 0.1);
}

.legal-footer p {
  max-width: 420px;
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.copyright {
  margin-top: 18px !important;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, var(--max));
  }

  .legal-nav {
    align-items: flex-start;
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 2px;
  }

  .legal-main {
    padding: 54px 0 66px;
  }

  .legal-hero {
    margin-top: 38px;
  }

  .legal-card {
    padding: 24px;
    border-radius: 24px;
  }

  .support-list {
    grid-template-columns: 1fr;
  }

  .legal-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
