/* ============ 法律条款页（用户服务协议 / 隐私政策） ============ */

/* --- 页面顶部横幅 --- */
.legal-hero {
  position: relative;
  background: linear-gradient(160deg, #14081f 0%, #2b1260 55%, #5521b8 100%);
  padding: 150px 24px 70px;
  text-align: center;
  overflow: hidden;
}

.legal-hero::before,
.legal-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.legal-hero::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(253, 158, 1, .18) 0%, transparent 70%);
}

.legal-hero::after {
  width: 380px;
  height: 380px;
  left: -140px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(253, 158, 1, .12) 0%, transparent 70%);
}

.legal-hero h1 {
  position: relative;
  z-index: 2;
  font-size: 2.4rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 14px;
}

.legal-hero .legal-sub {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, .68);
  font-size: .95rem;
  max-width: 720px;
  margin: 0 auto;
}

.legal-update {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 20px;
  padding: 6px 18px;
  font-size: .82rem;
  color: #fd9e01;
  border: 1px solid rgba(253, 158, 1, .45);
  border-radius: 50px;
  background: rgba(253, 158, 1, .08);
}

/* --- 正文 --- */
.legal-body {
  background: #f8f9ff;
  padding: 60px 0 90px;
}

.legal-doc {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(85, 33, 184, .06);
  padding: 56px 64px;
  max-width: 920px;
  margin: 0 auto;
}

.legal-doc .intro {
  color: #555;
  font-size: .95rem;
  line-height: 2;
  margin-bottom: 24px;
}

.legal-doc .intro p {
  margin-bottom: 12px;
  text-align: justify;
}

.legal-doc .intro p:last-child {
  margin-bottom: 0;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 1.18rem;
  color: #1a1a2e;
  font-weight: 700;
  padding-left: 16px;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, #5521b8, #fd9e01) 1;
  border-image-slice: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}

.legal-section p {
  color: #555;
  font-size: .95rem;
  line-height: 2;
  margin-bottom: 12px;
  text-align: justify;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

/* 重点强调（文档内的加粗） */
.legal-doc strong {
  color: #5521b8;
  font-weight: 600;
}

/* 重要提示框 */
.legal-notice {
  background: linear-gradient(135deg, rgba(85, 33, 184, .06), rgba(253, 158, 1, .06));
  border: 1px solid rgba(85, 33, 184, .14);
  border-left: 4px solid #5521b8;
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 36px;
}

.legal-notice p {
  color: #4a4a5a;
  font-size: .95rem;
  line-height: 2;
  margin-bottom: 10px;
  text-align: justify;
}

.legal-notice p:last-child {
  margin-bottom: 0;
}

.legal-notice p strong {
  color: #5521b8;
  font-weight: 700;
}

/* 章节内子标题（如 1. 直接收集的信息） */
.legal-section h3 {
  font-size: 1.02rem;
  color: #1a1a2e;
  font-weight: 600;
  margin: 20px 0 8px;
}

.legal-section h3 + p,
.legal-section h3 + ul {
  margin-top: 8px;
}

/* 条款列表 */
.legal-section ul,
.legal-section ol {
  margin: 4px 0 12px;
  padding-left: 0;
  list-style: none;
}

.legal-section ul li,
.legal-section ol li {
  position: relative;
  padding: 0 0 4px 24px;
  color: #555;
  font-size: .95rem;
  line-height: 2;
  text-align: justify;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5521b8, #fd9e01);
}

.legal-section ol {
  counter-reset: item;
}

.legal-section ol li::before {
  content: '（' counter(item) '）';
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: #5521b8;
  white-space: nowrap;
}

/* 提示占位文本（内容由用户自行填写） */
.legal-section .placeholder {
  color: #b0a8c0;
  background: #f7f5fb;
  border: 1px dashed #d8d0e8;
  border-radius: 8px;
  padding: 14px 18px;
  font-style: italic;
  font-size: .92rem;
  text-align: left;
}

.legal-footer-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f5;
  text-align: center;
  font-size: .9rem;
}

.legal-footer-links a {
  color: #5521b8;
  margin: 0 10px;
  transition: color .3s;
}

.legal-footer-links a:hover {
  color: #fd9e01;
}

.legal-footer-links .sep {
  color: #ccc;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .legal-hero {
    padding: 120px 16px 50px;
  }

  .legal-hero h1 {
    font-size: 1.7rem;
    letter-spacing: 2px;
  }

  .legal-body {
    padding: 30px 0 60px;
  }

  .legal-doc {
    padding: 32px 22px;
    border-radius: 14px;
  }

  .legal-section h2 {
    font-size: 1.08rem;
  }

  .legal-section p {
    font-size: .92rem;
  }
}

@media (max-width: 480px) {
  .legal-hero h1 {
    font-size: 1.5rem;
  }

  .legal-doc {
    padding: 26px 18px;
  }
}
