/* style/cookies-policy.css */

:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a;
  --bg-light-card: #ffffff;
  --border-color: #e0e0e0;
}

.page-cookies-policy {
  color: var(--text-light); /* Body background is dark, so text should be light */
  padding-top: 120px; /* Adjust for fixed header on desktop */
  background-color: var(--bg-dark);
}

@media (max-width: 768px) {
  .page-cookies-policy {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
  }
}

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

@media (max-width: 768px) {
  .page-cookies-policy__container {
    padding: 0 15px;
  }
}

.page-cookies-policy__intro-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--bg-dark);
}

.page-cookies-policy__main-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-cookies-policy__intro-text {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-cookies-policy__main-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
}

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

.page-cookies-policy__content-block {
  background: var(--bg-light-card); /* Light background for content blocks */
  color: var(--text-dark); /* Dark text on light background */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.page-cookies-policy__content-block p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-cookies-policy__content-block ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-cookies-policy__content-block li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-cookies-policy__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cookies-policy__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-cookies-policy__link:hover {
  text-decoration: underline;
  color: #0056b3;
}

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

.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-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #222222; /* Darker background for FAQ answer on dark body */
  color: var(--text-light);
  border-radius: 0 0 5px 5px;
}

.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a; /* Dark background for FAQ question */
  border: 1px solid #333333;
  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: #2a2a2a;
  border-color: #555555;
}

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

.page-cookies-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  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: #999;
  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);
}

/* CTA Button */
.page-cookies-policy__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.page-cookies-policy__cta-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.page-cookies-policy__contact-section {
  text-align: center;
  padding: 40px 0 80px 0;
  background-color: var(--bg-dark);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-cookies-policy__main-title {
    font-size: 32px;
  }
  .page-cookies-policy__section-title {
    font-size: 28px;
  }
  .page-cookies-policy__sub-title {
    font-size: 22px;
  }
  .page-cookies-policy__intro-text,
  .page-cookies-policy__content-block p,
  .page-cookies-policy__content-block li {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-cookies-policy__main-title {
    font-size: 28px;
  }
  .page-cookies-policy__section-title {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-cookies-policy__sub-title {
    font-size: 20px;
  }
  .page-cookies-policy__intro-text,
  .page-cookies-policy__content-block p,
  .page-cookies-policy__content-block li {
    font-size: 14px;
    line-height: 1.6;
  }
  .page-cookies-policy__content-block {
    padding: 20px;
  }
  .page-cookies-policy__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-cookies-policy__intro-section,
  .page-cookies-policy__faq-section,
  .page-cookies-policy__contact-section {
    padding: 30px 0;
  }
  .page-cookies-policy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-cookies-policy__faq-question h3 {
    font-size: 15px;
    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 and don't overflow */
  .page-cookies-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cookies-policy__section,
  .page-cookies-policy__card,
  .page-cookies-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cookies-policy__intro-section {
    padding-top: 100px !important; /* Mobile specific padding-top for fixed header */
  }
}

/* Contrast Fixes */
.page-cookies-policy__card {
  background: var(--bg-light-card);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.page-cookies-policy__dark-section {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-cookies-policy__cta-button {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-cookies-policy__faq-question h3 {
  color: var(--text-light);
}

.page-cookies-policy__faq-answer {
  color: var(--text-light);
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
  background: #222222; /* Darker background for expanded FAQ answer */
}