/* ============================================================
   EliteLink - legal pages shared stylesheet
   Palette:
     CHENGHUA     #EEEFEA
     LINKSHEET    #303C3A
     ELITETEAL    #1B8494
     ELDEEP       #22282C
     LAB-PANEL    #D8DEDC
     ZHIXINGTILE  #C2AA45
     CABLETRAY    #9DB8BB
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #EEEFEA;
  color: #303C3A;
  line-height: 1.68;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

h1, h2, h3, h4 {
  font-family: "Georgia", "Times New Roman", serif;
  color: #22282C;
  line-height: 1.25;
}

a {
  color: #1B8494;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #166d7a;
}

/* ---------------- Legal header ---------------- */

.legal-header {
  background-color: #22282C;
  color: #EEEFEA;
  padding: 22px 24px;
  border-bottom: 6px solid #1B8494;
}

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

.legal-header .legal-brand {
  font-family: "Georgia", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #EEEFEA;
  text-decoration: none;
  line-height: 1.4;
}

.legal-header .legal-brand:hover {
  color: #9DB8BB;
  text-decoration: none;
}

.legal-header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-header nav a {
  color: #D8DEDC;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-header nav a:hover {
  color: #1B8494;
  text-decoration: underline;
}

/* ---------------- Legal page banner ---------------- */

.legal-banner {
  background-color: #D8DEDC;
  border-bottom: 3px solid #22282C;
  padding: 44px 24px 36px;
}

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

.legal-banner .legal-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1B8494;
  margin-bottom: 10px;
}

.legal-banner h1 {
  font-size: 2.3rem;
  color: #22282C;
  margin: 0 0 12px;
}

.legal-banner p {
  color: #303C3A;
  font-size: 0.96rem;
  max-width: 60em;
  margin: 0;
}

/* ---------------- Legal content ---------------- */

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  background-color: #EEEFEA;
}

.legal-content section {
  background-color: #EEEFEA !important;
  padding: 30px 0 5px;
  border-bottom: 2px solid #C2AA45;
}

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

.legal-content h2 {
  font-size: 1.42rem;
  color: #22282C;
  margin-top: 0;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: #1B8494;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-content p {
  color: #303C3A;
  font-size: 1rem;
  margin: 0 0 1.05em;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin: 0 0 1.15em;
  color: #303C3A;
}

.legal-content li {
  margin-bottom: 0.5em;
  color: #303C3A;
}

.legal-content strong {
  color: #22282C;
}

/* ---------------- Table of contents ---------------- */

.toc {
  background-color: #D8DEDC;
  border: 3px solid #22282C;
  border-radius: 6px;
  padding: 22px 26px;
  margin: 34px 0 10px;
  box-shadow: 5px 5px 0 #9DB8BB;
}

.toc h2 {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Courier New", monospace;
  color: #1B8494;
  margin: 0 0 14px;
}

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

.toc li {
  margin-bottom: 7px;
  font-size: 0.92rem;
}

.toc a {
  color: #22282C;
  text-decoration: none;
}

.toc a:hover {
  color: #1B8494;
  text-decoration: underline;
}

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

.legal-footer {
  background-color: #22282C;
  color: #D8DEDC;
  margin-top: 50px;
  padding: 34px 24px 28px;
  border-top: 6px solid #1B8494;
}

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

.legal-footer p {
  color: #D8DEDC;
  font-size: 0.88rem;
  margin: 0 0 10px;
  line-height: 1.7;
}

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

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

.legal-footer .legal-home {
  display: inline-block;
  margin-top: 12px;
  background-color: #1B8494;
  color: #F4F6F2;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 3px 3px 0 #C2AA45;
}

.legal-footer .legal-home:hover {
  background-color: #166d7a;
  text-decoration: none;
}

@media (max-width: 640px) {
  .legal-banner h1 {
    font-size: 1.8rem;
  }
  .toc ol {
    columns: 1;
  }
  .legal-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
