/* ==============================================================
   TERMS.CSS — Terms & Conditions page styling only.
   All classes are prefixed `terms-` so nothing collides with the
   globally-loaded home.css. Reuses existing global primitives
   (.eyebrow, .badge-pill/.badge-gold, .faq-item/.faq-q/.faq-a,
   .reveal) from theme.css/home.css rather than re-styling them.
   Breakpoints for these components live at the bottom of this
   file, matching the ≤992 / ≤768 / ≤576 pattern used in
   responsive.css.
   ============================================================== */

/* ---------- TERMS HERO / BREADCRUMB BANNER ---------- */
.terms-hero{
  position: relative;
  padding-block: var(--space-9);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(199,154,69,0.35), transparent 60%),
    linear-gradient(135deg, var(--color-ink-soft) 0%, var(--color-ink) 65%);
}
.terms-hero-blob{
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: var(--color-gold); filter: blur(90px); opacity: 0.18;
  top: -120px; right: 8%; z-index: -1;
}
.terms-hero-eyebrow{
  background: rgba(199,154,69,0.12);
  border-color: rgba(199,154,69,0.3);
  color: var(--color-gold-300);
}
.terms-hero h1{ color: var(--color-text-on-dark); margin-bottom: var(--space-4); }
.terms-breadcrumb{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); color: var(--color-text-on-dark-soft);
}
.terms-breadcrumb a{ color: var(--color-text-on-dark); font-weight: 600; }
.terms-breadcrumb a:hover{ color: var(--color-gold-300); }
.terms-breadcrumb .sep{ opacity: 0.5; }
.terms-breadcrumb .current{ color: var(--color-gold-300); font-weight: 600; }
.terms-hero-sub{
  max-width: 620px; margin: var(--space-5) auto 0;
  color: var(--color-text-on-dark-soft); font-size: var(--fs-lead);
}

/* ---------- TOP HIGHLIGHT CARDS ---------- */
.terms-highlight-grid{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-5); margin-bottom: var(--space-8);
}
.terms-highlight-card{
  display: flex; gap: var(--space-5); align-items: flex-start;
  padding: var(--space-7) var(--space-6);
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  background: var(--color-surface); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.terms-highlight-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-gold-100); }
.terms-highlight-num{
  flex-shrink: 0;
  font-family: var(--font-heading); font-weight: 800; font-size: 2rem;
  color: var(--color-gold-100); -webkit-text-stroke: 1.5px var(--color-gold);
  line-height: 1;
}
.terms-highlight-card h3{ font-size: 1.05rem; margin-bottom: var(--space-2); }
.terms-highlight-card p{ font-size: var(--fs-sm); margin: 0; }

/* ---------- INTRO PARAGRAPH ---------- */
.terms-intro-text{
  max-width: var(--container-narrow); margin: 0 auto var(--space-7);
  font-size: var(--fs-lead); text-align: center;
}

/* ---------- TAB NAV + PANELS ---------- */
.terms-tabs{ display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.terms-tab-btn{
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-sm);
  padding: 0.7rem 1.3rem; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); cursor: pointer; white-space: nowrap;
  transition: all var(--dur-base) var(--ease-out);
  margin: 0 var(--space-3) var(--space-3) 0;
}
.terms-tab-btn:hover{ border-color: var(--color-gold); color: var(--color-gold-700); }
.terms-tab-btn.active{
  background: var(--gradient-gold); color: #221802; border-color: transparent;
  box-shadow: var(--shadow-gold-glow);
}

.terms-panel{
  /* flex-basis:100% forces this onto its own line below the wrapped
     buttons, regardless of how many buttons came before it */
  flex: 1 1 100%;
  display: block; width: 100%;
  padding: var(--space-8) var(--space-7);
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  background: var(--color-surface); box-shadow: var(--shadow-sm);
}
.terms-panel[hidden]{ display: none; }
.terms-panel h3{ margin-bottom: var(--space-6); }

.terms-check-list{ display: flex; flex-direction: column; gap: var(--space-5); }
.terms-check-item{ display: flex; gap: var(--space-3); align-items: flex-start; }
.terms-check-item .ic{
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%; background: var(--color-gold);
  color: #221802; font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.terms-check-item p{ margin: 0; color: var(--color-text-soft); }

/* ---------- HOW A SALE CLOSES + FAQ ---------- */
.terms-closure-grid{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-9); align-items: start;
}
.terms-closure-copy .badge-pill{ margin-right: var(--space-2); }
.terms-closure-badges{ display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.terms-faq-note{
  padding: var(--space-6); border-radius: var(--radius-lg);
  background: var(--color-gold-50); border: 1px solid var(--color-gold-100);
  margin-bottom: var(--space-4);
}
.terms-faq-note-head{ display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.terms-faq-note h4{ font-size: 0.98rem; color: var(--color-gold-700); margin: 0; }
.terms-faq-note .chev-up{ color: var(--color-gold-700); font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.terms-faq-note p{ margin: var(--space-3) 0 0; font-size: var(--fs-sm); color: var(--color-text-soft); }

.terms-closure-faq .faq-list{ gap: var(--space-3); }

/* ---------- Responsive ---------- */
@media (max-width: 992px){
  .terms-highlight-grid{ grid-template-columns: 1fr; }
  .terms-closure-grid{ grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 768px){
  .terms-hero{ padding-block: var(--space-7); }
  .terms-panel{ padding: var(--space-6) var(--space-5); }
}
@media (max-width: 576px){
  .terms-highlight-card{ flex-direction: column; gap: var(--space-3); padding: var(--space-6) var(--space-5); }
  .terms-tabs{ display: flex; flex-wrap: wrap; }
  .terms-tab-btn{ flex: 1 1 auto; margin-right: var(--space-2); }
  .terms-panel{ padding: var(--space-5) var(--space-4); }
  .terms-faq-note{ padding: var(--space-5); }
}