/* ============================================================
   XINMAOTRADE — shared legal pages stylesheet (privacy + terms)
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #131014;
  color: #F2EDF0;
  font-size: 16px;
  line-height: 1.75;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: #C9A227;
}

/* ------------------------------------------------------------
   Legal header — solid background, strongly contrasting h1
   ------------------------------------------------------------ */

.legal-header {
  background-color: #211C12;
  border-bottom: 3px solid #C9A227;
  padding: 30px 0 32px;
}

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

.legal-brand {
  display: inline-block;
  color: #EFE3C4;
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 15px;
  text-decoration: none;
}

.legal-brand:hover {
  color: #C9A227;
}

.legal-header h1 {
  color: #C9A227;
  font-size: 40px;
  line-height: 1.15;
  margin: 16px 0 6px;
  font-weight: 800;
}

.legal-updated {
  color: #EFE3C4;
  margin: 0;
  font-size: 14px;
}

/* ------------------------------------------------------------
   Main legal content
   ------------------------------------------------------------ */

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

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

/* Scope isolation: never allow a background colour on legal
   sections; only the header and footer carry surfaces. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* Table of contents */
.toc {
  background-color: #211C12;
  border: 1px solid #C9A227;
  border-radius: 6px;
  padding: 22px 26px;
  margin-bottom: 44px;
}

.toc-title {
  color: #C9A227;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
}

.toc-list {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 48px;
}

.toc-list li {
  margin: 5px 0;
}

.toc-list a {
  text-decoration: none;
  color: #EFE3C4;
}

.toc-list a:hover {
  color: #C9A227;
}

/* Legal sections */
.legal-content section {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid #3a2f18;
}

.legal-content section:last-of-type {
  border-bottom: none;
}

.legal-content section h2 {
  color: #C9A227;
  font-size: 22px;
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 4px solid #C9A227;
  font-weight: 800;
}

.legal-content section p {
  margin: 0 0 12px;
  color: #F2EDF0;
}

.legal-content section ul,
.legal-content section ol {
  color: #F2EDF0;
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal-content section li {
  margin: 4px 0;
}

/* ------------------------------------------------------------
   Legal footer
   ------------------------------------------------------------ */

.legal-footer {
  background-color: #211C12;
  border-top: 1px solid #C9A227;
  padding: 28px 0;
}

.legal-footer .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer p {
  margin: 6px 0;
  color: #EFE3C4;
  font-size: 14px;
}

.legal-footer a {
  color: #C9A227;
  text-decoration: none;
}

.legal-footer a:hover {
  color: #EFE3C4;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 760px) {
  .legal-header h1 {
    font-size: 30px;
  }

  .toc-list {
    columns: 1;
  }

  .legal-content section h2 {
    font-size: 20px;
  }
}
