/* style/cookies-policy.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #050505;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color-dark: rgba(255, 255, 255, 0.2);
  --hover-bg-dark: rgba(255, 255, 255, 0.05);
}

.page-cookies-policy {
  color: var(--text-light); /* Dark body background, so light text */
  background-color: var(--background-dark);
  line-height: 1.7;
  font-family: 'Arial', sans-serif;
}

.page-cookies-policy__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fixed nav bar spacing */
.page-cookies-policy__intro-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 40px;
  background-color: var(--background-dark);
}

.page-cookies-policy__title {
  font-size: 3.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cookies-policy__description,
.page-cookies-policy p,
.page-cookies-policy li {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: var(--text-light);
}

.page-cookies-policy strong {
  color: var(--secondary-color);
}

.page-cookies-policy__subtitle {
  font-size: 2.2em;
  color: var(--primary-color);
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-cookies-policy__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 30px;
  object-fit: cover;
}

.page-cookies-policy__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-cookies-policy__list-item {
  background-color: var(--card-bg-dark);
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__list-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cookies-policy__external-link,
.page-cookies-policy__internal-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-cookies-policy__external-link:hover,
.page-cookies-policy__internal-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* FAQ Section */
.page-cookies-policy__faq-section {
  padding: 50px 0;
  background-color: var(--background-dark);
}

.page-cookies-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
}

.page-cookies-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-light);
  background-color: var(--card-bg-dark);
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background-color: var(--card-bg-dark);
  border-radius: 0 0 5px 5px;
}

.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark);
  border-bottom: 1px solid var(--border-color-dark);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cookies-policy__faq-question:hover {
  background: var(--hover-bg-dark);
  border-color: var(--primary-color);
}

.page-cookies-policy__faq-question:active {
  background: var(--hover-bg-dark);
}

.page-cookies-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-cookies-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-cookies-policy__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust for mobile header height */
    padding-bottom: 30px;
  }

  .page-cookies-policy__container {
    padding: 0 15px;
  }

  .page-cookies-policy__title {
    font-size: 2.2em;
    margin-bottom: 20px;
  }

  .page-cookies-policy__subtitle {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-cookies-policy__description,
  .page-cookies-policy p,
  .page-cookies-policy li {
    font-size: 1em;
  }

  .page-cookies-policy__list-item {
    padding: 15px;
  }

  .page-cookies-policy__list-title {
    font-size: 1.3em;
  }

  /* FAQ Responsive */
  .page-cookies-policy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-cookies-policy__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-cookies-policy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-cookies-policy__faq-answer {
    padding: 0 15px;
  }
  
  .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive */
  .page-cookies-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cookies-policy__intro-section,
  .page-cookies-policy__what-are-cookies-section,
  .page-cookies-policy__how-we-use-cookies-section,
  .page-cookies-policy__managing-cookies-section,
  .page-cookies-policy__changes-contact-section,
  .page-cookies-policy__faq-section,
  .page-cookies-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}