/* CHINA CITY INTL (HK) LIMITED - shared legal stylesheet
   Loaded only by privacy.html and terms-of-service.html.
   Defines its own background and text colors with strong contrast. */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #F1EEE4;
  color: #2A2B26;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

.legal-header {
  background: #2C2E2B;
  color: #FAF6EA;
  border-bottom: 6px solid #A98F4A;
  padding: 34px 0 30px 0;
  display: block;
}

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

.legal-header .legal-brand {
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #A98F4A;
  margin: 0 0 10px 0;
}

.legal-header h1 {
  color: #FAF6EA;
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif;
  font-size: 32px;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.legal-header .legal-meta {
  color: #F1EEE4;
  font-size: 15px;
  margin: 0;
}

.legal-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-toc {
  background: #FAF6EA;
  border: 3px solid #2C2E2B;
  border-radius: 4px;
  padding: 24px 26px;
  margin: 34px auto 30px auto;
  max-width: 900px;
}

.legal-toc h2 {
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif;
  font-size: 18px;
  color: #2F5D5C;
  margin: 0 0 14px 0;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 34px;
}

.legal-toc li {
  margin-bottom: 7px;
  break-inside: avoid;
}

.legal-toc a {
  color: #2C2E2B;
  text-decoration: none;
  border-bottom: 1px solid #A98F4A;
}

.legal-toc a:hover {
  color: #2F5D5C;
}

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

.legal-content section {
  background: transparent !important;
  color: #2A2B26;
  padding: 22px 0 6px 0;
  border-top: 2px solid #C8B58C;
}

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

.legal-content h2 {
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif;
  font-size: 22px;
  color: #2F5D5C;
  margin: 0 0 12px 0;
}

.legal-content h3 {
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif;
  font-size: 17px;
  color: #2C2E2B;
  margin: 20px 0 8px 0;
}

.legal-content p {
  margin: 0 0 15px 0;
  color: #2A2B26;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
  color: #2A2B26;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #2F5D5C;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #A98F4A;
}

.legal-callout {
  background: #2F5D5C;
  color: #FAF6EA;
  border-radius: 4px;
  padding: 20px 22px;
  margin: 18px 0 22px 0;
}

.legal-callout p {
  color: #FAF6EA;
  margin: 0;
}

.legal-callout a {
  color: #C8B58C;
}

.legal-contactblock {
  background: #2C2E2B;
  color: #FAF6EA;
  border-radius: 4px;
  padding: 24px 24px;
  margin: 20px 0 10px 0;
}

.legal-contactblock p {
  color: #F1EEE4;
  margin: 0 0 6px 0;
}

.legal-contactblock a {
  color: #C8B58C;
}

.legal-footer {
  background: #2C2E2B;
  border-top: 6px solid #A98F4A;
  padding: 28px 0 26px 0;
  margin-top: 20px;
}

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

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

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

.legal-footer .legal-glyph {
  display: inline-block;
  width: 14px;
  height: 11px;
  border: 2px solid #A98F4A;
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
}

.legal-footer .legal-glyph::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  border-top: 2px solid #A98F4A;
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }
  .legal-header h1 {
    font-size: 25px;
  }
  .legal-content h2 {
    font-size: 19px;
  }
}
