/* ==========================================================================
   Privacy Policy Page Styling
   Class Prefix: privacy-
   ========================================================================== */

.privacy-page-section {
  background-color: #ffffff;
  font-family: "Inter", sans-serif;
  color: #131415;
}

/* Header & Meta */
.privacy-meta {
  font-family: "Inter", sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.privacy-meta-badge {
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: var(--primary-color);
  background: rgba(56, 75, 255, 0.08);
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.privacy-meta-date {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #6c757d;
  white-space: nowrap;
}

.privacy-main-title {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4vw + 1rem, 56px) !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #131415;
}

.privacy-intro-card {
  background-color: #fff;
}

.privacy-intro-card p:last-child {
  margin-bottom: 0;
}

/* Typography & Content Sections */
.privacy-section-block {
  scroll-margin-top: 120px;
  margin-bottom: 40px;
}

.privacy-section-heading {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.5vw + 1rem, 30px) !important;
  line-height: clamp(28px, 2.5vw + 1rem, 36px) !important;
  letter-spacing: -0.02em;
  color: #131415;
  margin-top: 24px;
  margin-bottom: 16px;
}

.privacy-sub-heading {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.5vw + 1rem, 22px) !important;
  line-height: clamp(22px, 1.5vw + 1rem, 28px) !important;
  letter-spacing: -0.01em;
  color: #131415;
  margin-top: 20px;
  margin-bottom: 12px;
}

.privacy-summary-box {
  background-color: #f8fafc;
  border-left: 4px solid var(--primary-color, #384bff);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 16px 0 20px 0;
}

.privacy-summary-box p {
  font-size: 16px;
  line-height: 24px;
  color: #131415;
  margin-bottom: 0;
}

.privacy-text,
.privacy-content p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #131415;
}

.privacy-list {
  padding-left: 24px;
  margin-bottom: 20px;
}

.privacy-list li {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #131415;
  margin-bottom: 10px;
}

.privacy-link {
  color: var(--primary-color, #384bff);
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.2s ease;
  word-break: break-word;
}

.privacy-link:hover {
  color: #1d2bdb;
  text-decoration: none !important;
}

.privacy-contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
}

/* Sidebar / Table of Contents */
.privacy-sidebar-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 110px;
  align-self: flex-start;
}

.privacy-toc-widget {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.03);
}

.privacy-toc-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  background: var(--gradient-primary, linear-gradient(90deg, #384bff, #12b3eb));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.privacy-toc-list {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.privacy-toc-list::-webkit-scrollbar {
  width: 5px;
}

.privacy-toc-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.privacy-toc-item {
  margin: 0;
  border-bottom: 1px solid #f1f5f9;
}

.privacy-toc-item:last-child {
  border-bottom: none;
}

.privacy-toc-link {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: #131415;
  text-decoration: none;
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.privacy-toc-link:hover {
  color: var(--primary-color, #384bff);
  background-color: #f1f5f9;
}

.privacy-toc-link.active {
  color: var(--primary-color, #384bff);
  background-color: rgba(56, 75, 255, 0.08);
  font-weight: 600;
}

/* Mobile Sticky TOC Dropdown */
.privacy-mobile-toc {
  display: none;
  position: fixed;
  top: 84px;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  z-index: 999;
  padding: 12px 16px;
  flex-direction: column;
}

.privacy-mobile-toc.open .privacy-mobile-toc-dropdown {
  display: block;
}

.privacy-mobile-toc-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-color, #384bff);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(84, 96, 249, 0.15);
  transition: all 0.3s ease;
}

.privacy-mobile-toc-btn:hover {
  background-color: #2b3cd4;
}

.privacy-mobile-toc-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

.privacy-mobile-toc.open .privacy-mobile-toc-arrow {
  transform: rotate(180deg);
}

.privacy-mobile-toc-dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 16px;
  right: 16px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  padding: 8px 0;
}

.privacy-mobile-toc-item {
  display: block;
  padding: 10px 18px;
  color: #131415;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f8fafc;
}

.privacy-mobile-toc-item:last-child {
  border-bottom: none;
}

.privacy-mobile-toc-item:hover,
.privacy-mobile-toc-item.active {
  background-color: rgba(56, 75, 255, 0.08);
  color: var(--primary-color, #384bff);
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .privacy-mobile-toc.sticky-visible {
    display: flex;
  }
}
