:root {
  --cb-purple: #552bb0;
  --cb-purple-dark: #3c1e7a;
  --cb-purple-light: #7c3aed;
  --cb-bg: #f8fafc;
  --cb-ink: #0f172a;
  --cb-muted: #64748b;
  --cb-card: #ffffff;
  --cb-border: #d1d5db;
  --radius-lg: 12px;
  --pill: 999px;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cb-bg);
  color: var(--cb-ink);
  line-height: 1.6;
}

/* Navbar */
.cb-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--cb-border);
  padding: 15px 0;
}
.cb-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--cb-purple); text-decoration: none;
  font-weight: 800; font-size: 1.5rem;
}
.cb-mark {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cb-purple); color: #fff; font-weight: 900;
}
.navbar .nav-link {
  color: var(--cb-ink); font-weight: 500; margin: 0 10px;
}
.navbar .nav-link:hover { color: var(--cb-purple); }

/* Hero */
.cb-hero {
  background: #ffffff;
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--cb-border);
  text-align: center;
}
.cb-hero h1 {
  font-weight: 900; font-size: 3rem; margin-bottom: 15px; color: var(--cb-purple);
  word-wrap: break-word;
}
.cb-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f5f3ff; color: var(--cb-purple);
  border-radius: var(--pill); padding: 5px 15px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  margin-bottom: 20px; border: 1px solid rgba(85, 43, 176, 0.1);
  white-space: nowrap;
}

/* Content Layout */
.cb-section { padding: 80px 0; }
.cb-card {
  background: var(--cb-card);
  border: 2px solid var(--cb-border);
  border-radius: var(--radius-lg);
  padding: 34px 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.toc-sticky {
  position: sticky; top: 100px;
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 12px; }
.toc-list a {
  color: var(--cb-muted); text-decoration: none; font-size: 0.95rem;
  transition: all 0.3s;
}
.toc-list a:hover { color: var(--cb-purple); padding-left: 5px; }

/* Mobile adjustments for cb-card */
@media (max-width: 768px) {
  .cb-card {
    padding: 24px 12px;
  }

  .cb-badge {rem !important;
    padding: 4px 10px !important;
    gap: 5px !important;
    margin-bottom: 0px !important;
  }

  .cb-hero h1 {
    font-size: 1.75rem;
    margin-bottom: 12px !important;
    white-space: nowrap;
  }

  .cb-card h2,
  .cb-card h3,
  .cb-card h4,
  .cb-card h5 {
    word-break: break-word;
    margin-bottom: 12px;
  }
}

/* Policy Content */
.policy-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #f1f5f9; }
.policy-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.policy-section h2 { font-weight: 800; font-size: 1.1rem; margin-bottom: 20px; }
.policy-section h3 { font-weight: 700; font-size: 1.1rem; margin-top: 25px; margin-bottom: 15px; }
.cb-text-muted { color: var(--cb-muted); font-size: 0.95rem; }

/* Buttons */
.btn-cb-primary {
  background: var(--cb-purple); color: #fff;
  border-radius: var(--pill); padding: 12px 25px;
  font-weight: 700; border: none; transition: all 0.3s;
}
.btn-cb-primary:hover { background: var(--cb-purple-dark); color: #fff; transform: translateY(-2px); }

/* Footer */
footer { background: #ffffff; border-top: 1px solid var(--cb-border); padding: 60px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; list-style: none; padding: 0; margin-top: 30px; }
.footer-links a { color: var(--cb-muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--cb-purple); }

.anchor-offset { scroll-margin-top: 100px; }

/* Authorized Partner Specifics */
.cb-disclosure-top {
  background: #fff;
  border: 2px solid var(--cb-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 800px;
  margin: 30px auto 0;
  text-align: left;
}
.cb-disclosure-top .title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--cb-purple);
  margin-bottom: 10px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cb-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 15px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-top: 15px;
}
.cb-list {
  padding-left: 20px;
  list-style: none;
}
.cb-list li {
  position: relative;
  margin-bottom: 8px;
}
.cb-list li::before {
  content: "•";
  color: var(--cb-purple);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

footer {
  background: #1e1b4b; /* Deep dark purple */
  color: #ffffff;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px 25px;
  margin: 20px 0 0;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #ffffff;
}

.cb-disclosure {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0;
  font-size: 0.85rem;
  color: #94a3b8;
}
.cb-disclosure strong { color: #e2e8f0; }

/* Cookie Banner & Preferences */
.cb-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--cb-border);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
  z-index: 1060;
  display: none; /* Hidden by default, shown via JS */
}
.cb-cookie p {
 width: 50%;   
  margin: 0;
  font-size: 0.9rem;
  color: var(--cb-muted);
}
.cb-cookie a { color: var(--cb-purple); font-weight: 600; text-decoration: none; }

.cb-switch {
  gap: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 15px; */
  /* border: 1px solid var(--cb-border); */
  border-radius: 12px;
  margin-bottom: 10px;
  background: #f8fafc;
}
.cb-switch strong { display: block; font-size: 0.95rem; }

.modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.modal-header {
  margin: 0px 1pc;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 10px;
    align-items: center;
}
.modal-body {
  padding: 25px;
    margin: -35px 0;
    color: var(--text-muted);
}
.form-check-input:checked {
  background-color: var(--cb-purple);
  border-color: var(--cb-purple);
}
