:root {
  color-scheme: light;
  --ink: #20242a;
  --muted: #626a73;
  --line: #d9dee4;
  --accent: #176b57;
  --accent-soft: #edf7f3;
  --paper: #ffffff;
  --page: #f4f6f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 32px, 920px);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.language-switch {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  background: #eef1f2;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.language-switch button {
  min-width: 48px;
  min-height: 32px;
  padding: 4px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(24, 31, 37, 0.12);
}

.legal-document[hidden] {
  display: none;
}

main {
  width: min(100% - 32px, 920px);
  margin: 32px auto 56px;
  padding: 48px 56px;
  background: var(--paper);
  border: 1px solid var(--line);
}

h1,
h2,
h3 {
  line-height: 1.4;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
}

h2 {
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
}

h3 {
  margin: 28px 0 8px;
  font-size: 17px;
}

p {
  margin: 12px 0;
}

ul,
ol {
  margin: 12px 0;
  padding-left: 24px;
}

li + li {
  margin-top: 6px;
}

.document-meta {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.document-meta span {
  display: inline-block;
  margin-right: 18px;
}

.lead {
  font-size: 17px;
}

.toc {
  margin: 28px 0 36px;
  padding: 18px 22px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  columns: 2;
  column-gap: 36px;
  margin: 0;
}

.toc li {
  break-inside: avoid;
}

.placeholder {
  color: #a33a2b;
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  margin: 18px 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  min-width: 120px;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

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

.important {
  padding: 16px 18px;
  background: #fff8e7;
  border-left: 4px solid #b37616;
}

.site-footer {
  width: min(100% - 32px, 920px);
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 58px;
    align-items: flex-start;
    padding: 12px 0;
  }

  .header-actions {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
  }

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

  .language-switch button {
    min-height: 28px;
    padding: 2px 9px;
  }

  main {
    width: 100%;
    margin: 0 0 32px;
    padding: 30px 20px 40px;
    border-width: 0 0 1px;
  }

  h1 {
    font-size: 27px;
  }

  h2 {
    margin-top: 38px;
    font-size: 20px;
  }

  .toc ol {
    columns: 1;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 12pt;
  }

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

  .legal-document[hidden] {
    display: none;
  }

  main {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
  }

  h2 {
    break-after: avoid;
  }

  table {
    break-inside: avoid;
  }
}
