/* ==========================================================================
   Qujing LiuChaoYou E-commerce Co., Ltd. — Legal stylesheet
   Shared by privacy.html and terms-of-service.html
   ========================================================================== */

.legal-page {
  background-color: #0F120D;
  color: #EDF1E8;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.legal-page a {
  color: #A3E635;
  text-decoration: none;
}

.legal-page a:hover {
  color: #D9F99D;
}

/* ---------- Header ---------- */
.legal-header {
  background: linear-gradient(135deg, #0F120D 0%, #1C2116 55%, #84CC16 160%);
  border-bottom: 1px solid #2A311E;
  padding: 72px 24px 56px;
}

.legal-header__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header__crumb {
  color: #A3E635;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.legal-header h1 {
  color: #EDF1E8;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.legal-header__meta {
  color: #B6C2A6;
  font-size: 15px;
}

/* ---------- Content container ---------- */
.legal-content .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content {
  padding: 56px 0 40px;
}

/* ---------- Table of contents ---------- */
.toc {
  background-color: #161A11;
  border: 1px solid #2A311E;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.toc__title {
  color: #A3E635;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  color: #B6C2A6;
  font-size: 15px;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #A3E635;
  font-weight: 700;
  margin-right: 10px;
  font-size: 13px;
}

.toc a:hover {
  color: #D9F99D;
}

/* ---------- Sections ---------- */
.legal-content section {
  margin-bottom: 48px;
}

.legal-content section h2 {
  color: #EDF1E8;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2A311E;
}

.legal-content section h3 {
  color: #D9F99D;
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.legal-content section p {
  color: #B6C2A6;
  font-size: 16px;
  margin-bottom: 16px;
}

.legal-content section ul,
.legal-content section ol {
  color: #B6C2A6;
  font-size: 16px;
  margin: 0 0 16px 22px;
}

.legal-content section li {
  margin-bottom: 8px;
}

/* ---------- Scope isolation (must not bleed into legal pages) ---------- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Footer ---------- */
.legal-footer {
  border-top: 1px solid #2A311E;
  padding: 32px 0 24px;
}

.legal-footer .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-footer p {
  color: #87956F;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .toc ol {
    grid-template-columns: 1fr;
  }

  .legal-header {
    padding: 48px 0 40px;
  }
}
