/* style/cookies-policy.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #000000;
  --background-light: #f8f9fa;
  --card-bg-color: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
}

.page-cookies-policy {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-light); /* Light text for dark body background */
  background-color: var(--background-dark); /* Body background is dark */
}

/* Ensure main content is not hidden by fixed header */
.page-cookies-policy__hero-banner {
  padding-top: 180px; /* Desktop: Adjust based on header height */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color-light);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

.page-cookies-policy__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-cookies-policy__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-cookies-policy__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
}

.page-cookies-policy__hero-description {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-cookies-policy__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--background-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-cookies-policy__cta-button:hover {
  background: var(--secondary-color);
  color: var(--text-color-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__content-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

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

.page-cookies-policy__text-block {
  background-color: var(--card-bg-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
}

.page-cookies-policy__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
}

.page-cookies-policy__sub-section-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--text-color-light);
  margin-top: 35px;
  margin-bottom: 20px;
  border-left: 5px solid var(--primary-color);
  padding-left: 15px;
}

.page-cookies-policy__text-block p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 1em;
  color: var(--text-color-light);
}

.page-cookies-policy__text-block ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 1.5em;
}

.page-cookies-policy__text-block li {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 0.8em;
  color: var(--text-color-light);
}

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

.page-cookies-policy__text-block a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

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

/* FAQ Section */
.page-cookies-policy__faq-section {
  margin-top: 50px;
}

.page-cookies-policy__faq-section .page-cookies-policy__section-title {
  color: var(--primary-color);
}

.page-cookies-policy__faq-list {
  margin-top: 30px;
}

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

.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 20px;
  opacity: 0;
  color: var(--text-color-light);
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for open answer */
  border-radius: 0 0 5px 5px;
}

.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 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;
}

.page-cookies-policy__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.page-cookies-policy__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.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(--text-color-light);
}

.page-cookies-policy__faq-question h3 .highlight {
  color: var(--primary-color);
}

.page-cookies-policy__faq-toggle {
  font-size: 28px;
  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: 30px;
  height: 30px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cookies-policy__main-title {
    font-size: 2.8em;
  }
  .page-cookies-policy__hero-description {
    font-size: 1.15em;
  }
  .page-cookies-policy__section-title {
    font-size: 1.8em;
  }
  .page-cookies-policy__sub-section-title {
    font-size: 1.4em;
  }
  .page-cookies-policy__text-block p, .page-cookies-policy__text-block li {
    font-size: 1em;
  }
  .page-cookies-policy__cta-button {
    padding: 15px 35px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-cookies-policy__hero-banner {
    padding-top: 140px !important; /* Mobile: Adjust based on header height */
    padding-bottom: 40px;
  }
  .page-cookies-policy__hero-image {
    margin-bottom: 30px;
  }
  .page-cookies-policy__main-title {
    font-size: 2.2em;
  }
  .page-cookies-policy__hero-description {
    font-size: 1em;
  }
  .page-cookies-policy__content-section {
    padding: 40px 0;
  }
  .page-cookies-policy__container {
    padding: 0 15px;
  }
  .page-cookies-policy__text-block {
    padding: 25px;
  }
  .page-cookies-policy__section-title {
    font-size: 1.6em;
    margin-bottom: 25px;
  }
  .page-cookies-policy__sub-section-title {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .page-cookies-policy__text-block p, .page-cookies-policy__text-block li {
    font-size: 0.95em;
  }
  .page-cookies-policy__cta-button {
    padding: 12px 30px;
    font-size: 0.9em;
  }

  .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: 22px;
  }
  .page-cookies-policy__faq-answer {
    padding: 0 15px;
  }
  .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image adaptation */
  .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,
  .page-cookies-policy__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

.page-cookies-policy__dark-bg {
  color: #ffffff; /* Deep dark background, light text */
  background: #000000;
}

.page-cookies-policy__light-bg {
  color: #333333; /* Light background, dark text */
  background: #ffffff;
}

.page-cookies-policy__medium-bg {
  color: #000000; /* Medium background, dark text (default) */
  background: #8B0000; /* Example, needs careful contrast check */
}

/* Ensure contrast for specific elements */
.page-cookies-policy__content-area, .page-cookies-policy__text-block {
  color: var(--text-color-light);
  background: var(--card-bg-color);
}

.page-cookies-policy p, .page-cookies-policy li {
  color: var(--text-color-light);
}

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

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

.page-cookies-policy__btn-primary {
  background: var(--primary-color);
  color: var(--background-dark); /* Button text always dark on primary */
  border: 2px solid transparent;
}

.page-cookies-policy__btn-secondary {
  background: var(--text-color-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}