:root { color-scheme: light; --ink:#18222b; --muted:#5c6975; --line:#dce4e2; --brand:#0d6f56; --brand-soft:#eaf6f0; --paper:#fff; --wash:#f4f7f6; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--wash); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; line-height: 1.75; }
a { color: inherit; }
.legal-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 clamp(18px, 5vw, 72px); border-bottom: 1px solid rgba(220,228,226,.9); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.legal-brand img { width: 29px; height: 29px; object-fit: contain; }
.legal-brand strong { font-size: 16px; letter-spacing: .03em; }
.legal-header nav { display: flex; align-items: center; gap: 8px; }
.legal-header nav a { padding: 7px 11px; border-radius: 6px; color: var(--muted); font-size: 13px; text-decoration: none; }
.legal-header nav a:hover { color: var(--brand); background: var(--brand-soft); }
.legal-header nav a.primary { color: #fff; background: var(--brand); font-weight: 700; }
.legal-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.legal-hero { padding: 72px 0 45px; }
.legal-hero > span,.section-kicker { color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.legal-hero h1 { margin: 9px 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.15; letter-spacing: -.02em; }
.legal-hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 16px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: #74817e; font-size: 12px; }
.legal-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 58px; align-items: start; padding-bottom: 72px; }
.legal-toc { position: sticky; top: 90px; display: grid; gap: 4px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.68); }
.legal-toc a { padding: 9px 10px; border-radius: 5px; color: var(--muted); font-size: 13px; text-decoration: none; }
.legal-toc a:hover { color: var(--brand); background: var(--brand-soft); }
.legal-content { min-width: 0; padding: 0 clamp(20px, 5vw, 56px); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 18px 50px rgba(28,55,47,.05); }
.legal-section { scroll-margin-top: 88px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { margin: 6px 0 16px; font-size: 26px; line-height: 1.25; }
.legal-section h3 { margin: 25px 0 5px; font-size: 16px; }
.legal-section p { margin: 9px 0; color: #44525c; font-size: 14px; }
.legal-section ul { margin: 10px 0; padding-left: 22px; color: #44525c; font-size: 14px; }
.legal-section li + li { margin-top: 5px; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.rule-grid div { display: grid; gap: 6px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #fbfdfc; }
.rule-grid strong { color: var(--brand); font-size: 14px; }
.rule-grid span { color: #52616a; font-size: 13px; line-height: 1.6; }
.legal-note { padding: 12px 14px !important; border-left: 3px solid #d0a12c; color: #6c5a2c !important; background: #fffbef; }
.legal-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; padding: 24px 18px 40px; color: #71807a; font-size: 12px; }
.legal-footer a { text-decoration: none; }
.legal-footer a:hover { color: var(--brand); }
@media (max-width: 760px) {
  .legal-header { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  .legal-header nav a:not(.primary) { display: none; }
  .legal-layout { grid-template-columns: 1fr; gap: 18px; }
  .legal-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-content { padding: 0 18px; }
  .legal-hero { padding-top: 48px; }
  .rule-grid { grid-template-columns: 1fr; }
}
