/* style/cookies-policy.css */

/* Base styles for the cookie policy page, ensuring light text on dark body background */
.page-cookies-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background #121212 */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-cookies-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  box-sizing: border-box;
  overflow: hidden; /* Ensure image doesn't overflow */
  background-color: #121212; /* Explicit background for this section */
}

.page-cookies-policy__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px; /* Limit height for aesthetic reasons */
  object-fit: cover;
  display: block;
}

.page-cookies-policy__hero-content {
  max-width: 900px;
  margin-top: 30px; /* Space between image and text */
  padding: 0 15px;
  box-sizing: border-box;
  color: #ffffff;
}

.page-cookies-policy__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
}

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

.page-cookies-policy__content-area {
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #1a1a1a; /* Slightly lighter dark background for content sections */
  color: #ffffff; /* Light text */
}

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

.page-cookies-policy__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0; /* Brand color for section titles */
  margin-bottom: 30px;
  text-align: center;
}

.page-cookies-policy__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-cookies-policy__paragraph {
  font-size: 1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-cookies-policy__paragraph a,
.page-cookies-policy__list-item a {
  color: #26A9E0;
  text-decoration: none;
}

.page-cookies-policy__paragraph a:hover,
.page-cookies-policy__list-item a:hover {
  text-decoration: underline;
}

.page-cookies-policy__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-cookies-policy__list-item {
  margin-bottom: 10px;
}

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

/* FAQ Section */
.page-cookies-policy__faq-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Consistent dark background */
  color: #ffffff;
}

.page-cookies-policy__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-cookies-policy__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

/* Hide default marker for details/summary */
.page-cookies-policy__faq-item summary {
  list-style: none;
}
.page-cookies-policy__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-cookies-policy__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-cookies-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-cookies-policy__faq-item[open] .page-cookies-policy__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or keep '-' */
}

.page-cookies-policy__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #e0e0e0;
}

.page-cookies-policy__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* Contact Section */
.page-cookies-policy__contact-section {
  padding: 60px 20px;
  background-color: #0d0d0d; /* Even darker background for contact */
  text-align: center;
  color: #ffffff;
}

.page-cookies-policy__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-cookies-policy__btn-primary,
.page-cookies-policy__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-cookies-policy__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-cookies-policy__btn-primary:hover {
  background-color: #1e87b6; /* Slightly darker on hover */
  border-color: #1e87b6;
}

.page-cookies-policy__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-cookies-policy__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-cookies-policy {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cookies-policy__hero-section {
    padding: 10px 15px 40px;
  }

  .page-cookies-policy__hero-content {
    margin-top: 20px;
  }

  .page-cookies-policy__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-cookies-policy__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-cookies-policy__content-area,
  .page-cookies-policy__faq-section,
  .page-cookies-policy__contact-section {
    padding: 40px 15px;
  }

  .page-cookies-policy__container {
    padding: 0; /* Remove horizontal padding, handled by section */
  }

  .page-cookies-policy__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-cookies-policy__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
  }

  .page-cookies-policy__paragraph {
    font-size: 0.95em;
  }

  .page-cookies-policy__list {
    margin-left: 20px;
  }

  .page-cookies-policy__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-cookies-policy__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile image responsiveness */
  .page-cookies-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness (if any, though none for this page) */
  .page-cookies-policy video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile container responsiveness for images/videos/buttons */
  .page-cookies-policy__hero-section,
  .page-cookies-policy__content-area,
  .page-cookies-policy__faq-section,
  .page-cookies-policy__contact-section,
  .page-cookies-policy__container,
  .page-cookies-policy__video-container, /* if video exists */
  .page-cookies-policy__video-wrapper, /* if video exists */
  .page-cookies-policy__cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile button responsiveness */
  .page-cookies-policy__btn-primary,
  .page-cookies-policy__btn-secondary,
  .page-cookies-policy a[class*="button"],
  .page-cookies-policy a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cookies-policy__cta-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }
}

/* Color contrast enforcement based on body background #121212 (dark) */
/* All text should be light, backgrounds should be dark or semi-transparent dark */

/* Default text color for the main content areas (already set to #ffffff) */
/* .page-cookies-policy { color: #ffffff; } */

/* Card-like elements or specific sections */
.page-cookies-policy__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  color: #ffffff;
}

/* Buttons (already set for contrast) */
.page-cookies-policy__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-cookies-policy__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand color on dark background, border helps contrast */
  border-color: #26A9E0;
}

.page-cookies-policy__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}