/* ============================================================
   PRIMACONNECT — legal.css
   Shared stylesheet for privacy.html and terms-of-service.html
   Dark commerce theme: espresso-near-black + prime-gold
   ============================================================ */

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

body{
  margin:0;
  font-family:'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size:16px;
  line-height:1.75;
  background-color:#17130C;
  color:#EDE5D4;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{
  color:#DFA92E;
  text-decoration:none;
  transition:color .25s ease;
}

a:hover{
  color:#E8BA45;
}

.legal-page{
  background-color:#17130C;
  color:#EDE5D4;
}

/* ---------- legal header (never a <section>) ---------- */
.legal-header{
  background:linear-gradient(180deg, #231C10 0%, #17130C 100%);
  border-bottom:1px solid #3A2F1A;
  position:relative;
}

.legal-header::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background-color:#DFA92E;
}

.legal-header-inner{
  max-width:1000px;
  margin:0 auto;
  padding:34px 24px 40px;
}

.legal-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:28px;
}

.legal-brand{
  color:#F7F1E4;
  font-weight:800;
  font-size:18px;
  letter-spacing:2px;
}

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

.legal-home{
  color:#D0C6AE;
  font-size:13px;
  letter-spacing:1px;
}

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

.legal-header h1{
  color:#F7F1E4;
  font-size:42px;
  line-height:1.1;
  margin-bottom:10px;
}

.legal-updated{
  color:#9C8A62;
  font-size:13px;
  letter-spacing:1px;
  text-transform:uppercase;
}

/* ---------- table of contents ---------- */
.toc{
  max-width:1000px;
  margin:0 auto;
  padding:28px 24px 8px;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:6px 32px;
  border-bottom:1px solid #3A2F1A;
  margin-bottom:8px;
}

.toc-title{
  grid-column:1 / -1;
  display:block;
  color:#DFA92E;
  font-size:12px;
  font-weight:800;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:10px;
}

.toc a{
  color:#D0C6AE;
  font-size:14px;
  padding:4px 0;
  border-bottom:1px solid #3A2F1A;
}

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

/* ---------- scope isolation: never style header/footer sections ---------- */
.legal-page .legal-content section{
  background-color:transparent !important;
}

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

.legal-intro{
  color:#D0C6AE;
  font-size:17px;
  line-height:1.8;
  border-left:3px solid #DFA92E;
  padding:6px 0 6px 20px;
  margin:36px 0 44px;
  font-weight:500;
}

.legal-content section{
  margin-bottom:44px;
  border-bottom:1px solid #3A2F1A;
  padding-bottom:36px;
}

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

.legal-content h2{
  color:#F7F1E4;
  font-size:26px;
  line-height:1.25;
  margin-bottom:16px;
  padding-left:16px;
  border-left:4px solid #DFA92E;
}

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

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

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

.legal-content ul,
.legal-content ol{
  color:#D0C6AE;
  font-size:15px;
  margin:0 0 16px 22px;
}

.legal-content li{
  margin-bottom:8px;
}

/* ---------- legal footer ---------- */
.legal-footer{
  background-color:#17130C;
  border-top:1px solid #3A2F1A;
}

.legal-footer-inner{
  max-width:1000px;
  margin:0 auto;
  padding:28px 24px 36px;
  text-align:center;
}

.legal-footer p{
  color:#9C8A62;
  font-size:13px;
  line-height:1.8;
}

.legal-footer a{
  color:#9C8A62;
  text-decoration:underline;
  text-underline-offset:3px;
}

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

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

  .legal-header h1{
    font-size:32px;
  }

  .legal-topline{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
}
