:root {
  color-scheme: light;
  --page-light: #fdf7f1;
  --surface-light: #fffaf6;
  --ink: #11100f;
  --muted: #625e5a;
  --line: rgba(17, 16, 15, 0.14);
  --brand-red: #c53a27;
  --font-sans: "Geist", "Inter", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-light);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(253, 247, 241, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.legal-header__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
}
.legal-brand img { width: 36px; height: 36px; border-radius: 7px; }
.home-link {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.home-link:hover { color: var(--brand-red); border-color: var(--brand-red); transform: translateY(-1px); }

.legal-main {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 124px) 0 clamp(80px, 10vw, 140px);
}
.legal-kicker {
  margin: 0 0 18px;
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(50px, 7vw, 86px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.version {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}
.legal-intro {
  margin: clamp(52px, 7vw, 82px) 0 0;
  padding-top: clamp(38px, 5vw, 58px);
  border-top: 1px solid var(--line);
}
.legal-section { margin-top: clamp(50px, 7vw, 78px); }
h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
p, li {
  color: #3f3b38;
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.95;
}
p { margin: 0 0 18px; }
strong { color: var(--ink); font-weight: 800; }
.legal-main a:not(.home-link) {
  color: var(--brand-red);
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
ul, ol { margin: 18px 0 0; padding-left: 1.5em; }
li { padding-left: 0.35em; margin: 0 0 12px; }
.contact-card {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface-light);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.contact-card p { margin: 0 0 8px; }
.contact-card p:last-child { margin-bottom: 0; }

.legal-footer {
  padding: 30px clamp(20px, 4vw, 64px);
  background: var(--brand-red);
  color: #fff;
}
.legal-footer__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.legal-footer p { margin: 0; color: rgba(255,255,255,0.82); font-size: 13px; line-height: 1.5; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.legal-footer a { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }

@media (max-width: 680px) {
  .legal-header { padding: 14px 16px; }
  .legal-brand { font-size: 17px; }
  .legal-brand img { width: 32px; height: 32px; }
  .home-link { padding: 8px 13px; }
  .legal-main { width: min(100% - 32px, 980px); padding-top: 56px; }
  p, li { line-height: 1.85; }
  .legal-footer__inner { align-items: flex-start; flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
