/* =============================================
   Terms / Policy Pages
   ============================================= */

:root {
  --banner-gradient: linear-gradient(160deg, #eef4fd 0%, #ffffff 45%, #e8f0fb 100%);
  --color-card-border: #e8ecf5;
}

/* ===== Banner ===== */
.termsBanner-section {
   padding: 130px 0 100px;
  background: var(--banner-gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.termsBanner-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(30,67,176,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.termsBanner-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(30,67,176,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.termsBanner-section h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-6xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--color-heading);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.termsBanner-section p {
  font-family: var(--font-primary);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== Page Layout ===== */
.termsPage {
  padding: 60px 0 80px;
}
.body_Main {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ===== TOC Sidebar ===== */
.toc {
  position: sticky;
  top: 100px;
  min-width: 280px;
  max-width: 280px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.toc_head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-card-border);
  background: rgba(99,136,241,0.04);
}
.toc_head p {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  margin: 0;
}
.toc_links {
  padding: 12px 0;
}
.toc_list_ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

/* Active arrow indicator */
.activeShower {
  position: absolute;
  left: 12px;
  top: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.activeShower svg {
  width: 10px;
  height: 10px;
}

/* TOC items */
.toc_list_ul li {
  position: relative;
}
.toc_list_ul li a.toc_list_Item {
  display: block;
  padding: 9px 20px 9px 34px;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 0;
}
.toc_list_ul li a.toc_list_Item:hover {
  color: var(--color-primary);
  background: rgba(99,136,241,0.04);
}
.toc_list_ul li.active a.toc_list_Item {
  color: var(--color-primary);
  font-weight: var(--fw-medium);
}

/* ===== Main Content ===== */
.content_Main {
  flex: 1;
  min-width: 0;
}
.topContent {
  padding: 18px 24px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.topContent p {
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  margin: 0;
}

/* Content sections */
.content.element-title {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--color-card-border);
}
.content.element-title:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.content.element-title h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  color: var(--color-heading);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(99,136,241,0.15);
}
.content.element-title p {
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  margin-bottom: 14px;
}
.content.element-title p:last-child { margin-bottom: 0; }
.content.element-title p strong {
  color: var(--color-heading);
  font-weight: var(--fw-semibold);
}
.content.element-title ul,
.content.element-title ol {
  padding-left: 6px;
  margin: 14px 0;
  list-style: none;
  counter-reset: item;
}
.content.element-title ul li,
.content.element-title ol li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  margin-bottom: 12px;
}
.content.element-title ul li:last-child,
.content.element-title ol li:last-child { margin-bottom: 0; }
.content.element-title ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.7;
}
.content.element-title ol li::before {
  content: counter(item) '.';
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  font-size: var(--fs-sm);
}
.content.element-title ul li strong {
  color: var(--color-heading);
  font-weight: var(--fw-medium);
}

/* Nested lists */
.content.element-title ul ul {
  margin-top: 10px;
  padding-left: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .body_Main { gap: 28px; }
  .toc { min-width: 240px; max-width: 240px; }
}

@media (max-width: 767px) {
  .termsBanner-section { padding: 50px 0 40px; }
  .termsBanner-section h1 { font-size: var(--fs-2xl); }
  .termsBanner-section p { font-size: var(--fs-sm); }
  .termsPage { padding: 40px 0 50px; }
  .body_Main { flex-direction: column; gap: 24px; }
  .toc { position: static; min-width: 100%; max-width: 100%; }
  .content.element-title { padding-bottom: 26px; margin-bottom: 26px; }
  .content.element-title h2 { font-size: var(--fs-xl); }
  .topContent { padding: 16px 20px; margin-bottom: 24px; }
}

@media (max-width: 575px) {
  .termsBanner-section h1 { font-size: var(--fs-xl); }
  .toc_list_ul li a.toc_list_Item { font-size: 13px; padding: 8px 16px 8px 30px; }
}
