/* ===== GuangShan Autos — Shared Legal Stylesheet ===== */

/* Scope isolation: prevent homepage section styles from leaking into legal pages */
.legal-page .legal-content section {
  background-color: transparent !important;
  color: inherit !important;
}

/* ---------- Legal Page Layout ---------- */
.legal-page {
  background: #F7F6F2;
  color: #22252D;
  font-size: 16px;
}

.legal-page .legal-header {
  background: linear-gradient(135deg, #1B1E26 0%, #242838 100%);
  padding: 100px 0 56px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-page .legal-header .container {
  max-width: 860px;
}

.legal-page .legal-header h1 {
  font-size: 40px;
  font-weight: 800;
  color: #E8E6E0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-page .legal-header .legal-meta {
  font-size: 14px;
  color: #959390;
}

.legal-page .legal-header .legal-meta a {
  color: #4C8BD9;
  font-weight: 600;
}

.legal-page .legal-header .legal-meta a:hover {
  text-decoration: underline;
}

.legal-page .legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

/* ---------- Table of Contents ---------- */
.legal-page .legal-toc {
  background: #FFFFFF;
  border: 1px solid #E4E2DC;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 44px;
}

.legal-page .legal-toc h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1B1E26;
  margin-bottom: 16px;
}

.legal-page .legal-toc ol {
  list-style-position: inside;
  columns: 2;
  column-gap: 32px;
}

.legal-page .legal-toc li {
  font-size: 14px;
  line-height: 2.1;
  break-inside: avoid;
}

.legal-page .legal-toc a {
  color: #4C8BD9;
  font-weight: 500;
  text-decoration: none;
}

.legal-page .legal-toc a:hover {
  text-decoration: underline;
  color: #3D73C0;
}

/* ---------- Legal Content Sections ---------- */
.legal-page .legal-content section {
  margin-bottom: 40px;
}

.legal-page .legal-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1B1E26;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #EEF2F9;
  letter-spacing: -0.01em;
}

.legal-page .legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #22252D;
  margin-bottom: 10px;
  margin-top: 20px;
}

.legal-page .legal-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #3A3D48;
  margin-bottom: 14px;
}

.legal-page .legal-content ul,
.legal-page .legal-content ol {
  margin: 0 0 16px 20px;
  line-height: 1.8;
}

.legal-page .legal-content li {
  font-size: 16px;
  color: #3A3D48;
  margin-bottom: 6px;
}

.legal-page .legal-content strong {
  color: #1B1E26;
}

.legal-page .legal-content a {
  color: #4C8BD9;
  text-decoration: none;
}

.legal-page .legal-content a:hover {
  text-decoration: underline;
}

/* ---------- Back to Top ---------- */
.legal-page .back-to-top {
  display: block;
  text-align: center;
  margin: 32px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #4C8BD9;
}

.legal-page .back-to-top:hover {
  text-decoration: underline;
}

/* ---------- Legal Footer ---------- */
.legal-page .site-footer {
  background: #15171F;
  padding: 32px 0 20px;
  color: #8C8A85;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.legal-page .site-footer a {
  color: #4C8BD9;
  font-weight: 500;
}

.legal-page .site-footer a:hover {
  text-decoration: underline;
}

/* ---------- Responsive (Legal) ---------- */
@media (max-width: 640px) {
  .legal-page .legal-header { padding: 80px 0 40px; }
  .legal-page .legal-header h1 { font-size: 30px; }
  .legal-page .legal-toc ol { columns: 1; }
  .legal-page .legal-content h2 { font-size: 22px; }
  .legal-page .legal-content { padding: 32px 16px 48px; }
}
