/* 法律与昭序支持页：以清晰阅读为主，公共主题由 site-theme.css 统一。 */
:root {
  color-scheme: light;
  --ink: #17353c;
  --muted: #53676c;
  --paper: #f8faf9;
  --surface: #ffffff;
  --charcoal: #17353c;
  --warm-white: #f8faf9;
  --accent: #2f675f;
  --accent-hover: #24554f;
  --line: rgba(23, 53, 60, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  min-width: 0;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
h1, h2, h3, p, dl, dd, ol, ul { margin-top: 0; }
h1, h2, h3 { font-family: inherit; font-weight: 650; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 249, 0.96);
  backdrop-filter: blur(16px);
}
.nav {
  display: flex;
  width: min(1120px, calc(100% - 48px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0 auto;
  padding: 12px 0;
}
.brand, .brand img { display: block; width: 180px; max-width: 100%; height: auto; }
.brand { flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.nav-links a { display: inline-flex; min-height: 40px; align-items: center; color: var(--ink); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }

.legal-hero {
  padding: 76px max(24px, calc((100vw - 1120px) / 2)) 66px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, #ffffff 0%, #f2f8f5 66%, #f0eef8 100%);
  color: var(--ink);
}
.eyebrow { margin-bottom: 18px; color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: 0.02em; }
h1 { max-width: 820px; margin-bottom: 22px; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.3; letter-spacing: -0.025em; }
.hero-lead { max-width: 760px; margin-bottom: 28px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.document-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: 14px; }
.document-meta span { overflow-wrap: anywhere; }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 88px;
}
.table-of-contents {
  position: sticky;
  top: 112px;
  align-self: start;
  max-height: calc(100svh - 140px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--surface);
}
.table-of-contents strong { display: block; margin-bottom: 14px; font-size: 16px; }
.table-of-contents ol { margin-bottom: 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.table-of-contents li + li { margin-top: 4px; }
.table-of-contents a { display: block; padding: 5px 0; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.table-of-contents a:hover { color: var(--accent); text-decoration: underline; }
.legal-document { min-width: 0; }
.summary-card, .notice-card {
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 26px 28px;
  background: #ecf5f0;
}
.notice-card { background: #f0eef8; }
.summary-card h2, .notice-card h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.5; }
.summary-card p:last-child, .notice-card p:last-child { margin-bottom: 0; }
.legal-document section { scroll-margin-top: 0; border-top: 1px solid var(--line); padding: 36px 0 12px; }
.legal-document section:first-of-type { border-top: 0; padding-top: 0; }
h2 { margin-bottom: 20px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.5; }
h3 { margin: 26px 0 12px; font-size: 18px; line-height: 1.6; }
.legal-document p, .legal-document li, .legal-document dd, .legal-document dt { overflow-wrap: anywhere; font-size: 16px; line-height: 1.8; }
.legal-document p, .legal-document ul, .legal-document ol, .legal-document dl { margin-bottom: 18px; }
.legal-document ul, .legal-document ol { padding-left: 24px; }
.legal-document li + li { margin-top: 8px; }
.legal-document dt { margin-top: 16px; font-weight: 650; }
.legal-document dd { margin-left: 0; color: var(--muted); }
.muted { color: var(--muted); }
.data-table { display: grid; gap: 1px; margin: 26px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.data-row { display: grid; grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1.55fr); gap: 22px; padding: 22px; background: var(--surface); }
.data-row > * { min-width: 0; overflow-wrap: anywhere; }
.data-row strong { font-size: 15px; line-height: 1.8; }
.data-row p { margin-bottom: 0; color: var(--muted); font-size: 16px; }
.contact-panel { margin-top: 44px; border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--surface); }
.contact-panel h2 { margin-bottom: 14px; font-size: 22px; }
.contact-panel p:last-child { margin-bottom: 0; }

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 42px max(24px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}
.site-footer > * { min-width: 0; }
.site-footer img { display: block; width: 190px; max-width: 100%; height: auto; }
.footer-content { text-align: right; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; font-size: 14px; }
.footer-links a { color: var(--ink); }
.footer-content p { margin-bottom: 5px; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; width: min(760px, calc(100% - 40px)); padding: 42px 0 64px; }
  .table-of-contents { position: static; max-height: none; }
  .table-of-contents ol { columns: 2; column-gap: 32px; }
  .table-of-contents li { break-inside: avoid; }
  .site-footer { flex-direction: column; }
  .footer-content { text-align: left; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .legal-hero { padding: 44px 20px 40px; }
  h1 { font-size: clamp(32px, 8.5vw, 44px); line-height: 1.35; }
  .hero-lead { font-size: 16px; }
  .document-meta { flex-direction: column; gap: 6px; font-size: 13px; }
  .table-of-contents ol { columns: 1; }
  .summary-card, .notice-card, .table-of-contents, .contact-panel { padding: 22px; }
  .legal-document section { scroll-margin-top: 0; padding-top: 30px; }
  .data-row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .site-footer { padding: 34px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
