/* ============================================================
   Tongshan Qiaozhong Trading Co., Ltd. — shared LEGAL stylesheet
   Loaded by privacy.html and terms-of-service.html ONLY.
   Defines its own page background and text colors (strong contrast).
   Palette: ZI-DEEP #6E2E48 ground, ROPE-GREY #A8B4BC text.
   No rgba, no opacity, no gradients on text, no semi-transparent color.
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  margin: 0;
  padding: 0;
  background-color: #6E2E48;
  color: #A8B4BC;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Legal header ---------- */
.legal-header {
  background-color: #471C2D;
  border-bottom: 3px solid #A8B4BC;
  padding: 24px 0;
}

.legal-header__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-header__brand {
  color: #A8B4BC;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.legal-header__brand a {
  color: #A8B4BC;
}

.legal-header__brand a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-header__home {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #3A1826;
  background-color: #A8B4BC;
  padding: 10px 18px;
  border-radius: 2px;
  white-space: nowrap;
}

.legal-header__home:hover {
  background-color: #85939C;
  text-decoration: none;
}

/* ---------- Title block ---------- */
.legal-title {
  background-color: #6E2E48;
  padding: 56px 0 40px;
  border-bottom: 1px solid #5A2439;
}

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

.legal-title h1 {
  font-size: 40px;
  line-height: 1.15;
  color: #A8B4BC;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.legal-title__meta {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #A8B4BC;
  letter-spacing: 0.02em;
}

.legal-title__meta span {
  display: inline-block;
  border: 1px solid #85939C;
  border-radius: 2px;
  padding: 4px 12px;
}

/* ---------- Table of contents ---------- */
.legal-toc {
  background-color: #5A2439;
  border-top: 2px solid #A8B4BC;
  border-bottom: 2px solid #A8B4BC;
  padding: 30px 0;
}

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

.legal-toc h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A8B4BC;
  margin: 0 0 14px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

.legal-toc li {
  margin-bottom: 7px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  break-inside: avoid;
}

.legal-toc a {
  color: #A8B4BC;
  border-bottom: 1px solid #85939C;
}

.legal-toc a:hover {
  border-bottom-color: #A8B4BC;
  text-decoration: none;
}

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

.legal-content {
  background-color: #6E2E48;
  color: #A8B4BC;
  padding: 20px 0 70px;
}

/* Scope isolation: sections inside legal content never inherit a band bg */
.legal-content section {
  background: transparent !important;
  padding: 26px 0;
  border-top: 1px solid #5A2439;
}

.legal-content section:first-of-type {
  border-top: none;
}

.legal-content h2 {
  font-size: 25px;
  line-height: 1.25;
  color: #A8B4BC;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  color: #A8B4BC;
  margin: 22px 0 8px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #A8B4BC;
  margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
  color: #A8B4BC;
}

.legal-content li {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 8px;
  color: #A8B4BC;
}

.legal-content a {
  color: #A8B4BC;
  border-bottom: 1px solid #85939C;
  word-break: break-word;
}

.legal-content a:hover {
  border-bottom-color: #A8B4BC;
  text-decoration: none;
}

.legal-intro {
  background-color: #5A2439;
  border-left: 4px solid #A8B4BC;
  padding: 22px 24px;
  margin: 24px 0 8px;
  border-radius: 2px;
}

.legal-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- Legal footer ---------- */
.legal-footer {
  background-color: #A8B4BC;
  color: #3A1826;
  border-top: 3px solid #471C2D;
  padding: 30px 0 40px;
}

.legal-footer__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #3A1826;
}

.legal-footer a {
  color: #3A1826;
  font-weight: 700;
  border-bottom: 1px solid #5A2439;
}

.legal-footer a:hover {
  border-bottom-color: #3A1826;
  text-decoration: none;
}

.legal-footer__links {
  margin-bottom: 14px;
}

.legal-footer__sep {
  color: #5A2439;
  margin: 0 8px;
}

.legal-footer__meta {
  font-size: 13px;
  color: #3A1826;
}

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

  .legal-title h1 {
    font-size: 30px;
  }

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

  .legal-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
