/* =========================================================
   RedCrest Marketing LLC — css/legal.css
   Shared legal stylesheet for privacy.html and terms-of-service.html.
   These pages load ONLY this stylesheet (never style.css).
   LIGHT theme: warm sand background, ink text, crimson accents.
   ========================================================= */

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

.legal-page {
  background-color: #F6F1E8;
  color: #232323;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page h1,
.legal-page h2,
.legal-page h3 {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  color: #232B33;
  line-height: 1.2;
}

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

/* =========================================================
   Legal header (a <header>, never a <section>)
   ========================================================= */

.legal-header {
  background-color: #232B33;
  color: #F6F1E8;
  padding: 28px 0 64px;
  margin-bottom: 60px;
}

.legal-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid #3A434D;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #F6F1E8;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.legal-brand:hover {
  text-decoration: none;
  color: #FFFFFF;
}

.legal-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  background-color: #B3202C;
  color: #FFFFFF;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  clip-path: polygon(50% 0%, 90% 8%, 100% 62%, 50% 100%, 0% 62%, 10% 8%);
}

.legal-home {
  color: #F6F1E8;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-home:hover {
  color: #FFFFFF;
}

.legal-title-block {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-title-block h1 {
  color: #FFFFFF;
  font-size: 46px;
  font-size: clamp(32px, 4.4vw, 48px);
  margin-top: 40px;
}

.legal-updated {
  color: #C9C2B4;
  font-size: 15px;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* =========================================================
   Scope isolation — never style page background on sections
   ========================================================= */

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

/* =========================================================
   Table of contents (class selector only)
   ========================================================= */

.legal-page .toc {
  max-width: 920px;
  margin: 0 auto 70px;
  padding: 34px 40px;
  background-color: #FFFFFF;
  border: 1px solid #C9A227;
  border-left: 6px solid #B3202C;
  border-radius: 6px;
}

.legal-page .toc h2 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #232B33;
  margin-bottom: 18px;
}

.legal-page .toc ol {
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

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

.legal-page .toc a {
  color: #4A4A4A;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

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

.legal-content {
  padding-bottom: 90px;
}

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

.legal-content section h2 {
  font-size: 28px;
  font-size: clamp(23px, 2.8vw, 30px);
  color: #232B33;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #C9A227;
}

.legal-content section h3 {
  font-size: 20px;
  color: #232B33;
  margin: 26px 0 10px;
}

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

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

/* =========================================================
   Legal footer
   ========================================================= */

.legal-footer {
  background-color: #232B33;
  color: #C9C2B4;
  padding: 40px 0 46px;
}

.legal-footer p {
  font-size: 14px;
  color: #C9C2B4;
  text-align: center;
  margin-bottom: 14px;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

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

.legal-footer-links span {
  color: #C9A227;
}

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

@media (max-width: 760px) {
  .legal-header {
    padding-bottom: 52px;
  }

  .legal-title-block h1 {
    margin-top: 32px;
  }

  .legal-page .toc {
    padding: 28px 24px;
    margin-bottom: 56px;
  }

  .legal-page .toc ol {
    columns: 1;
  }

  .legal-content {
    padding-bottom: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page {
    scroll-behavior: auto;
  }
}
