/* =========================================================
   RENHUAINTL — Legal pages stylesheet (privacy / terms)
   Loaded ONLY by legal pages. Dark harbour-slate theme.
   ========================================================= */

.legal-page {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #131A1E;
  color: #CBD8DC;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Scope isolation: keep any section backgrounds transparent
   inside the legal content area (header/footer untouched). */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Header ---------- */
.legal-header {
  background-color: #0C1114;
  border-bottom: 1px solid #2A3940;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.legal-brand {
  color: #CBD8DC;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #CBD8DC;
  text-decoration: none;
}

.legal-nav a {
  color: #7E929A;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 20px;
  text-decoration: none;
}

.legal-nav a:hover {
  color: #4FB3BF;
}

@media (max-width: 560px) {
  .legal-header-inner { flex-direction: column; gap: 10px; }
  .legal-nav a { margin: 0 8px; }
}

/* ---------- Body / content container ---------- */
.legal-content {
  background-color: #131A1E;
  padding: 50px 0 40px;
}

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

.legal-title-wrap {
  margin-bottom: 40px;
}

.legal-kicker {
  color: #C9922E;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.legal-title-wrap h1 {
  color: #4FB3BF;
  font-size: 40px;
  line-height: 1.2;
  margin: 14px 0 18px;
  font-weight: 800;
}

.legal-intro {
  color: #CBD8DC;
  font-size: 17px;
  border-left: 4px solid #C9922E;
  padding-left: 18px;
}

/* ---------- Table of contents ---------- */
.toc {
  background-color: #1B262C;
  border: 1px solid #2A3940;
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 44px;
}

.toc strong {
  display: block;
  color: #4FB3BF;
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.toc a {
  display: block;
  color: #AEBFC5;
  font-size: 15px;
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 1px dashed #2A3940;
}

.toc a:hover {
  color: #CBD8DC;
}

/* ---------- Sections ---------- */
.legal-content section {
  margin-bottom: 34px;
}

.legal-content section h2 {
  color: #4FB3BF;
  font-size: 25px;
  font-weight: 800;
  margin: 28px 0 14px;
  border-bottom: 1px solid #2A3940;
  padding-bottom: 8px;
  scroll-margin-top: 90px;
}

.legal-content section p {
  color: #AEBFC5;
  font-size: 16px;
  margin-bottom: 14px;
}

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

.legal-back {
  margin-top: 40px;
  padding: 22px;
  background-color: #1B262C;
  border: 1px solid #2A3940;
  border-left: 4px solid #C9922E;
  border-radius: 6px;
}

.legal-back p {
  color: #AEBFC5;
  font-size: 15px;
}

.legal-back a {
  color: #4FB3BF;
  text-decoration: none;
}

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

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #0C1114;
  border-top: 1px solid #2A3940;
  padding: 28px 24px;
  text-align: center;
  color: #7E929A;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.legal-footer nav {
  margin-top: 12px;
}

.legal-footer nav a {
  color: #7E929A;
  text-decoration: none;
  margin: 0 12px;
}

.legal-footer nav a:hover {
  color: #4FB3BF;
}
