/* ==========================================================
   HYHDATA LLC - Legal stylesheet
   css/legal.css  (loaded ONLY by legal pages)
   ========================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #F2F5F4;
  color: #232B31;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: #147A74; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Scope isolation: legal page content sections never carry their own colour */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Legal page header ---------- */
.legal-page .legal-header {
  background-color: #2B343B;
  padding: 0;
}

.legal-page .legal-header .legal-topline {
  height: 8px;
  background-color: #147A74;
}

.legal-page .legal-header .legal-header-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 40px 24px 34px;
}

.legal-page .legal-header .legal-brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FAFCFB;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.legal-page .legal-header .legal-brandline .brand-chip {
  width: 13px;
  height: 18px;
  background-color: #147A74;
  border-radius: 2px;
  border: 1px solid #7FA83C;
  position: relative;
  display: inline-block;
}

.legal-page .legal-header .legal-brandline .brand-chip::before,
.legal-page .legal-header .legal-brandline .brand-chip::after {
  content: "";
  position: absolute;
  width: 2px; height: 2px; border-radius: 50%;
  background-color: #FAFCFB;
}
.legal-page .legal-header .legal-brandline .brand-chip::before { left: 3px; top: 5px; }
.legal-page .legal-header .legal-brandline .brand-chip::after { left: 3px; top: 12px; }

.legal-page .legal-header h1 {
  color: #FAFCFB;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.legal-page .legal-header .legal-meta {
  color: #B9C6C9;
  font-size: 14px;
}

.legal-page .legal-header .legal-meta a {
  color: #7FA83C;
  font-weight: 600;
}

/* ---------- Legal content layout ---------- */
.legal-page .legal-content {
  max-width: 1020px;
  margin: 0 auto;
  padding: 20px 24px 8px;
}

.legal-page .legal-content > p,
.legal-page .legal-content > ul,
.legal-page .legal-content > ol {
  margin-bottom: 18px;
  color: #232B31;
}

.legal-page .legal-content ul,
.legal-page .legal-content ol {
  margin-left: 24px;
}

.legal-page .legal-content li {
  margin-bottom: 8px;
  color: #232B31;
}

/* Table of contents */
.legal-page .toc {
  background-color: #FAFCFB;
  border: 2px solid #3A454C;
  border-top: 4px solid #147A74;
  padding: 26px 30px;
  margin: 0 0 36px;
}

.legal-page .toc h2 {
  color: #147A74;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.legal-page .toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 26px;
}

.legal-page .toc li a {
  color: #147A74;
  font-weight: 600;
  font-size: 15px;
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid #E2E8E7;
}

.legal-page .toc li a:hover { color: #232B31; }

/* Sections */
.legal-page .legal-content section {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid #B9C6C9;
}

.legal-page .legal-content section h2 {
  color: #147A74;
  font-size: 24px;
  margin: 0 0 14px;
}

.legal-page .legal-content section p {
  margin-bottom: 14px;
}

.legal-page .legal-content section strong {
  color: #232B31;
}

/* ---------- Legal footer ---------- */
.legal-page .legal-footer {
  max-width: 1020px;
  margin: 40px auto 0;
  padding: 0 24px 60px;
  text-align: center;
}

.legal-page .legal-footer .home-link {
  color: #147A74;
  font-weight: 700;
  font-size: 15px;
}

.legal-page .legal-footer .footer-rule {
  border: none;
  border-top: 2px solid #147A74;
  margin-bottom: 20px;
}

.legal-page .legal-footer .footer-note {
  color: #4E5A61;
  font-size: 14px;
  margin-top: 18px;
  line-height: 1.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .legal-page .toc ol { grid-template-columns: 1fr; }
  .legal-page .legal-header h1 { font-size: 28px; }
  .legal-page .legal-content section h2 { font-size: 21px; }
}
