/**
 * Privacy Policy Stylesheet
 * Methodology: BEM (Block, Element, Modifier)
 * Uses the website's root brand variables.
 */

/* ==========================================
   1. Brand Variables & Reset
   ========================================== */
:root {
  --privacy-theme: var(--theme-color, #a3248f);
  --privacy-theme-dark: #6e105f;
  --privacy-theme-light: #a3248f14;
  --privacy-bg-light: #f9fbfd;
  --privacy-bg-dark: #151515;
  --privacy-text-main: #333333;
  --privacy-text-muted: #666666;
  --privacy-border: #00000014;
  --privacy-card-shadow: 0 10px 30px #00000008;
  --privacy-card-shadow-hover: 0 15px 40px #a3248f14;
  --privacy-font-title: 'Outfit', sans-serif;
}

/* ==========================================
   2. Block: privacy-hero (Page Header Container Card)
   ========================================== */
.privacy-hero {
  position: relative;
  background-color: var(--privacy-bg-light);
  padding: 60px 0 20px 0;
  margin-top: 75px;
  /* Offset for sticky menu */
  overflow: hidden;
}

.privacy-hero__card {
  position: relative;
  background: linear-gradient(-45deg, #6e105f, #a3228f, #6e105f, #a3248f);
  background-size: 400% 400%;
  animation: privacyGradientShift 12s ease infinite;
  padding: 70px 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(163, 36, 143, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.privacy-hero__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, #ffffff26 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.4;
  pointer-events: none;
}

.privacy-hero__container {
  position: relative;
  z-index: 2;
}

.privacy-hero__title {
  font-family: var(--privacy-font-title);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  /* Fluent Typography using clamp()! */
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px #00000040;
  animation: privacyFadeInDown 0.8s ease-out;
  color: var(--privacy-bg-light);
  position: relative;
  z-index: 2;
}

.privacy-hero__subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 400;
  opacity: 0.95;
  background: #ffffff2e;
  color: var(--privacy-bg-light);
  padding: 8px 24px;
  border-radius: 50px;
  display: inline-block;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: privacyFadeInUp 0.8s ease-out;
  position: relative;
  z-index: 2;
}

/* ==========================================
   3. Block: privacy-body (Main Section Layout)
   ========================================== */
.privacy-body {
  background-color: var(--privacy-bg-light);
  padding: 80px 0;
  font-family: 'Inter', sans-serif;
  color: var(--privacy-text-main);
  line-height: 1.7;
}

.privacy-body__container {
  max-width: 1200px;
}

.privacy-body__sidebar {
  position: relative;
  z-index: 10;
  margin-bottom: 30px;
  /* Width placeholder so it doesn't collapse when child goes fixed */
}

/* Applied by JS when the sidebar should be visually fixed */
/* top / width / left are all set dynamically by JS */
.privacy-toc.is-sticky {
  position: fixed;
  z-index: 100;
}

.privacy-body__content {
  scroll-behavior: smooth;
}

/* ==========================================
   4. Block: privacy-toc (Table of Contents Sidebar)
   ========================================== */
.privacy-toc {
  background: #fffffff2;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid #a3248f1a;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px #a3248f0a;
}

.privacy-toc__title {
  font-family: var(--privacy-font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--privacy-text-main);
  margin-bottom: 12px;
  border-bottom: 2px solid var(--privacy-theme-light);
  padding-bottom: 8px;
}

.privacy-toc__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.privacy-toc__item {
  margin-bottom: 4px;
}

.privacy-toc__link {
  color: var(--privacy-text-muted);
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 500;
  display: block;
  padding: 4px 8px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  border-radius: 0 4px 4px 0;
}

.privacy-toc__link:hover {
  color: var(--privacy-theme);
  background-color: var(--privacy-theme-light);
  border-left-color: var(--privacy-theme);
  padding-left: 16px;
}

.privacy-toc__link--active {
  color: var(--privacy-theme) !important;
  background-color: var(--privacy-theme-light);
  border-left-color: var(--privacy-theme);
  font-weight: 700;
  padding-left: 16px;
}

/* ==========================================
   6. Block: privacy-content (Card-Based Sections)
   ========================================== */
.privacy-content__section {
  background: #ffffff;
  border: 1px solid var(--privacy-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: var(--privacy-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.privacy-content__section:hover {
  transform: translateY(-3px);
  box-shadow: var(--privacy-card-shadow-hover);
}

/* Highlight Target section on anchor scroll */
.privacy-content__section:target {
  animation: privacyPulseHighlight 1.5s ease-out;
  border-color: var(--privacy-theme);
}

.privacy-content__title {
  font-family: var(--privacy-font-title);
  color: var(--privacy-theme-dark);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  line-height: clamp(1.8rem, 2.5vw, 2.4rem);
  text-transform: capitalize;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  letter-spacing: 0;
}

.privacy-content__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background-color: var(--privacy-theme);
  border-radius: 2px;
}

.privacy-content__subtitle {
  font-family: var(--privacy-font-title);
  color: var(--privacy-text-main);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: 0;
  margin: 12px 0;
}

.privacy-content__tertiary-title {
  font-family: var(--privacy-font-title);
  color: var(--privacy-text-main);
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.3;
  margin: 12px 0;
}

.privacy-content__text {
  color: var(--privacy-text-main);
  font-size: 1rem;
  margin: 10px 0;
  opacity: 0.9;
}

.privacy-content__text strong {
  color: #000000;
  font-weight: 600;
}

.privacy-content__link {
  color: var(--privacy-theme);
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.2s ease;
  border-bottom: 1px dashed var(--privacy-theme);
}

.privacy-content__link:hover {
  color: var(--privacy-theme-dark);
  border-bottom-style: solid;
}

/* Styled Lists within content */
.privacy-content__list {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
  margin-bottom: 20px;
}

.privacy-content__list-item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: var(--privacy-text-main);
}

.privacy-content__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: var(--privacy-theme-light);
  color: var(--privacy-theme);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Nested list style */
.privacy-content__list--nested {
  margin-left: 20px;
  margin-top: 10px;
}

.privacy-content__list--nested .privacy-content__list-item::before {
  content: '→';
  background: none;
  color: var(--privacy-theme);
  font-size: 1rem;
  width: auto;
  height: auto;
}

/* Highlighted search text */
.privacy-content__highlight {
  background-color: rgba(254, 240, 138, 0.8);
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
  color: #854d0e;
}

/* ==========================================
   7. Block: privacy-card (Metadata details like cookies)
   ========================================== */
.privacy-card {
  background: var(--privacy-bg-light);
  border: 1px solid var(--privacy-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.privacy-card:hover {
  border-color: var(--privacy-theme);
  background: #ffffff;
}

.privacy-card__title {
  font-family: var(--privacy-font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--privacy-text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.privacy-card__badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.privacy-card__badge--essential {
  background-color: #d1fae5;
  color: #065f46;
}

.privacy-card__badge--persistent {
  background-color: #dbeafe;
  color: #1e40af;
}

.privacy-card__badge--session {
  background-color: #fef3c7;
  color: #92400e;
}

.privacy-card__text {
  font-size: 0.92rem;
  color: var(--privacy-text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.privacy-card__text strong {
  color: var(--privacy-text-main);
}

/* ==========================================
   8. Animation Definitions
   ========================================== */
@keyframes privacyFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes privacyFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes privacyPulseHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(163, 36, 143, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(163, 36, 143, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(163, 36, 143, 0);
  }
}

@keyframes privacyGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ==========================================
   9. Responsive Breakpoints
   ========================================== */
@media (max-width: 991.98px) {
  .privacy-body__sidebar {
    position: static;
    height: auto;
    overflow-y: visible;
    margin-bottom: 40px;
  }

  /* Completely disable fixed sticky nav on mobile */
  .privacy-toc.is-sticky {
    position: static !important;
    top: auto !important;
    width: auto !important;
    left: auto !important;
  }

  .privacy-hero__title {
    font-size: 2.25rem;
  }

  .privacy-content__section {
    padding: 25px;
  }
}