/* ==========================================================================
   CJMCM Properties LLC — legal stylesheet (privacy.html, terms-of-service.html)
   Loaded ONLY by the legal pages. Dark aubergine-violet theme matching the
   main site: #0E0A12 base, #F0EAF4 headings, #6E4A8A accents, #B9A9C6 body.
   ========================================================================== */

.legal-page{
  background-color: #0E0A12;
  color: #B9A9C6;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

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

.legal-page h1,
.legal-page h2,
.legal-page h3{
  font-family: "Sora", "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.2;
  color: #F0EAF4;
}

/* Any max-width container must center and add side padding */

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

/* --------------------------------------------------------------------------
   Header — a solid/gradient block, NOT a <section>, with strong h1 contrast
   -------------------------------------------------------------------------- */

.legal-header{
  background: linear-gradient(180deg, #1A1322 0%, #0E0A12 82%);
  border-bottom: 1px solid #2A1E33;
  padding: 56px 0 48px;
}

.legal-brand{
  font-family: "Sora", "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.6px;
  color: #6E4A8A;
  text-decoration: none;
}

.legal-brand:hover{
  color: #F0EAF4;
}

.legal-kicker{
  margin-top: 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6E4A8A;
}

.legal-header h1{
  font-size: clamp(30px, 4.5vw, 46px);
  margin-top: 10px;
  color: #F0EAF4;
}

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

/* --------------------------------------------------------------------------
   Table of contents
   -------------------------------------------------------------------------- */

.toc{
  background: #1A1322;
  border-top: 1px solid #2A1E33;
  border-bottom: 1px solid #2A1E33;
  padding: 30px 0;
}

.toc-title{
  display: block;
  font-family: "Sora", "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #F0EAF4;
  margin-bottom: 16px;
}

.toc ol{
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
}

.toc a{
  color: #B9A9C6;
  text-decoration: none;
  font-size: 14px;
}

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

/* --------------------------------------------------------------------------
   Main legal content
   -------------------------------------------------------------------------- */

.legal-content{
  padding: 48px 0 72px;
}

/* Scope isolation: keep section backgrounds transparent on legal pages only,
   so the rules of the main stylesheet can never paint colored bands here. */

.legal-page .legal-content section{
  background-color: transparent !important;
  padding: 30px 0;
  border-top: 1px solid #2A1E33;
}

.legal-content section h2{
  font-size: 24px;
  color: #F0EAF4;
  margin-bottom: 16px;
}

.legal-content section h2 .sec-num{
  color: #6E4A8A;
  font-weight: 700;
  margin-right: 12px;
}

.legal-content h3{
  font-size: 18px;
  color: #F0EAF4;
  margin: 24px 0 10px;
}

.legal-content p{
  margin: 12px 0;
  color: #B9A9C6;
}

.legal-content ul{
  margin: 12px 0 12px 22px;
}

.legal-content li{
  margin: 6px 0;
  color: #B9A9C6;
}

.legal-content a{
  color: #6E4A8A;
}

.legal-content a:hover{
  color: #F0EAF4;
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.legal-footer{
  background-color: #0E0A12;
  border-top: 1px solid #2A1E33;
  padding: 42px 0;
  text-align: center;
}

.legal-footer a{
  color: #B9A9C6;
  text-decoration: none;
  font-size: 14px;
}

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

.legal-foot-line{
  color: #B9A9C6;
  font-size: 13px;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 760px){
  .toc ol{
    grid-template-columns: 1fr;
  }

  .legal-header{
    padding: 44px 0 38px;
  }
}
