/* =========================================================
   Terms & Conditions — simplified modern styling
   ========================================================= */

.tos-page {
  --tos-bg:        #f9fafb;
  --tos-surface:   #ffffff;
  --tos-text:      #1f2937;
  --tos-muted:     #6b7280;
  --tos-border:    #e5e7eb;
  --tos-accent:    #a51c36; /* brand red */

  background: var(--tos-bg);
  color: var(--tos-text);
  font-size: 1rem;
  line-height: 1.6;
}

.tos-page .container-fluid,
.tos-page .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: hidden;
}


/* Dark mode */
.theme-dark .tos-page {
  --tos-bg:        #0b1220;
  --tos-surface:   #111827;
  --tos-text:      #e5e7eb;
  --tos-muted:     #9ca3af;
  --tos-border:    #1f2937;
  --tos-accent:    #a51c36;
}

/* Banner */
.tos-page .tos-banner {
  background: var(--tos-surface);
  border-bottom: 1px solid var(--tos-border);
  padding: 1.5rem 1rem;
}
.tos-page .tos-title {
  color: var(--tos-accent);
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
}
.tos-page .tos-subtitle {
  color: var(--tos-muted);
  font-size: 1.1rem;
}

/* Sidebar */
.tos-page .sticky-sidebar { top: 2rem; }
.tos-page #navbar-tos {
  background: var(--tos-surface);
  border: 1px solid var(--tos-border);
  border-radius: 8px;
  padding: 1rem;
}
.tos-page .nav-pills .nav-link {
  color: var(--tos-text);
  border-radius: 6px;
  padding: .5rem .75rem;
}
.tos-page .nav-pills .nav-link:hover {
  background: rgba(164,29,58,.08);
  color: var(--tos-accent);
}
.tos-page .nav-pills .nav-link.active {
  background: var(--tos-accent);
  color: #fff;
}

/* Sections */
.tos-page .tos-section {
  background: var(--tos-surface);
  border: 1px solid var(--tos-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.tos-page .tos-section h3 {
  color: var(--tos-accent);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Definition cards */
.tos-page .definition-card {
  background: rgba(164,29,58,.05);
  border-left: 3px solid var(--tos-accent);
  padding: .75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.tos-page .definition-term {
  font-weight: 600;
  color: var(--tos-accent);
}

/* Term numbers */
.tos-page .term-number {
  font-weight: 600;
  color: var(--tos-accent);
  margin-right: .4rem;
}

/* Back-to-top */
.tos-page .top-btn {
  position: fixed; bottom: 15px; right: 15px;
  background: var(--tos-accent);
  color: #fff;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  z-index: 1000;
}
.tos-page .top-btn.show { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
  .tos-page .sticky-sidebar { position: static !important; margin-bottom: 1rem; }
}
