/* ==========================================================================
   LIANGSHENG INTERNATIONAL LIMITED — legal pages stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html
   Dark theme · royal-blue accent · warm-gold secondary
   ========================================================================== */

.legal-page {
  background-color: #0B0E14;
  color: #E8EAED;
  font-size: 16px;
  line-height: 1.75;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.legal-page ul {
  list-style: none;
}

/* ---- Header (a <header>, never a <section>) ---- */
.legal-page .legal-header {
  background: linear-gradient(135deg, #0F1420 0%, #131B2C 100%);
  border-bottom: 1px solid #232C3E;
}

.legal-page .legal-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-page .legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #E8EAED;
}

.legal-page .legal-brand .brand-chip {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6 60%, #60A5FA);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.legal-page .legal-brand em {
  font-style: normal;
  color: #60A5FA;
}

.legal-page .legal-home-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: #60A5FA;
  padding: 10px 18px;
  border: 1px solid #2E3A52;
  border-radius: 9px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.legal-page .legal-home-link:hover {
  border-color: #3B82F6;
  color: #93C5FD;
}

/* ---- Title block ---- */
.legal-page .legal-hero {
  background: linear-gradient(180deg, #0F1420 0%, #0B0E14 100%);
  border-bottom: 1px solid #232C3E;
  padding: 56px 0 48px;
}

.legal-page .legal-hero .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-page .legal-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #E8EAED;
}

.legal-page .legal-hero .legal-kicker {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E2C476;
}

.legal-page .legal-updated {
  margin-top: 16px;
  color: #96A0B2;
  font-size: 0.95rem;
}

/* ---- Table of contents ---- */
.legal-page .legal-content {
  padding: 48px 0 72px;
}

.legal-page .legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-page .toc {
  padding: 26px 28px;
  border: 1px solid #232C3E;
  border-radius: 14px;
  background-color: #121826;
  margin-bottom: 48px;
}

.legal-page .toc h2 {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E2C476;
  margin-bottom: 16px;
}

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

.legal-page .toc ol li {
  counter-increment: toc;
}

.legal-page .toc ol li a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: #C3CAD6;
  font-size: 0.94rem;
  line-height: 1.5;
  padding: 4px 0;
}

.legal-page .toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  color: #60A5FA;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.legal-page .toc ol li a:hover {
  color: #93C5FD;
}

/* ---- Scope isolation: never paint dark backgrounds over legal text ---- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---- Content sections ---- */
.legal-page .legal-content section {
  margin-bottom: 44px;
}

.legal-page .legal-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #60A5FA;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #232C3E;
}

.legal-page .legal-content h3 {
  font-size: 1.14rem;
  font-weight: 700;
  color: #E8EAED;
  margin: 22px 0 10px;
}

.legal-page .legal-content p {
  color: #C3CAD6;
  margin-bottom: 16px;
}

.legal-page .legal-content ul {
  margin: 0 0 20px 4px;
  padding-left: 22px;
  list-style: disc;
}

.legal-page .legal-content ul li {
  color: #C3CAD6;
  margin-bottom: 10px;
  padding-left: 4px;
}

.legal-page .legal-content ul li::marker {
  color: #3B82F6;
}

.legal-page .legal-content strong {
  color: #E8EAED;
  font-weight: 700;
}

.legal-page .legal-content .legal-note {
  padding: 18px 22px;
  border-left: 3px solid #E2C476;
  background-color: #121826;
  border-radius: 0 10px 10px 0;
  color: #C3CAD6;
  margin: 20px 0;
}

.legal-page .legal-content .legal-note strong {
  color: #E2C476;
}

/* ---- Footer ---- */
.legal-page .legal-footer {
  border-top: 2px solid #3B82F6;
  background-color: #0F1420;
  padding: 56px 0 40px;
}

.legal-page .legal-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-page .legal-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.legal-page .legal-footer h4 {
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8EAED;
  margin-bottom: 18px;
}

.legal-page .legal-footer p {
  color: #96A0B2;
  font-size: 0.94rem;
  max-width: 340px;
}

.legal-page .legal-footer ul li {
  margin-bottom: 12px;
  color: #96A0B2;
  font-size: 0.94rem;
}

.legal-page .legal-footer ul a {
  color: #96A0B2;
}

.legal-page .legal-footer ul a:hover {
  color: #93C5FD;
}

.legal-page .legal-footer ul a strong {
  color: #C3CAD6;
  font-weight: 600;
}

.legal-page .legal-footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #232C3E;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #6E7A8D;
  font-size: 0.88rem;
}

.legal-page .legal-footer-bottom .legal-links {
  display: flex;
  gap: 24px;
}

.legal-page .legal-footer-bottom .legal-links a {
  color: #96A0B2;
}

.legal-page .legal-footer-bottom .legal-links a:hover {
  color: #93C5FD;
}

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

  .legal-page .legal-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-page .legal-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
