.page-cookies-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

/* Fixed header padding */
.page-cookies-policy__hero-banner {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
  padding-bottom: 40px;
  text-align: center;
  background: linear-gradient(135deg, #8B0000, #FFD700); /* Brand colors */
  color: #ffffff; /* Light text for dark background */
}

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

.page-cookies-policy__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-cookies-policy__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cookies-policy__hero-description a {
  color: #FFD700;
  text-decoration: underline;
  font-weight: bold;
}

.page-cookies-policy__hero-description a:hover {
  color: #fff;
}

.page-cookies-policy__banner-image {
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: #FFD700; /* Auxiliary color for CTA */
  color: #8B0000; /* Dark text for light button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-cookies-policy__cta-button:hover {
  background: #e0b800;
  color: #6a0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cookies-policy__content-section {
  padding: 60px 0;
  background: #ffffff; /* White background for content */
  color: #333333; /* Dark text for white background */
}

.page-cookies-policy__section-title {
  font-size: 2.2em;
  color: #8B0000; /* Primary color for titles */
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-cookies-policy__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-cookies-policy__keyword {
  font-weight: bold;
  color: #8B0000;
}

.page-cookies-policy__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-cookies-policy__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-cookies-policy__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-cookies-policy__card {
  background: #f9f9f9; /* Slightly off-white for cards */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-cookies-policy__card-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cookies-policy__card-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-cookies-policy__card-text .page-cookies-policy__keyword {
  color: #8B0000;
}

.page-cookies-policy__faq-section {
  padding: 60px 0;
  background: #f1f3f5; /* Light grey background for FAQ */
  color: #333333; /* Dark text for light background */
}

.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, opacity 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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: #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: #333333;
}

.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: #8B0000; /* Primary color when active */
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cookies-policy__main-title {
    font-size: 2.5em;
  }
  .page-cookies-policy__section-title {
    font-size: 2em;
  }
  .page-cookies-policy__hero-banner {
    padding-top: 100px; /* Tablet */
  }
}

@media (max-width: 768px) {
  .page-cookies-policy__hero-banner {
    padding-top: 100px !important; /* Mobile: Ensure override */
    padding-bottom: 30px;
  }
  .page-cookies-policy__main-title {
    font-size: 2em;
  }
  .page-cookies-policy__hero-description {
    font-size: 1em;
  }
  .page-cookies-policy__banner-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-cookies-policy__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-cookies-policy__content-section, .page-cookies-policy__faq-section {
    padding: 40px 0;
  }
  .page-cookies-policy__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cookies-policy__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-cookies-policy__text-block, .page-cookies-policy__list-item {
    font-size: 0.95em;
  }
  .page-cookies-policy__card-grid {
    grid-template-columns: 1fr;
  }
  .page-cookies-policy__card {
    padding: 20px;
  }
  .page-cookies-policy__card-title {
    font-size: 1.3em;
  }
  .page-cookies-policy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-cookies-policy__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  .page-cookies-policy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
    padding: 15px !important;
  }
}

/* Contrast Fixes (using white/light grey backgrounds with dark text for content sections) */
.page-cookies-policy__dark-bg {
  background: #8B0000;
  color: #ffffff;
}
.page-cookies-policy__light-bg {
  background: #ffffff;
  color: #333333;
}
.page-cookies-policy__faq-section.page-cookies-policy__light-bg {
  background: #f1f3f5;
}

/* Ensure all images are responsive and do not use filters */
.page-cookies-policy img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no image filters are applied */
}

@media (max-width: 768px) {
  .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;
  }
}