/* ===== Terms & Conditions page styles ===== */
.terms-main { background: #fff; }

/* hero */
.terms-hero {
  background: var(--navy);
  color: #fff;
  padding: 132px 0 56px;
}
.terms-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #C8D3E8; text-decoration: none;
  margin-bottom: 26px;
  transition: color .15s ease, gap .15s ease;
}
.terms-back:hover { color: #fff; gap: 11px; }
.terms-back svg { width: 16px; height: 16px; }
.terms-hero .terms-eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-lite);
  filter: brightness(1.45);
  margin-bottom: 16px;
}
.terms-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: #B7C4DC; text-decoration: none;
  margin-bottom: 26px;
  transition: color .15s ease, gap .15s ease;
}
.terms-back:hover { color: #fff; gap: 11px; }
.terms-back svg { flex-shrink: 0; }
.terms-title {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
  margin: 0;
}
.terms-sub {
  font-size: 19px; color: #C8D3E8; margin: 18px 0 0; font-weight: 500;
}
.terms-updated {
  font-size: 14px; color: #8FA1C4; margin: 8px 0 0;
}

/* layout: TOC + body */
.terms-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 64px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 96px;
}
.terms-aside {
  position: sticky;
  top: 104px;
  align-self: start;
}

/* table of contents */
.toc {
  border-left: 2px solid var(--blue-soft);
  padding-left: 0;
}
.toc-title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted, #6B7A93);
  padding: 0 0 14px 20px;
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-item { position: relative; }
.toc-item a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0 9px 20px;
  font-size: 14.5px; line-height: 1.4; color: #51607A; text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color .15s ease, border-color .15s ease;
}
.toc-item a:hover { color: var(--navy); }
.toc-num { font-weight: 700; color: #9AA7BE; font-size: 12.5px; min-width: 22px; }
.toc-item.active a { color: var(--blue); font-weight: 700; border-left-color: var(--blue); }
.toc-item.active .toc-num { color: var(--blue); }

/* body content */
.terms-body { max-width: 760px; min-width: 0; }
.t-section { scroll-margin-top: 120px; padding-bottom: 16px; }
.t-section + .t-section { margin-top: 8px; }
.t-h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em;
  color: var(--navy); line-height: 1.15;
  margin: 40px 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--blue-soft);
  text-wrap: balance;
}
.t-section:first-child .t-h2 { margin-top: 0; }
.t-h2-num {
  font-size: 15px; font-weight: 800; color: #fff;
  background: var(--blue);
  border-radius: 8px;
  padding: 4px 10px;
  letter-spacing: 0;
  flex-shrink: 0;
  transform: translateY(-2px);
}
.t-lead { font-size: 17.5px; line-height: 1.7; color: #2C3954; margin: 0 0 20px; font-weight: 500; }
.t-p { font-size: 15.5px; line-height: 1.74; color: #3A475F; margin: 0 0 18px; text-wrap: pretty; }
.t-subhead {
  font-size: 18px; font-weight: 700; color: var(--navy);
  margin: 30px 0 14px; letter-spacing: -0.01em;
}
.t-list { margin: 0 0 18px; padding-left: 22px; }
.t-list li { font-size: 15.5px; line-height: 1.7; color: #3A475F; margin-bottom: 12px; padding-left: 6px; }
.t-ul li::marker { color: var(--blue-lite); }
.t-ol li::marker { color: var(--blue-lite); font-weight: 700; }

.t-caps {
  font-size: 13px; line-height: 1.7; letter-spacing: 0.01em;
  color: #44516B; margin: 0 0 18px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  border-radius: 12px;
  padding: 18px 20px;
}
.t-note {
  font-size: 15px; font-weight: 700; line-height: 1.6;
  color: var(--navy);
  border-left: 4px solid var(--blue);
  background: var(--blue-tint);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 20px;
}
.t-contact {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--blue-soft);
  font-size: 15.5px; color: #3A475F; line-height: 1.7;
}
.t-contact a, .t-p a, .t-list a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.t-contact a:hover, .t-p a:hover { color: var(--blue-lite); }

@media (max-width: 920px) {
  .terms-layout { grid-template-columns: 1fr; gap: 0; padding-bottom: 72px; }
  .terms-aside {
    position: static;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--blue-soft);
  }
  .toc { border-left: none; padding-left: 0; }
  .toc-title { padding-left: 0; }
  .toc-list { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .toc-item a { padding: 6px 0; border-left: none; }
  .toc-item.active a { border-left: none; }
  .terms-hero { padding-top: 116px; }
}
