/* ============================================================
   LEGAL PAGES — Privacy Policy & Terms of Service
   Dark clinical teal theme, matching the main site
   ============================================================ */

/* Scope isolation: legal content sections never take a page background */
.legal-page .legal-content section{ background-color: transparent !important; }

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: #0B1213;
  color: #EAF0EF;
  font-size: 16px;
  font-family: "Segoe UI", -apple-system, system-ui, Helvetica, Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #EAF0EF;
  line-height: 1.2;
}

a{ color: #1F8A8C; }

/* Content container: max-width always paired with centering + side padding */
.legal-wrap{
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header (div/header, solid background, strong contrast) ---------- */
.legal-header{
  background: #0B1213;
  border-bottom: 2px solid #1F8A8C;
  padding: 58px 0 42px;
}
.legal-kicker{
  color: #1F8A8C;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 700;
}
.legal-header h1{
  font-size: 42px;
  color: #EAF0EF;
  margin: 12px 0 10px;
}
.legal-meta{ color: #C2DEDD; font-size: 14px; margin: 0; }
.back-home{
  display: inline-block;
  margin-top: 18px;
  color: #1F8A8C;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.back-home:hover{ color: #EAF0EF; }

/* ---------- Table of contents ---------- */
.toc{
  background: #10201F;
  border: 1px solid #1F8A8C;
  border-radius: 10px;
  padding: 26px 30px;
  margin: 42px 0 56px;
}
.toc h2{ color: #1F8A8C; font-size: 20px; margin: 0 0 16px; }
.toc ul{
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 36px;
}
.toc li{ margin-bottom: 8px; }
.toc a{
  color: #EAF0EF;
  text-decoration: none;
  font-size: 14px;
}
.toc a:hover{ color: #1F8A8C; }

/* ---------- Content ---------- */
.legal-content{ padding-bottom: 72px; }
.legal-content section{
  border-top: 1px solid #1F3A38;
  padding-top: 36px;
  margin-bottom: 46px;
}
.legal-content h2{ color: #1F8A8C; font-size: 27px; margin: 0 0 16px; }
.legal-content h3{ color: #C2DEDD; font-size: 19px; margin: 20px 0 10px; }
.legal-content p{ margin: 0 0 16px; }
.legal-content ul{ margin: 0 0 16px; padding-left: 22px; }
.legal-content li{ margin-bottom: 8px; }
.legal-content strong{ color: #EAF0EF; }

/* ---------- Footer ---------- */
.legal-footer{
  background: #0B1213;
  border-top: 1px solid #1F8A8C;
  padding: 34px 0 28px;
}
.legal-footer p{ margin: 0 0 8px; font-size: 13.5px; color: #C2DEDD; }
.legal-footer a{ color: #EAF0EF; }
.legal-footer a:hover{ color: #1F8A8C; }

/* ---------- Responsive ---------- */
@media (max-width: 720px){
  .legal-header h1{ font-size: 32px; }
  .legal-content h2{ font-size: 23px; }
  .toc ul{ columns: 1; }
}
