/* ============================================================
   KHADIZA DREAMS — terms.css
   Used only by: terms.html
   Depends on: styles.css (tokens, buttons, footer, drawers)
   ============================================================ */


/* ============================================================
   1. BREADCRUMBS
   ============================================================ */
.crumbs{
  padding-block:24px;
  font-size:10.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}
.crumbs a{ transition:color .3s; }
.crumbs a:hover{ color:var(--ink); }
.crumbs span{ margin-inline:9px; opacity:.45; }


/* ============================================================
   2. PAGE HEAD
   ============================================================ */
.legal-head{
  padding-block:clamp(36px, 4.6vw, 64px) clamp(28px, 3.4vw, 44px);
  border-bottom:1px solid var(--line);
}

.legal-head__eyebrow{
  font-size:10.5px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:14px;
}

.legal-head__title{
  font-size:clamp(32px, 4.6vw, 60px);
  font-weight:300;
  line-height:1.05;
  max-width:22ch;
  margin-bottom:18px;
}

.legal-head__title em{
  font-style:italic;
  color:var(--gold);
}

.legal-head__text{
  max-width:60ch;
  font-size:15px;
  font-weight:300;
  line-height:1.8;
  color:var(--ink-soft);
}

.legal-head__meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px 30px;
  margin-top:24px;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
}
.legal-head__meta strong{
  font-weight:500;
  color:var(--ink);
}


/* ============================================================
   3. LAYOUT
   ============================================================ */
.legal-layout{
  display:grid;
  grid-template-columns:240px minmax(0, 1fr);
  gap:clamp(28px, 4vw, 72px);
  align-items:start;
  padding-block:clamp(36px, 4.6vw, 64px) clamp(56px, 7vw, 96px);
}


/* ============================================================
   4. SIDEBAR (TOC)
   ============================================================ */
.legal-toc{
  position:sticky;
  top:calc(var(--header-h) + 26px);
}

.legal-toc__title{
  font-family:var(--font-body);
  font-size:10px;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--ink);
  margin-bottom:16px;
}

.legal-toc__list{
  display:flex;
  flex-direction:column;
  gap:2px;
  counter-reset:toc;
}

.legal-toc__link{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:10px 12px;
  border-radius:var(--radius);
  font-size:12.5px;
  font-weight:300;
  line-height:1.5;
  color:var(--muted);
  cursor:pointer;
  transition:background .3s, color .3s;
}
.legal-toc__link:hover{
  background:var(--soft);
  color:var(--ink);
}
.legal-toc__link.is-active{
  background:var(--soft);
  color:var(--ink);
  font-weight:400;
}

.legal-toc__num{
  flex-shrink:0;
  min-width:22px;
  font-family:var(--font-display);
  font-size:14px;
  font-weight:500;
  color:var(--gold);
  line-height:1.4;
}

.legal-toc__foot{
  margin-top:22px;
  padding-top:22px;
  border-top:1px solid var(--line);
}

.legal-toc__foot p{
  font-size:12px;
  line-height:1.65;
  color:var(--muted);
  margin-bottom:14px;
}

.legal-toc__foot .btn{
  width:100%;
}

/* ---------- Print button ---------- */
.legal-print{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:100%;
  margin-top:12px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  transition:background .3s, color .3s, border-color .3s;
}
.legal-print:hover{
  background:var(--soft);
  color:var(--ink);
  border-color:var(--line-dark);
}
.legal-print svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.3;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* ============================================================
   5. CONTENT
   ============================================================ */
.legal-content{
  min-width:0;
  max-width:72ch;
}

.legal-content p{
  font-size:15px;
  font-weight:300;
  line-height:1.85;
  color:var(--ink-soft);
  margin-bottom:18px;
}

.legal-content strong{
  font-weight:500;
  color:var(--ink);
}

.legal-content em{
  font-style:italic;
  color:var(--gold);
}

.legal-content a{
  color:var(--ink);
  border-bottom:1px solid var(--line-dark);
  transition:border-color .3s;
}
.legal-content a:hover{ border-bottom-color:var(--ink); }

.legal-content ul,
.legal-content ol{
  display:flex;
  flex-direction:column;
  gap:11px;
  margin:6px 0 24px;
}

.legal-content ul li,
.legal-content ol li{
  position:relative;
  padding-left:22px;
  font-size:15px;
  font-weight:300;
  line-height:1.75;
  color:var(--ink-soft);
}

.legal-content ul li::before{
  content:'';
  position:absolute;
  left:0;
  top:.78em;
  width:8px;
  height:1px;
  background:var(--gold);
}

