:root {
  color-scheme: light;
  --text: #202124;
  --muted: #70757a;
  --line: #e4e7e9;
  --link: #167b57;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 0;
  margin: 0;
  background: #ffffff;
}

body {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--text);
  transform: translateY(-160%);
}

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

.document-frame {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 44px 28px 72px;
}

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

.document-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  min-width: 0;
  margin: 0;
  font-size: 29px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-align: center;
}

.document-meta {
  flex: none;
  align-self: flex-end;
  max-width: 100%;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.document-meta div {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 0.45em;
}

.document-meta dt,
.document-meta dd {
  margin: 0;
}

.document-meta dt::after {
  content: "：";
}

.document-body {
  padding-top: 26px;
}

.document-body h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.5;
}

.document-body h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.6;
}

.document-body p,
.document-body ul,
.document-body ol {
  margin: 0 0 14px;
}

.document-body ul,
.document-body ol {
  padding-left: 1.45em;
}

.document-body li + li {
  margin-top: 8px;
}

.document-body li > p {
  margin: 0;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.not-found strong {
  display: block;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 64px;
  line-height: 1;
}

.not-found h1 {
  margin: 16px 0 8px;
  font-size: 24px;
}

.not-found p {
  margin: 0;
  color: var(--muted);
}

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

  .document-frame {
    padding: 28px 20px 52px;
  }

  .document-header {
    gap: 14px;
    padding-bottom: 18px;
  }

  .document-header h1 {
    font-size: 24px;
  }

  .document-body {
    padding-top: 22px;
  }

  .document-body h2 {
    margin-top: 30px;
    font-size: 18px;
  }
}

@media print {
  .skip-link {
    display: none;
  }

  .document-frame {
    width: 100%;
    padding: 0;
  }
}
