:root {
  color: #181816;
  background: #f4f1ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --paper: #f4f1ea;
  --ink: #181816;
  --red: #f0523e;
  --line: rgba(24, 24, 22, 0.14);
  --muted: #6d6962;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
button { font: inherit; }

.legal-header {
  width: min(1120px, calc(100% - 40px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.legal-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.legal-brand img { width: 36px; height: 36px; border-radius: 10px; }
.legal-brand span { font-size: 19px; letter-spacing: -.03em; }
.legal-actions { display: flex; align-items: center; gap: 10px; }
.legal-actions a, .language-toggle { border: 1px solid var(--line); background: rgba(255,255,255,.4); border-radius: 100px; min-height: 39px; padding: 0 15px; display: inline-flex; align-items: center; text-decoration: none; font-size: 12px; font-weight: 700; cursor: pointer; }
.language-toggle:hover, .legal-actions a:hover { border-color: var(--red); color: var(--red); }

.legal-hero { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 74px; display: grid; grid-template-columns: 1fr 260px; gap: 70px; align-items: end; }
.legal-kicker { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.legal-hero h1 { font-family: var(--serif); font-size: clamp(48px, 7vw, 78px); line-height: 1.08; letter-spacing: -.05em; margin: 0; font-weight: 700; }
.legal-hero h1 em { color: var(--red); font-style: normal; }
.legal-lead { color: var(--muted); line-height: 1.8; margin: 0; font-size: 15px; }
.legal-meta { width: min(1120px, calc(100% - 40px)); margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 50px; padding: 19px 0; color: var(--muted); font-size: 12px; }
.legal-meta strong { color: var(--ink); margin-right: 7px; }

.legal-layout { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 120px; display: grid; grid-template-columns: 210px minmax(0, 720px); gap: 90px; }
.legal-toc { position: sticky; top: 26px; align-self: start; }
.legal-toc p { font-size: 10px; font-weight: 800; letter-spacing: .15em; color: var(--red); margin: 0 0 16px; }
.legal-toc a { display: block; text-decoration: none; color: var(--muted); font-size: 12px; line-height: 1.5; padding: 7px 0; }
.legal-toc a:hover { color: var(--red); }
.legal-content section { scroll-margin-top: 20px; padding: 0 0 46px; margin: 0 0 46px; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-content h2 { font-family: var(--serif); font-size: 27px; letter-spacing: -.025em; margin: 0 0 20px; }
.legal-content h3 { font-size: 15px; margin: 28px 0 10px; }
.legal-content p, .legal-content li { color: #55514c; font-size: 14px; line-height: 1.9; }
.legal-content ul, .legal-content ol { padding-left: 21px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--red); text-underline-offset: 3px; }
.info-card { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 15px; padding: 22px; margin: 22px 0; }
.info-card p:first-child { margin-top: 0; }
.info-card p:last-child { margin-bottom: 0; }
.contact-card { background: var(--ink); color: white; border-radius: 18px; padding: 28px; }
.contact-card p { color: rgba(255,255,255,.65); }
.contact-card a { color: white; font-family: var(--serif); font-size: 23px; font-weight: 700; text-decoration-color: var(--red); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.support-card { background: rgba(255,255,255,.52); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.support-card b { display: block; font-family: var(--serif); margin-bottom: 8px; }
.support-card p { font-size: 13px; line-height: 1.7; margin: 0; }
.mail-button { display: inline-flex; align-items: center; border-radius: 100px; background: var(--red); color: white !important; text-decoration: none; font-size: 13px !important; font-family: inherit !important; padding: 12px 18px; margin-top: 12px; }

.legal-footer { background: var(--ink); color: white; }
.legal-footer-inner { width: min(1120px, calc(100% - 40px)); min-height: 130px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.legal-footer p { color: rgba(255,255,255,.52); font-size: 11px; }
.legal-footer nav { display: flex; gap: 20px; }
.legal-footer a { color: white; text-decoration: none; font-size: 12px; }
.legal-footer a:hover { color: #ff8d77; }

[data-lang="en"] { display: none; }
html[data-language="en"] [data-lang="zh"] { display: none; }
html[data-language="en"] [data-lang="en"] { display: revert; }

@media (max-width: 760px) {
  .legal-header { height: 68px; }
  .legal-brand span { font-size: 17px; }
  .legal-actions > a { display: none; }
  .legal-hero { grid-template-columns: 1fr; gap: 25px; padding: 64px 0 52px; }
  .legal-hero h1 { font-size: 48px; }
  .legal-meta { gap: 14px; flex-direction: column; }
  .legal-layout { grid-template-columns: 1fr; gap: 35px; padding-top: 48px; }
  .legal-toc { position: static; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .legal-toc p { grid-column: 1 / -1; }
  .support-grid { grid-template-columns: 1fr; }
  .legal-footer-inner { padding: 32px 0; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
