/* ============================================================
   BNH Solutions - Legal pages stylesheet
   Matches the boardroom-navy dark theme. Loaded by privacy.html
   and terms-of-service.html ONLY (not on the homepage).
   ============================================================ */

.legal-page body,
body {
  background-color: #101822;
}

.legal-page .legal-scope p {
  line-height: 1.7;
}

/* Scope isolation: only ever clear content sections inside content */
.legal-page .legal-content section,
.legal-page .legal-content .legal-section {
  background-color: transparent !important;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.75;
  color: #B9C1C9;
  background-color: #101822;
  overflow-x: hidden;
}

a { color: #C29B3C; text-decoration: none; }
a:hover { color: #d3ab4a; text-decoration: underline; }

/* ============ LEGAL HEADER (not a <section>) ============ */
.legal-header {
  background-color: #1C2531;
  width: 100%;
  border-bottom: 3px solid #C29B3C;
  position: relative;
}

.legal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #101822, #C29B3C, #101822);
}

.legal-header .header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 24px;
  text-align: center;
}

.legal-header .legal-brand {
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C29B3C;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.legal-header h1 {
  font-size: 32px;
  line-height: 1.2;
  color: #EEF1F4;
  font-weight: 700;
}

.legal-header .legal-updated {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C97A3;
}

.legal-header .legal-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-header .legal-links a {
  color: #B9C1C9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-header .legal-links a:hover {
  color: #EEF1F4;
  text-decoration: none;
}

/* ============ LEGAL CONTENT ============ */
.legal-page {
  width: 100%;
}

.legal-page .legal-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 40px;
  color: #B9C1C9;
}

/* Any content container with a max-width gets centered + side padding */
.legal-page .legal-content section,
.legal-page .legal-content .legal-block,
.legal-page .legal-content .toc,
.legal-page .legal-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ TABLE OF CONTENTS ============ */
.legal-page .toc {
  background-color: #1C2531;
  border: 1px solid #26313E;
  border-left: 4px solid #C29B3C;
  padding: 26px 28px;
  margin-bottom: 44px;
  border-radius: 4px;
}

.legal-page .toc h2 {
  font-size: 17px;
  color: #C29B3C;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #26313E;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.legal-page .toc ol {
  padding-left: 22px;
  columns: 2;
  column-gap: 40px;
  list-style: decimal;
}

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

.legal-page .toc a {
  color: #B9C1C9;
  font-size: 15px;
}

.legal-page .toc a:hover {
  color: #C29B3C;
  text-decoration: none;
}

@media (max-width: 640px) {
  .legal-page .toc ol { columns: 1; }
}

/* ============ LEGAL INTRO / LEAD ============ */
.legal-page .legal-lead {
  background-color: #0A1017;
  border-left: 4px solid #C29B3C;
  padding: 22px 26px;
  margin-bottom: 40px;
  color: #C9D0D6;
  font-size: 16px;
  line-height: 1.75;
}

/* ============ SECTIONS ============ */
.legal-page .legal-section {
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid #26313E;
}

.legal-page .legal-section h2 {
  font-size: 23px;
  color: #EEF1F4;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid #B0523F;
  display: inline-block;
}

.legal-page .legal-section h3 {
  font-size: 18px;
  color: #C29B3C;
  margin: 18px 0 10px;
  font-weight: 700;
}

.legal-page .legal-section p {
  color: #B9C1C9;
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-page .legal-section ul {
  color: #B9C1C9;
  margin: 12px 0 18px;
  padding-left: 24px;
}

.legal-page .legal-section li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.legal-page .legal-section li::marker {
  color: #C29B3C;
}

/* ============ LEGAL FOOTER ============ */
.legal-footer {
  background-color: #070C12;
  width: 100%;
  margin-top: 30px;
}

.legal-footer .legal-foot-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 24px 26px;
  text-align: center;
}

.legal-footer .legal-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C29B3C;
}

.legal-footer .legal-back:hover {
  color: #d3ab4a;
  text-decoration: none;
}

.legal-footer .legalline {
  font-size: 13px;
  color: #8C97A3;
  line-height: 1.8;
  max-width: 80ch;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .legal-header h1 { font-size: 26px; }
  .legal-page .legal-content { padding: 28px 18px 30px; }
}
