/* ============================================
   privacy-policy.html 页面专属样式
   ============================================ */

/* ---- Page Section ---- */
.legal-page {
  padding: 72px 20px;
  background: #f5f7fa;
}

.legal-page__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Meta Badge ---- */
.legal-page__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.legal-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: 50px;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.45);
  color: #2e7d32;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.legal-page__date {
  font-size: 13px;
  color: #757575;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 7px 18px;
}

/* ---- Layout Grid ---- */
.legal-page__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* ---- Table of Contents ---- */
.legal-toc {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 26px 24px;
}

.legal-toc__title {
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(76, 175, 80, 0.25);
}

.legal-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-toc__list li {
  margin: 0 0 6px;
}

.legal-toc__list a {
  display: block;
  font-size: 13.5px;
  color: #616161;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.5;
  transition: color 0.2s ease, background 0.2s ease;
}

.legal-toc__list a:hover {
  color: #2e7d32;
  background: rgba(76, 175, 80, 0.08);
}

/* ---- Content Card ---- */
.legal-content {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 48px 52px;
}

.legal-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid #eeeeee;
}

.legal-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-family: "Archivo", sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 18px;
  padding-left: 16px;
  border-left: 4px solid #4caf50;
  line-height: 1.3;
}

.legal-section h3 {
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 24px 0 10px;
}

.legal-section p {
  font-size: 15px;
  color: #424242;
  line-height: 1.8;
  margin: 0 0 14px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-section ul li {
  font-size: 15px;
  color: #424242;
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal-section ul li:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: #4caf50;
  text-decoration: none;
  font-weight: 600;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* ---- Contact Block ---- */
.legal-contact {
  margin-top: 20px;
  background: #f5f7fa;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-contact__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.legal-contact__row i {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.12);
  color: #4caf50;
  font-size: 17px;
}

.legal-contact__row div {
  font-size: 14.5px;
  color: #555;
  line-height: 1.7;
}

.legal-contact__row div strong {
  display: block;
  font-size: 14px;
  color: #1a1a2e;
  margin-bottom: 2px;
}

.legal-contact__row div a {
  color: #4caf50;
  text-decoration: none;
  font-weight: 600;
}

.legal-contact__row div a:hover {
  text-decoration: underline;
}

/* ---- Bottom CTA ---- */
.legal-cta {
  padding: 72px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  text-align: center;
}

.legal-cta h2 {
  font-family: "Archivo", sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
}

.legal-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 30px;
}

.legal-cta .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-cta .btn-primary {
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  background: #4caf50;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.legal-cta .btn-primary:hover {
  background: #43a047;
  transform: translateY(-2px);
}

.legal-cta .btn-outline {
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  display: inline-block;
}

.legal-cta .btn-outline:hover {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.12);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .legal-page__grid {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    order: -1;
  }

  .legal-content {
    padding: 36px 30px;
  }
}

@media (max-width: 576px) {
  .legal-page {
    padding: 56px 16px;
  }

  .legal-page__meta {
    margin-bottom: 28px;
  }

  .legal-content {
    padding: 28px 22px;
    border-radius: 12px;
  }

  .legal-section h2 {
    padding-left: 12px;
  }
}
