/* ==========================================================================
   Ouxiang — shared legal stylesheet (privacy.html + terms-of-service.html)
   Dark theme · Electric Violet / Rose accent
   ========================================================================== */

/* Legal pages load ONLY this stylesheet, so define the body background here. */
.legal-page {
  background-color: #0A0C14;
  color: #E8EAED;
  font-size: 16px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

/* ----- Scope isolation: never let homepage section styling bleed in ----- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ----- Header ----- */
.legal-header {
  background: linear-gradient(135deg, #161A2B 0%, #10131F 100%);
  border-bottom: 1px solid #1E2335;
  padding: 34px 0 30px;
}
.legal-header .container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #E8EAED;
}
.legal-header .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #7C5CFF 0%, #FF5C8A 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: "Sora", "Segoe UI", system-ui, sans-serif;
}
.legal-header .brand-name {
  font-family: "Sora", "Segoe UI", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.legal-header .brand-dot {
  color: #FF5C8A;
}
.legal-header h1 {
  font-family: "Sora", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 22px 0 8px;
}
.legal-header .legal-updated {
  color: #A6ADBF;
  font-size: 0.9rem;
  margin: 0;
}

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

/* ----- Table of contents ----- */
.legal-toc {
  background: #161A2B;
  border: 1px solid #262C42;
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 40px;
}
.legal-toc h2 {
  font-family: "Sora", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9B7BFF;
  margin: 0 0 16px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal-toc a {
  color: #A6ADBF;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}
.legal-toc a:hover {
  color: #9B7BFF;
}

/* ----- Section text ----- */
.legal-content section {
  margin-bottom: 44px;
  padding: 0;
}
.legal-content h2 {
  font-family: "Sora", "Segoe UI", system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #E8EAED;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1E2335;
}
.legal-content h3 {
  font-family: "Sora", "Segoe UI", system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: #E8EAED;
  margin: 22px 0 10px;
}
.legal-content p {
  color: #A6ADBF;
  margin: 0 0 16px;
  font-size: 1rem;
}
.legal-content strong {
  color: #E8EAED;
}
.legal-content ul {
  margin: 0 0 18px;
  padding-left: 24px;
  color: #A6ADBF;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content a {
  color: #9B7BFF;
}
.legal-content a:hover {
  color: #FF8FB0;
}

/* ----- Footer ----- */
.legal-footer {
  background: #10131F;
  border-top: 1px solid #1E2335;
  padding: 30px 0;
}
.legal-footer .container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.legal-footer p {
  color: #7C8398;
  font-size: 0.9rem;
  margin: 0;
}
.legal-footer nav a,
.legal-footer .legal-footer-links a {
  color: #A6ADBF;
  font-size: 0.9rem;
  margin-left: 22px;
}
.legal-footer a:hover {
  color: #9B7BFF;
}

@media (max-width: 600px) {
  .legal-footer .container {
    flex-direction: column;
    text-align: center;
  }
  .legal-footer nav a,
  .legal-footer .legal-footer-links a {
    margin: 0 11px;
  }
}
