/* ============================================================
   JCC FREEDOM COMPANY, LLC — Legal Pages Stylesheet
   Dark theme: deep warm-black + flag-red accents
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

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

.legal-page a {
  color: #F0A8A0;
  text-decoration: none;
}

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

/* Legal header — solid background, contrasting title */

.legal-header {
  background: linear-gradient(135deg, #2A1210 0%, #160C0C 60%);
  border-bottom: 1px solid #2A1412;
  padding: 44px 24px 52px;
  text-align: center;
}

.legal-header .brand {
  display: inline-block;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #D62828;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.legal-header h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #F7EDEB;
  max-width: 820px;
  margin: 0 auto;
}

.legal-header .legal-meta {
  margin-top: 16px;
  color: #F0A8A0;
  font-size: 15px;
}

/* Legal content wrapper */

.legal-content {
  padding: 60px 0 40px;
}

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

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

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

/* Table of contents */

.toc {
  background-color: #1F1212;
  border: 1px solid #2A1412;
  border-radius: 8px;
  padding: 28px 30px;
  margin-bottom: 56px;
}

.toc-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D62828;
  margin-bottom: 18px;
}

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

.toc li {
  counter-increment: toc;
  border-bottom: 1px solid #2A1412;
}

.toc li:last-child {
  border-bottom: none;
}

.toc a {
  display: block;
  padding: 12px 0;
  color: #F7EDEB;
  font-weight: 600;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #D62828;
  font-weight: 900;
  margin-right: 14px;
  font-size: 14px;
}

.toc a:hover {
  color: #D62828;
}

/* Legal sections */

.legal-content section {
  padding: 26px 0 34px;
  border-bottom: 1px solid #2A1412;
}

.legal-content section:last-of-type {
  border-bottom: none;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #F0A8A0;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  scroll-margin-top: 30px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #F7EDEB;
  margin: 22px 0 10px;
}

.legal-content p {
  color: #D9C4C0;
  margin-bottom: 18px;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 18px;
}

.legal-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: #D9C4C0;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  background-color: #D62828;
  border-radius: 2px;
}

.legal-content strong {
  color: #F7EDEB;
}

/* Legal footer */

.legal-footer {
  border-top: 1px solid #2A1412;
  background-color: #100808;
  padding: 34px 24px;
  text-align: center;
}

.legal-footer .legal-footer-brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #D62828;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-footer .legal-footer-links {
  margin: 12px 0;
}

.legal-footer .legal-footer-links a {
  color: #F7EDEB;
  font-weight: 600;
  margin: 0 12px;
}

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

.legal-footer .legal-copy {
  margin-top: 14px;
  font-size: 13px;
  color: #D9C4C0;
}

.legal-footer .legal-copy a {
  color: #F0A8A0;
}