.legal-content ol{ counter-reset:ol; }
.legal-content ol li{
  padding-left:26px;
  counter-increment:ol;
}
.legal-content ol li::before{
  content:counter(ol) ".";
  position:absolute;
  left:0;
  top:0;
  font-family:var(--font-display);
  font-size:15px;
  font-weight:500;
  color:var(--gold);
  line-height:1.75;
}


/* ============================================================
   6. SECTIONS
   ============================================================ */
.legal-section{
  padding-top:clamp(28px, 3.4vw, 44px);
  margin-top:clamp(28px, 3.4vw, 44px);
  border-top:1px solid var(--line);
  scroll-margin-top:calc(var(--header-h) + 30px);
}
.legal-section:first-of-type{
  padding-top:0;
  margin-top:0;
  border-top:0;
}

.legal-section__num{
  display:inline-block;
  margin-bottom:12px;
  font-family:var(--font-display);
  font-size:15px;
  font-weight:500;
  letter-spacing:.14em;
  color:var(--gold);
}

.legal-section__title{
  font-size:clamp(24px, 2.8vw, 32px);
  font-weight:300;
  line-height:1.15;
  margin-bottom:20px;
  color:var(--ink);
}

.legal-section__title em{
  font-style:italic;
  color:var(--gold);
}


/* ============================================================
   7. CALLOUTS
   ============================================================ */
.callout{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  gap:16px;
  padding:clamp(18px, 2.2vw, 26px);
  border-radius:var(--radius);
  margin-bottom:24px;
  font-size:14px;
  font-weight:300;
  line-height:1.75;
  color:var(--ink-soft);
}
.callout strong{
  font-weight:500;
  color:var(--ink);
}
.callout a{
  color:var(--ink);
  border-bottom:1px solid var(--line-dark);
  transition:border-color .3s;
}
.callout a:hover{ border-bottom-color:var(--ink); }

.callout--note{
  background:var(--soft);
  border:1px solid var(--line);
}
.callout--warn{
  background:#fbf4e6;
  border:1px solid #f0e2c4;
}

.callout__icon{
  flex-shrink:0;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
}
.callout__icon svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.callout--note .callout__icon{
  background:var(--paper);
  color:var(--gold);
}
.callout--warn .callout__icon{
  background:var(--paper);
  color:#8a6a2b;
}


/* ============================================================
   8. CONTACT STRIP
   ============================================================ */
.legal-contact{
  padding-block:clamp(48px, 6vw, 88px);
  background:var(--soft);
}

.legal-contact__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  flex-wrap:wrap;
  padding:clamp(28px, 4vw, 52px);
  background:var(--paper);
  border-radius:var(--radius);
}

.legal-contact__body{
  max-width:56ch;
}

.legal-contact__title{
  font-size:clamp(24px, 3vw, 34px);
  font-weight:300;
  line-height:1.15;
  margin-bottom:10px;
}

.legal-contact__title em{
  font-style:italic;
  color:var(--gold);
}

.legal-contact__text{
  font-size:14px;
  line-height:1.75;
  color:var(--muted);
}

.legal-contact__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}


/* ============================================================
   9. PRINT STYLES
   ============================================================ */
@media print{
  .site-header,
  .announcement,
  .drawer,
  .scrim,
  .toast,
  .legal-toc,
  .legal-contact,
  .newsletter,
  .site-footer,
  .crumbs{ display:none !important; }

  body{ font-size:11pt; }
  .legal-layout{ display:block; padding:0; }
  .legal-content{ max-width:100%; }
  .legal-section{ page-break-inside:avoid; }
}


/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .legal-layout{
    grid-template-columns:1fr;
    gap:32px;
  }
  .legal-toc{
    position:static;
    top:auto;
  }
  .legal-toc__list{
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px;
  }
  .legal-toc__link{
    padding:9px 14px;
    border:1px solid var(--line);
    border-radius:99px;
    background:var(--paper);
    align-items:center;
  }
  .legal-toc__link:hover{ background:var(--soft); }
  .legal-toc__link.is-active{
    background:var(--ink);
    color:var(--paper);
    border-color:var(--ink);
  }
  .legal-toc__link.is-active .legal-toc__num{
    color:var(--paper);
  }
  .legal-toc__num{
    min-width:auto;
    font-size:12px;
  }
  .legal-toc__foot{
    display:none;
  }
}

@media (max-width:640px){
  .legal-head__title{
    font-size:clamp(26px, 7.5vw, 38px);
  }
  .callout{
    grid-template-columns:1fr;
    gap:12px;
  }
  .legal-contact__inner{
    padding:24px;
  }
  .legal-contact__actions{
    width:100%;
  }
  .legal-contact__actions .btn{
    flex:1;
    justify-content:center;
  }
}