/* ============================================================
   FENGJUN — Legal pages stylesheet (privacy / terms of service)
   Dark harbor theme: navy #0E1319 body, off-white headings,
   cool-mist text, channel-orange accents.
   ============================================================ */

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

html { scroll-behavior: smooth; }

body.legal-page {
  background-color: #0E1319;
  color: #E4E7EA;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background-color: #F2802E; color: #0E1319; }

/* ---------- LEGAL HEADER ---------- */

.legal-header {
  background-color: #1A2230;
  border-bottom: 4px solid #F2802E;
  padding: 58px 24px 50px;
}

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

.legal-eyebrow {
  display: block;
  color: #F2802E;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.legal-header h1 {
  color: #F5F7F8;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;
}

.legal-updated {
  color: #CBD3D9;
  margin-top: 14px;
  font-size: 14px;
}

/* ---------- LEGAL CONTENT ---------- */

.legal-content { padding: 52px 0 76px; }

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

.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  margin-bottom: 40px;
  scroll-margin-top: 24px;
}

.legal-toc {
  background-color: #1A2230;
  border: 1px solid #2A3548;
  border-left: 4px solid #F2802E;
  padding: 26px 30px;
  margin-bottom: 48px;
}

.legal-toc h2 {
  color: #F5F7F8;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: none;
  columns: 2;
  column-gap: 36px;
}

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

.legal-toc a {
  color: #CBD3D9;
  text-decoration: none;
  font-size: 14.5px;
}

.legal-toc a:hover {
  color: #F2802E;
  text-decoration: underline;
}

.legal-content h2 {
  color: #F5F7F8;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2A3548;
}

.legal-content h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  background-color: #F2802E;
  margin-bottom: 12px;
}

.legal-content h3 {
  color: #F5F7F8;
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.legal-content p {
  color: #CBD3D9;
  margin-bottom: 15px;
}

.legal-content ul {
  margin: 0 0 15px 26px;
}

.legal-content li {
  color: #CBD3D9;
  margin-bottom: 9px;
}

.legal-content strong { color: #F5F7F8; }

.legal-content a {
  color: #F2802E;
}

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

.legal-backlink {
  margin-top: 8px;
}

/* ---------- LEGAL FOOTER ---------- */

.legal-footer {
  background-color: #232D40;
  border-top: 1px solid #2A3548;
  padding: 36px 24px 32px;
  position: relative;
  z-index: 1;
}

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

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 18px;
}

.legal-footer-links a {
  color: #CBD3D9;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}

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

.legal-footer-hairline {
  height: 1px;
  background-color: #2A3548;
  margin-bottom: 16px;
}

.legal-footer-legal {
  color: #CBD3D9;
  font-size: 13.5px;
  line-height: 1.8;
}

.legal-footer-legal a {
  color: #F2802E;
  text-decoration: none;
}

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

/* ---------- RESPONSIVE ---------- */

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