/* style/cookies-policy.css */
:root {
  --primary-color: #FF4500;
  --secondary-color: #FFD700;
  --dark-bg: #0d0d0d; /* Assuming this is from shared.css */
  --light-text: #f0f0f0;
  --dark-text: #333333;
  --border-color: #e0e0e0;
}

.page-cookies-policy__main-content-wrapper {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

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

.page-cookies-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-cookies-policy__card {
  background: #ffffff; /* White background for cards */
  color: var(--dark-text); /* Dark text on light card background */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 30px;
}

.page-cookies-policy__title {
  font-size: 3.2em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.page-cookies-policy__sub-heading {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cookies-policy__description {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-cookies-policy__intro-section .page-cookies-policy__description {
  color: var(--light-text); /* Ensure intro text is light */
}

.page-cookies-policy__intro-section .page-cookies-policy__title {
  color: var(--secondary-color);
}

.page-cookies-policy__content-wrapper p,
.page-cookies-policy__content-wrapper li {
  color: var(--dark-text);
  margin-bottom: 10px;
}

.page-cookies-policy__content-wrapper strong {
  color: var(--primary-color);
}

.page-cookies-policy__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-cookies-policy__contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* FAQ Section Styling */
.page-cookies-policy__faq-list {
  margin-top: 30px;
}

.page-cookies-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

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

.page-cookies-policy__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cookies-policy__faq-question:active {
  background: #eeeeee;
}

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

.page-cookies-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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(--primary-color);
  transform: rotate(45deg);
}

.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;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--dark-text); /* Ensure answer text is dark */
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 15px !important;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-cookies-policy__main-content-wrapper {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
  }

  .page-cookies-policy__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cookies-policy__card {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

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

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

  .page-cookies-policy__sub-heading {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

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

  .page-cookies-policy__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px 0;
  }

  .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;
  }
}