.document-page {
  background:
    radial-gradient(circle at 78% 8%, rgba(76, 205, 231, 0.1), transparent 24%),
    var(--night);
}

.document-header {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.document-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(90px, 11vw, 160px) var(--gutter) 130px;
}

.document-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  min-height: 44vh;
  padding-bottom: clamp(65px, 9vw, 110px);
  border-bottom: 1px solid var(--line);
}

.document-kicker {
  align-self: start;
  margin: 6px 0 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.document-title h1 {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 1;
}

.document-title > p {
  max-width: 700px;
  margin: 30px 0 0;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 300;
  line-height: 1.8;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 30px;
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(40px, 8vw, 120px);
  padding-top: clamp(70px, 9vw, 120px);
}

.document-nav {
  position: sticky;
  top: 28px;
  align-self: start;
}

.document-nav p {
  margin: 0 0 20px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.document-nav a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease, transform 160ms ease;
}

.document-nav a:hover,
.document-nav a:focus-visible {
  color: var(--cyan-soft);
  transform: translateX(3px);
}

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

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

.document-section + .document-section {
  padding-top: 64px;
}

.document-section h2 {
  margin: 0 0 24px;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 350;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.document-section h3 {
  margin: 34px 0 13px;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 500;
}

.document-section p,
.document-section li {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
}

.document-section p {
  margin: 0 0 18px;
}

.document-section ul,
.document-section ol {
  margin: 20px 0;
  padding-left: 22px;
}

.document-section li + li {
  margin-top: 9px;
}

.document-section strong {
  color: var(--ink);
  font-weight: 500;
}

.document-section a,
.support-action a {
  color: var(--cyan-soft);
  text-decoration: underline;
  text-decoration-color: rgba(169, 232, 243, 0.35);
  text-underline-offset: 4px;
}

.support-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.support-action:last-child {
  border-bottom: 1px solid var(--line);
}

.support-action h3 {
  margin: 0 0 8px;
}

.support-action p {
  margin: 0;
}

.support-action > a {
  min-width: max-content;
  font-size: 14px;
}

.privacy-note {
  padding: 22px 24px;
  border-left: 2px solid var(--cyan);
  background: rgba(97, 211, 234, 0.05);
}

.privacy-note p:last-child {
  margin-bottom: 0;
}

.language-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--cyan-soft);
  font-size: 13px;
}

@media (max-width: 820px) {
  .document-hero,
  .document-layout {
    grid-template-columns: 1fr;
  }

  .document-hero {
    min-height: 36vh;
  }

  .document-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
  }

  .document-nav p {
    flex-basis: 100%;
    margin-bottom: 6px;
  }

  .document-nav a {
    padding: 5px 0;
  }
}

@media (max-width: 640px) {
  .document-main {
    padding-top: 70px;
    padding-bottom: 90px;
  }

  .document-hero {
    gap: 24px;
  }

  .document-title h1 {
    font-size: 58px;
  }

  .document-title > p,
  .document-section p,
  .document-section li {
    font-size: 15px;
  }

  .document-section {
    padding-bottom: 48px;
  }

  .document-section + .document-section {
    padding-top: 48px;
  }

  .support-action {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
