/* style/cookies-policy.css */

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

/* Container for main content sections */
.page-cookies-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Responsive padding */
  box-sizing: border-box;
}

/* Hero Section */
.page-cookies-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px; /* Default padding */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden; /* Ensure content doesn't spill */
  background-color: #0a0a0a; /* Explicit dark background for the section */
}

.page-cookies-policy__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 8px;
}

.page-cookies-policy__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-cookies-policy__hero-description {
  font-size: 1.15rem;
  color: #f0f0f0; /* Slightly off-white for readability */
  margin-bottom: 30px;
}

/* Content Area */
.page-cookies-policy__content-area {
  background-color: #ffffff; /* White background for main text content */
  color: #333333; /* Dark text for white background */
  padding: 40px 0;
}

.page-cookies-policy__content-area .page-cookies-policy__container {
  padding: 0 20px;
}

.page-cookies-policy__content-area h2,
.page-cookies-policy__content-area h3,
.page-cookies-policy__content-area h4 {
  color: #26A9E0; /* Brand color for headings in light sections */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cookies-policy__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #26A9E0; /* Brand color for section titles */
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
}

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

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

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

.page-cookies-policy__list-item {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.page-cookies-policy__text-link {
  color: #26A9E0; /* Brand color for links */
  text-decoration: underline;
}
.page-cookies-policy__text-link:hover {
  color: #1a7bbd; /* Slightly darker on hover */
}

/* Call to Action Buttons */
.page-cookies-policy__cta-section {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-cookies-policy__btn-primary,
.page-cookies-policy__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.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: #1a7bbd; /* Darker shade on hover */
  border-color: #1a7bbd;
}

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

.page-cookies-policy__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #1a7bbd;
  color: #1a7bbd;
}

/* FAQ Section */
.page-cookies-policy__faq-section {
  background-color: #0a0a0a; /* Dark background for FAQ section */
  color: #ffffff; /* Light text */
  padding: 60px 0;
}

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

.page-cookies-policy__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card for dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-cookies-policy__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for summary */
}

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

.page-cookies-policy__faq-question {
  flex-grow: 1;
  color: #ffffff;
}

.page-cookies-policy__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: #26A9E0; /* Brand color for toggle icon */
  transition: transform 0.3s ease;
}

.page-cookies-policy__faq-item[open] .page-cookies-policy__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-cookies-policy__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f0f0f0;
}

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

  .page-cookies-policy__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

  .page-cookies-policy__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-cookies-policy__hero-description {
    font-size: 1rem;
  }

  .page-cookies-policy__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

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

  .page-cookies-policy__btn-primary,
  .page-cookies-policy__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  /* Image responsive rules for content area */
  .page-cookies-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-cookies-policy__faq-answer {
    padding: 0 15px 15px 15px;
  }
}