/* ========== 法律文档页（仿 CSDN marketing 协议页） ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

.page-legal {
  min-height: 100vh;
  background: #fff;
  color: #333;
  font-family: "Noto Sans SC", "PingFang SC", -apple-system, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 28px;
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-document {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.legal-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: #000;
  text-align: center;
  margin-bottom: 12px;
}

.legal-date {
  font-size: 14px;
  line-height: 28px;
  color: #999;
  text-align: center;
  margin-bottom: 32px;
}

.version-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  vertical-align: 1px;
}

.legal-body {
  font-size: 14px;
  line-height: 28px;
  color: #333;
  word-break: break-word;
}

.legal-body p {
  margin-bottom: 14px;
  text-align: justify;
  text-justify: inter-ideograph;
}

.legal-body h2 {
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  color: #333;
  margin: 24px 0 14px;
  text-align: left;
}

.legal-body h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  color: #333;
  margin: 18px 0 10px;
}

.legal-body strong,
.legal-body b {
  font-weight: 700;
  color: #333;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 14px 28px;
  padding: 0;
}

.legal-body li {
  margin-bottom: 6px;
  text-align: justify;
  text-justify: inter-ideograph;
}

.legal-body a {
  color: #ca0c16;
  text-decoration: none;
}

.legal-body a:hover {
  text-decoration: underline;
}

.legal-highlight {
  margin-bottom: 14px;
  text-align: justify;
  text-justify: inter-ideograph;
}

.legal-page-footer {
  padding: 24px 16px 32px;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  color: #999;
  border-top: 1px solid #f0f0f0;
}

.legal-page-footer p {
  margin: 0;
}

.legal-page-footer .footer-beian {
  margin-bottom: 5px;
}

.legal-page-footer .footer-version {
  margin-top: 4px;
}

.legal-page-footer a {
  color: #999;
  text-decoration: none;
}

.legal-page-footer .footer-beian a,
.legal-page-footer .footer-copy,
.legal-page-footer .footer-version a {
  color: #b0b4bb;
  font-size: 12px;
}

.legal-page-footer a:hover {
  color: #ca0c16;
}

.legal-page-footer .footer-beian a:link,
.legal-page-footer .footer-beian a:visited,
.legal-page-footer .footer-version a:link,
.legal-page-footer .footer-version a:visited {
  color: #b0b4bb;
}

.legal-page-footer .footer-beian a:focus {
  color: #b0b4bb;
  outline: none;
}

.legal-page-footer .footer-beian a:hover,
.legal-page-footer .footer-beian a:active,
.legal-page-footer .footer-version a:hover,
.legal-page-footer .footer-version a:active,
.legal-page-footer .footer-version a:focus {
  color: #1a1a1a;
}

@media (max-width: 768px) {
  .legal-document {
    padding: 24px 16px 40px;
  }

  .legal-title {
    font-size: 20px;
  }

  .legal-date {
    margin-bottom: 24px;
  }
}
