/* ========================================
   TERMS & CONDITIONS — Supplemental Styles
   ======================================== */

/* ---- Page Base ---- */
.terms-page {
  background: #f8f9fb;
}

/* ---- Hero ---- */
.terms-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--blue) 100%);
  padding: 120px 0 52px;
  color: #fff;
}

.terms-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.terms-hero .breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color .2s;
}

.terms-hero .breadcrumb a:hover { color: var(--gold); }

.terms-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
}

.terms-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Layout ---- */
.terms-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 48px;
  padding-bottom: 64px;
}

/* ---- TOC Sidebar ---- */
.terms-toc {
  flex: 0 0 260px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.toc-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(15,39,68,.08);
  padding: 24px 20px;
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.toc-link {
  display: block;
  font-size: 0.82rem;
  color: #5a6a7a;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all .2s;
  margin-bottom: 2px;
  line-height: 1.4;
}

.toc-link:hover {
  background: rgba(245,166,35,.08);
  color: var(--gold-dark);
  border-left-color: var(--gold);
}

.toc-link.active {
  background: rgba(245,166,35,.12);
  color: var(--navy);
  border-left-color: var(--gold);
  font-weight: 600;
}

.toc-contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  transition: background .2s;
}

.toc-contact-btn:hover { background: var(--blue); }

/* ---- Article ---- */
.terms-article {
  flex: 1;
  min-width: 0;
}

/* ---- Section ---- */
.terms-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(15,39,68,.06);
  padding: 36px 40px;
  margin-bottom: 24px;
  position: relative;
  scroll-margin-top: 96px;
}

.section-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(15,39,68,.05);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 28px;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}

.terms-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.terms-body p {
  color: #3a4858;
  line-height: 1.8;
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.terms-body p:last-child { margin-bottom: 0; }

/* ---- Lists ---- */
.terms-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.terms-list li {
  color: #3a4858;
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid #f0f2f5;
  position: relative;
}

.terms-list li:last-child { border-bottom: none; }

.terms-list li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---- Notes / Callouts ---- */
.terms-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245,166,35,.08);
  border: 1px solid rgba(245,166,35,.25);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #7a5520;
}

.terms-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30,87,153,.06);
  border: 1px solid rgba(30,87,153,.15);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}

.highlight-icon { font-size: 1.2rem; }

.terms-warning {
  display: flex;
  gap: 14px;
  background: rgba(220, 53, 69, .05);
  border: 1px solid rgba(220, 53, 69, .2);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 16px;
}

.warning-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.terms-warning strong {
  display: block;
  color: #b02a37;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.terms-warning p {
  margin: 0 !important;
  font-size: 0.85rem;
  color: #5a3a40;
}

/* ---- Contact Box ---- */
.contact-box {
  background: #f8f9fb;
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-box-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #3a4858;
}

.contact-box-item span:first-child { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ---- Channel Grid ---- */
.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8f9fb;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e8edf3;
}

.channel-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.channel-item-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 3px;
}

.channel-item-detail {
  font-size: 0.82rem;
  color: #5a6a7a;
  line-height: 1.4;
}

/* ---- Payment Table ---- */
.payment-table {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8edf3;
}

.pay-row {
  display: grid;
  grid-template-columns: 1.5fr 80px 1.5fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 0.88rem;
  color: #3a4858;
}

.pay-row:last-child { border-bottom: none; }

.pay-row--header {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}

.pay-row:not(.pay-row--header):nth-child(odd) { background: #f8f9fb; }

.fee-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
}

.fee-low  { background: rgba(30,87,153,.1);  color: var(--blue); }
.fee-mid  { background: rgba(245,166,35,.15); color: var(--gold-dark); }
.fee-free { background: rgba(25,135,84,.1);  color: #0f6843; }

/* ---- Refund Steps ---- */
.steps-inline {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-inline {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-inline-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-inline strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.step-inline p {
  margin: 0 !important;
  font-size: 0.88rem;
  color: #5a6a7a;
  line-height: 1.6;
}

/* ---- Footer Nav ---- */
.terms-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e8edf3;
}

.back-home-btn,
.contact-us-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all .2s;
}

.back-home-btn {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid #d0d8e4;
}

.back-home-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.contact-us-btn {
  background: var(--gold);
  color: var(--navy);
  border: 1.5px solid var(--gold);
}

.contact-us-btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .terms-toc { display: none; }
  .terms-layout { padding-top: 32px; }
  .terms-section { padding: 28px 24px; }
  .channel-grid { grid-template-columns: 1fr; }
  .pay-row { grid-template-columns: 1.5fr 70px 1.5fr; font-size: 0.82rem; padding: 12px 14px; }
}

@media (max-width: 600px) {
  .terms-hero { padding: 100px 0 36px; }
  .terms-section { padding: 22px 16px; }
  .section-num { font-size: 2.5rem; }
  .terms-footer-nav { flex-direction: column; gap: 12px; }
  .back-home-btn, .contact-us-btn { width: 100%; justify-content: center; }
  .pay-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
  }
  .pay-row--header { display: none; }
  .pay-row:not(.pay-row--header) { border-radius: 8px; margin-bottom: 6px; }
}
