/* =========================================================
   Boynton DPT — Legal Stylesheet (Privacy & Terms)
   Loaded ONLY by privacy.html and terms-of-service.html
   ========================================================= */

:root {
  --bg: #0E1418;
  --bg-raised: #1E2F3C;
  --text: #EAF0F4;
  --text-muted: #A9C0D3;
  --steel: #5B7C99;
  --steel-bright: #7FA3BD;
  --pale: #A9C0D3;
  --hairline: #233442;
}

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

html {
  scroll-behavior: smooth;
}

.legal-page {
  background-color: #0E1418;
  color: #EAF0F4;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.legal-page a {
  color: var(--steel-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-page a:hover {
  color: var(--pale);
}

/* =========================================================
   Legal page header
   ========================================================= */

.legal-header {
  background-color: #1E2F3C;
  padding: 64px 24px;
  text-align: center;
  border-bottom: 4px solid var(--steel);
}

.legal-header .legal-brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-bright);
  margin-bottom: 16px;
}

.legal-header .legal-brand a {
  color: var(--steel-bright);
}

.legal-header .legal-brand a:hover {
  color: var(--pale);
}

.legal-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.legal-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

.legal-header .updated {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: #0E1418;
  padding: 6px 16px;
  border-radius: 999px;
}

/* =========================================================
   Legal content
   ========================================================= */

.legal-content {
  padding: 56px 24px 72px;
}

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

.legal-content .back-home {
  display: inline-block;
  margin-bottom: 36px;
  font-weight: 600;
  color: var(--steel-bright);
}

.legal-content .back-home:hover {
  color: var(--pale);
}

.legal-content .toc {
  background-color: #1E2F3C;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 28px 30px;
  margin-bottom: 48px;
}

.legal-content .toc h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.legal-content .toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.legal-content .toc li {
  counter-increment: toc-counter;
  margin-bottom: 8px;
}

.legal-content .toc li a {
  color: var(--text-muted);
  font-weight: 500;
}

.legal-content .toc li a:hover {
  color: var(--pale);
}

.legal-content .toc li a::before {
  content: counter(toc-counter) ".";
  color: var(--steel-bright);
  font-weight: 700;
  margin-right: 8px;
}

.legal-content section {
  margin-bottom: 44px;
}

.legal-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--pale);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

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

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 16px 22px;
  color: var(--text-muted);
}

.legal-content ul li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text);
}

/* =========================================================
   Scope isolation — never paint backgrounds over legal text
   ========================================================= */

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

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 640px) {
  .legal-header {
    padding: 48px 20px;
  }

  .legal-content {
    padding: 40px 20px 56px;
  }

  .legal-content .container {
    padding: 0 12px;
  }

  .legal-content .toc {
    padding: 22px 20px;
  }
}
