:root {
  color-scheme: light;
  --brand: #e5324f;
  --brand-deep: #b81f39;
  --ink: #161b24;
  --muted: #5f6978;
  --soft: #f4f6f9;
  --surface: #ffffff;
  --line: #dce2e9;
  --positive: #16835c;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(229, 50, 79, 0.28);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner,
.hero-inner,
.legal-shell,
.footer-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.header-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.header-nav a[aria-current="page"] {
  color: var(--brand);
}

.legal-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding: 42px 0 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.35;
}

h1 {
  margin-bottom: 12px;
  font-size: 34px;
  font-weight: 760;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.document-meta strong {
  color: var(--ink);
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: 54px;
  padding: 42px 0 72px;
}

.toc {
  align-self: start;
  position: sticky;
  top: 24px;
}

.toc-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 7px;
}

.toc a {
  display: block;
  padding: 3px 0 3px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.toc a:hover {
  border-left-color: var(--brand);
  color: var(--brand-deep);
}

.legal-content {
  min-width: 0;
}

.notice {
  margin: 0 0 34px;
  padding: 16px 18px;
  border-left: 4px solid var(--brand);
  background: #fff5f7;
  color: #4b2430;
}

.notice strong {
  color: var(--brand-deep);
}

.legal-section {
  scroll-margin-top: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: 23px;
  font-weight: 740;
}

.legal-section h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.legal-section p {
  margin: 10px 0;
}

.legal-section ul,
.legal-section ol {
  margin: 10px 0;
  padding-left: 1.45em;
}

.legal-section li + li {
  margin-top: 7px;
}

.data-list {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.data-item {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.data-item dt {
  color: var(--ink);
  font-weight: 700;
}

.data-item dd {
  margin: 0;
  color: var(--muted);
}

.contact-block {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.contact-block p {
  margin: 4px 0;
}

.status-note {
  color: var(--positive);
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 760px) {
  .header-inner,
  .hero-inner,
  .legal-shell,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 60px;
  }

  .header-nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero-inner {
    padding: 32px 0 28px;
  }

  h1 {
    font-size: 29px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0 54px;
  }

  .toc {
    position: static;
  }

  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
  }

  .toc li + li {
    margin-top: 0;
  }

  .data-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    display: none;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }
}

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

@media print {
  .site-header,
  .toc,
  .site-footer {
    display: none;
  }

  .legal-hero {
    background: #ffffff;
  }

  .legal-shell {
    display: block;
    width: 100%;
    padding-top: 24px;
  }
}
