/* Cangzhou Taojing Trading Co., Ltd. — shared legal stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html.
   Defines its own page background and text colors for strong contrast.
   No rgba, no opacity decimals, no gradients on text, no semi-transparent text. */

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #5A7EA6;
  color: #7E9AB4;
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: #7E9AB4;
  text-decoration: underline;
}

a:hover {
  color: #7E9AB4;
  text-decoration: underline;
}

/* ---------- LEGAL HEADER ---------- */
.legal-header {
  background-color: #7E9AB4;
  color: #5A7EA6;
  border-bottom: 3px solid #5A7EA6;
  padding: 30px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.legal-header .legal-brand {
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.4px;
  color: #5A7EA6;
  max-width: 420px;
  line-height: 1.3;
}

.legal-header .legal-brand a {
  color: #5A7EA6;
  text-decoration: none;
}

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

.legal-header .legal-back {
  color: #5A7EA6;
  font-size: 0.94rem;
  font-weight: bold;
  text-decoration: underline;
}

.legal-header .legal-back:hover {
  color: #5A7EA6;
}

/* ---------- LEGAL CONTENT ---------- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  background-color: #5A7EA6;
  color: #7E9AB4;
}

.legal-content section {
  background-color: transparent !important;
  color: #7E9AB4;
}

.legal-content .legal-title {
  font-size: 2.4rem;
  line-height: 1.15;
  color: #7E9AB4;
  font-weight: bold;
  letter-spacing: -0.5px;
  padding-top: 48px;
  margin-bottom: 10px;
}

.legal-content .legal-updated {
  font-size: 0.92rem;
  color: #7E9AB4;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 2px solid #7E9AB4;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: #7E9AB4;
  margin: 38px 0 12px;
  padding-left: 14px;
  border-left: 5px solid #7E9AB4;
  line-height: 1.25;
}

.legal-content h3 {
  font-size: 1.08rem;
  color: #7E9AB4;
  margin: 22px 0 8px;
}

.legal-content p {
  color: #7E9AB4;
  font-size: 1rem;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 6px 0 16px 22px;
  color: #7E9AB4;
}

.legal-content li {
  color: #7E9AB4;
  margin-bottom: 8px;
  font-size: 1rem;
}

.legal-content strong {
  color: #7E9AB4;
}

/* Table of contents */
.legal-toc {
  background-color: #5A7EA6;
  border: 2px solid #7E9AB4;
  padding: 22px 26px;
  margin: 8px 0 8px;
}

.legal-toc h2 {
  font-size: 1.2rem;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid #7E9AB4;
}

.legal-toc ol {
  margin: 0 0 0 22px;
  columns: 1;
}

.legal-toc li {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.legal-toc a {
  color: #7E9AB4;
  text-decoration: underline;
}

.legal-toc a:hover {
  color: #7E9AB4;
}

/* Contact block inside legal pages */
.legal-contact {
  border-top: 1px solid #7E9AB4;
  border-bottom: 1px solid #7E9AB4;
  padding: 18px 0;
  margin: 22px 0 8px;
}

.legal-contact p {
  margin-bottom: 6px;
}

/* ---------- LEGAL FOOTER ---------- */
.legal-footer {
  background-color: #5A7EA6;
  border-top: 2px solid #7E9AB4;
  margin-top: 46px;
  padding: 28px 24px 40px;
  text-align: center;
  color: #7E9AB4;
}

.legal-footer p {
  color: #7E9AB4;
  font-size: 0.92rem;
  margin-bottom: 8px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.legal-footer a {
  color: #7E9AB4;
  text-decoration: underline;
}

.legal-footer .legal-footer-links {
  margin-bottom: 12px;
  font-size: 0.96rem;
  font-weight: bold;
}

.legal-footer .legal-footer-sep {
  color: #7E9AB4;
  padding: 0 8px;
}

@media (max-width: 640px) {
  .legal-content {
    padding: 0 18px;
  }
  .legal-content .legal-title {
    font-size: 1.9rem;
    padding-top: 34px;
  }
  .legal-header {
    padding: 22px 18px;
  }
  .legal-toc {
    padding: 18px;
  }
}
