/* ========== 法律文档页（仿 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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, 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;
}

.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 a {
  color: #999;
  text-decoration: none;
}

.legal-page-footer a:hover {
  color: #ca0c16;
}

@media (max-width: 768px) {
  .legal-document {
    padding: 24px 16px 40px;
  }

  .legal-title {
    font-size: 20px;
  }

  .legal-date {
    margin-bottom: 24px;
  }
}
