:root {
  --ink: #111;
  --muted: #555;
  --line: #d8d8d8;
  --soft: #f7f7f7;
  --page-width: 920px;
  --page-pad: clamp(18px, 4vw, 48px);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 12px;
  color: #fff;
  background: #111;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  display: flex;
  width: min(calc(100% - 2 * var(--page-pad)), var(--page-width));
  min-height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.legal-brand svg,
.legal-brand small {
  display: none;
}

.legal-brand span {
  display: block;
}

.back-link {
  color: #444;
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

.legal-landing,
.legal-document {
  width: min(calc(100% - 2 * var(--page-pad)), var(--page-width));
  margin: 0 auto;
}

.legal-landing {
  padding: 64px 0 88px;
}

.landing-hero {
  max-width: 820px;
}

.eyebrow {
  display: none;
}

.landing-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}

.landing-lead {
  margin: 22px 0 0;
  color: #333;
  font-size: 16px;
  line-height: 1.9;
}

.featured-path,
.subject-notice,
.consistency-note {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.featured-path strong,
.subject-notice strong {
  font-size: 15px;
}

.featured-path p,
.subject-notice p,
.consistency-note p {
  margin: 8px 0 0;
  line-height: 1.8;
}

.entity-grid,
.document-grid {
  display: block;
  margin-top: 42px;
  border-top: 1px solid #999;
}

.entity-card,
.document-card {
  display: grid;
  min-height: 0;
  padding: 22px 4px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.entity-card:hover,
.entity-card:focus-visible,
.document-card:hover,
.document-card:focus-visible {
  background: var(--soft);
}

.entity-card > span,
.document-card > span {
  color: #666;
  font-size: 13px;
}

.entity-card h2,
.document-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
}

.entity-card p,
.document-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.entity-card i,
.document-card i {
  color: #555;
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}

.consistency-note {
  margin-top: 38px;
}

.consistency-note h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}

.legal-document {
  max-width: 820px;
  padding: 58px 0 96px;
}

.document-heading {
  padding-bottom: 30px;
  text-align: center;
  border-bottom: 1px solid #999;
}

.document-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0;
}

.version-row {
  display: flex;
  margin-top: 20px;
  color: var(--muted);
  justify-content: center;
  gap: 8px 28px;
  flex-wrap: wrap;
  font-size: 13px;
}

.document-actions {
  display: flex;
  margin-top: 20px;
  justify-content: center;
}

.pdf-download {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid #555;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.pdf-download:hover,
.pdf-download:focus-visible {
  background: var(--soft);
  text-decoration: underline;
}

.document-body {
  padding-top: 34px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.document-body h2 {
  margin: 38px 0 12px;
  font-size: 20px;
  line-height: 1.6;
}

.document-body h3 {
  margin: 25px 0 8px;
  font-size: 17px;
  line-height: 1.7;
}

.document-body p {
  margin: 10px 0;
  text-align: left;
}

.document-body ol,
.document-body ul {
  margin: 10px 0;
  padding-left: 2em;
}

.document-body li {
  margin: 7px 0;
}

.operator-card {
  margin: 0 0 28px;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
}

.operator-card .operator-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}

.operator-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.operator-card p {
  margin: 3px 0;
  text-align: left;
}

.important-note {
  margin: 24px 0;
  padding: 17px 20px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.important-note strong {
  font-size: 16px;
}

.important-note p {
  margin-bottom: 0;
}

.featured-note {
  overflow-wrap: anywhere;
}

.table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.table-scroll-hint {
  display: none;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
}

th,
td {
  padding: 12px 13px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #bbb;
}

th {
  background: #f0f0f0;
  font-weight: 600;
}

.signature {
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid #999;
  text-align: right;
}

.signature p {
  margin: 3px 0;
  text-align: right;
}

.legal-footer {
  width: min(calc(100% - 2 * var(--page-pad)), var(--page-width));
  min-height: 86px;
  margin: 0 auto;
  padding: 22px 0;
  color: #666;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
}

.legal-footer p {
  margin: 3px 0;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .document-actions {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 16px;
  }

  .legal-header {
    min-height: 58px;
    gap: 12px;
  }

  .legal-brand {
    font-size: 14px;
  }

  .back-link {
    max-width: 48%;
    padding: 10px 0;
    line-height: 1.5;
    text-align: right;
  }

  .legal-landing {
    padding: 44px 0 66px;
  }

  .legal-document {
    padding: 42px 0 72px;
  }

  .entity-card,
  .document-card {
    padding: 18px 2px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .entity-card i,
  .document-card i {
    display: none;
  }

  .document-body {
    font-size: 16px;
    line-height: 1.95;
  }

  .document-body h2 {
    margin-top: 32px;
    font-size: 19px;
  }

  .operator-card,
  .important-note {
    padding: 15px 16px;
  }

  .table-scroll-hint {
    display: block;
    margin: 22px 0 8px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.6;
  }

  .table-wrap {
    margin-top: 8px;
    padding-bottom: 6px;
  }

  table {
    font-size: 14px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 18mm 16mm;
  }

  .skip-link,
  .legal-header,
  .document-actions,
  .table-scroll-hint,
  .legal-footer {
    display: none;
  }

  .legal-document {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .document-heading h1 {
    font-size: 24pt;
  }

  .document-body {
    font-size: 10.5pt;
    line-height: 1.75;
  }

  .document-body h2 {
    break-after: avoid;
    font-size: 15pt;
  }

  .operator-card,
  .important-note {
    background: #fff;
    border-color: #999;
    break-inside: avoid;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 8pt;
  }

  .signature {
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
