/* ============================================================
   BCCJ HOLDINGS, LLC — Legal Pages Stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html
   ============================================================ */

.legal-page {
  background-color: #0D1117;
  color: #E9EDF2;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.legal-page a {
  color: #8FA8C0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-page a:hover {
  color: #E2C476;
}

/* ---------- Header ---------- */
.legal-header {
  background: linear-gradient(180deg, #1B2A38 0%, #0D1117 100%);
  border-bottom: 1px solid #23303D;
}

.legal-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #8FA8C0;
}

.legal-brand span {
  color: #E2C476;
}

.legal-home-link {
  font-size: 14px;
  font-weight: 600;
  color: #E9EDF2;
  padding: 8px 16px;
  border: 1px solid #3A556B;
  border-radius: 6px;
}

.legal-home-link:hover {
  background-color: #5B7C99;
  color: #0A0E13;
  border-color: #5B7C99;
}

/* ---------- Content ---------- */
.legal-content {
  padding: 56px 0 24px;
}

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

.legal-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #E9EDF2;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 14px;
  color: #9AA7B5;
  margin-bottom: 28px;
}

.legal-intro {
  font-size: 17px;
  color: #C3CDD8;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #23303D;
}

/* ---------- Table of contents ---------- */
.toc {
  background-color: #151E29;
  border: 1px solid #23303D;
  border-radius: 10px;
  padding: 26px 28px;
  margin-bottom: 44px;
}

.toc h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E2C476;
  margin-bottom: 16px;
}

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

.toc ol li {
  counter-increment: toc;
  margin-bottom: 10px;
}

.toc ol li a {
  color: #C3CDD8;
  font-size: 15px;
}

.toc ol li a:hover {
  color: #E2C476;
}

.toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  color: #5B7C99;
  font-weight: 700;
  margin-right: 10px;
  font-size: 13px;
}

/* ---------- Sections ---------- */
.legal-content section {
  margin-bottom: 40px;
}

.legal-content section h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #8FA8C0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1C2833;
}

.legal-content section p {
  font-size: 16px;
  color: #C3CDD8;
  margin-bottom: 16px;
}

.legal-content section p:last-child {
  margin-bottom: 0;
}

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

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #0A0E13;
  border-top: 1px solid #23303D;
}

.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-footer p {
  font-size: 14px;
  color: #9AA7B5;
}

.legal-footer a {
  color: #8FA8C0;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal-title {
    font-size: 32px;
  }

  .toc ol {
    columns: 1;
  }

  .legal-content section h2 {
    font-size: 22px;
  }
}
