/* ============================================================
   NEXUSAISOLUT — Legal Pages Stylesheet
   Dark theme: midnight-indigo + prism-violet + neon-mint
   Loaded ONLY by privacy.html and terms-of-service.html
   ============================================================ */

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

.legal-page{
  background-color:#101018;
  color:#CBD3E8;
  font-family:"Segoe UI","Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:1.75;
  overflow-x:hidden;
}

/* Scope isolation: legal content sections never carry their own backgrounds */
.legal-page .legal-content section{background-color:transparent !important;}

/* ============ LEGAL HEADER ============ */
.legal-header{
  background-color:#1A1A28;
  border-bottom:1px solid #262638;
}
.legal-header-inner{
  max-width:980px;
  margin:0 auto;
  padding:0 24px;
  height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.legal-wordmark{
  font-size:18px;
  font-weight:700;
  letter-spacing:0.28em;
  color:#CBD3E8;
  text-transform:uppercase;
}
.legal-home-links{
  display:flex;
  align-items:center;
  gap:22px;
}
.legal-home-links a{
  color:#CBD3E8;
  font-size:13px;
  letter-spacing:0.10em;
  text-transform:uppercase;
  transition:color .25s;
}
.legal-home-links a:hover{color:#8B7BE8;}

/* ============ BODY LAYOUT ============ */
.legal-body{
  background-color:#101018;
}
.legal-container{
  max-width:980px;
  margin:0 auto;
  padding:0 24px;
}

.legal-title{
  padding:56px 0 20px;
}
.legal-title h1{
  color:#8B7BE8;
  font-size:38px;
  font-weight:800;
  letter-spacing:-0.01em;
}
.legal-title p{
  color:#A8B2CC;
  font-size:14px;
  margin-top:8px;
}

/* ============ TABLE OF CONTENTS ============ */
.toc{
  background-color:#1A1A28;
  border:1px solid #262638;
  border-left:4px solid #8B7BE8;
  border-radius:6px;
  padding:24px 28px;
  margin-bottom:40px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.toc strong{
  color:#CBD3E8;
  font-size:15px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.toc a{
  color:#CBD3E8;
  text-decoration:none;
  font-size:15px;
  padding:3px 0;
  border-bottom:1px solid #262638;
  transition:color .25s;
}
.toc a:last-child{border-bottom:none;}
.toc a:hover{color:#8B7BE8;}

/* ============ CONTENT SECTIONS ============ */
.legal-content section{
  padding:26px 0;
  border-bottom:1px solid #262638;
}
.legal-content section:last-child{border-bottom:none;}
.legal-content h2{
  color:#8B7BE8;
  font-size:24px;
  font-weight:700;
  margin-bottom:14px;
}
.legal-content h3{
  color:#CBD3E8;
  font-size:19px;
  margin:18px 0 8px;
}
.legal-content p{
  color:#A8B2CC;
  margin-bottom:14px;
}
.legal-content p:last-child{margin-bottom:0;}
.legal-content strong{color:#CBD3E8;}

.legal-back-home{
  margin:40px 0 60px;
}
.legal-back-home a{
  color:#8B7BE8;
  font-weight:700;
  text-decoration:none;
  font-size:15px;
  letter-spacing:0.04em;
}
.legal-back-home a:hover{color:#4ADBC8;}

/* ============ FOOTER ============ */
.legal-footer{
  background-color:#090910;
  border-top:1px solid #262638;
  padding:32px 24px 40px;
  text-align:center;
}
.legal-footer p{
  color:#7B85A6;
  font-size:13px;
  margin-bottom:6px;
}
.legal-footer-links{font-size:13px;}
.legal-footer-links a{
  color:#CBD3E8;
  text-decoration:none;
  margin:0 6px;
  transition:color .25s;
}
.legal-footer-links a:hover{color:#8B7BE8;}

/* ============ RESPONSIVE ============ */
@media(max-width:640px){
  .legal-header-inner{height:auto;flex-direction:column;justify-content:center;padding:20px 24px;gap:14px;}
  .legal-home-links{flex-wrap:wrap;justify-content:center;gap:16px;}
  .legal-title h1{font-size:30px;}
  .legal-content h2{font-size:21px;}
}
