:root {
  --ink: #2d2540;
  --muted: #7e7690;
  --purple: #7e66db;
  --purple-dark: #4d3f82;
  --lavender: #f8f5ff;
  --line: rgba(126, 102, 219, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--lavender); font: 15px/1.9 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }

.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-header, .legal-content, .legal-footer { width: min(1240px, 100%); margin: 0 auto; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding: 0 32px; }
.legal-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font: 800 20px/1.2 "Noto Serif SC", serif; letter-spacing: .04em; white-space: nowrap; }
.legal-logo { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
.legal-download { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--purple-dark); background: rgba(255,255,255,.58); font-size: 13px; font-weight: 700; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.legal-download:hover { background: #fff; box-shadow: 0 8px 18px rgba(88,74,147,.1); transform: translateY(-1px); }

.legal-content { flex: 1; margin-top: 18px; margin-bottom: 42px; padding: 42px 48px 58px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 24px 64px rgba(88,74,147,.1); }
.legal-content h1 { margin: 0; color: #282331; font: 800 32px/1.3 "Noto Serif SC", serif; letter-spacing: -.03em; }
.legal-content h2 { margin: 30px 0 6px; color: #302a3b; font: 700 18px/1.5 "Noto Serif SC", serif; }
.legal-content p { margin: 7px 0; color: #615a6e; }
.legal-content .updated { margin-top: 8px; color: #9a93a8; font-size: 13px; }
.legal-content .notice { margin-top: 22px; padding: 12px 14px; border-radius: 10px; color: #a04f5b; background: #fff3f0; font-size: 13px; }

.legal-footer { padding: 40px 32px 24px; }
.legal-footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-bottom: 42px; }
.legal-footer-main p { margin: 2px 0 0; color: var(--muted); font: 500 14px/1.8 "Noto Serif SC", serif; }
.legal-footer-links { display: flex; gap: 28px; color: #716a82; font-size: 13px; }
.legal-footer-links a, .legal-footer-bottom a { transition: color .2s ease; }
.legal-footer-links a:hover, .legal-footer-bottom a:hover { color: var(--purple); }
.legal-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); color: #a09aad; font-size: 11px; }
.legal-footer-bottom > span:last-child { display: flex; flex-wrap: wrap; gap: 22px; }

@media (max-width: 680px) {
  .legal-header { min-height: 72px; padding: 0 20px; }
  .legal-brand { font-size: 18px; }
  .legal-download { min-height: 38px; padding: 0 13px; font-size: 12px; }
  .legal-content { width: calc(100% - 40px); margin-top: 12px; margin-bottom: 26px; padding: 30px 22px 42px; border-radius: 18px; }
  .legal-content h1 { font-size: 28px; }
  .legal-content h2 { margin-top: 26px; font-size: 17px; }
  .legal-content p { font-size: 14px; }
  .legal-footer { padding: 36px 20px 22px; }
  .legal-footer-main { flex-direction: column; gap: 22px; padding-bottom: 32px; }
  .legal-footer-links { flex-wrap: wrap; gap: 14px 20px; }
  .legal-footer-bottom { flex-direction: column; gap: 12px; }
  .legal-footer-bottom > span:last-child { row-gap: 8px; }
}
