/* 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 */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-cookies-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #000000; /* Ensure this section has a dark background for contrast */
  text-align: center;
  overflow: hidden;
}

.page-cookies-policy__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and text */
}

.page-cookies-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

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

.page-cookies-policy__hero-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Slightly off-white for readability */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-cookies-policy__section {
  padding: 40px 20px;
  margin-bottom: 20px;
  background-color: #0d0d0d; /* Slightly lighter dark background for sections */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #0d0d0d; /* Consistent dark background for content */
  color: #ffffff; /* Light text */
}

.page-cookies-policy__dark-bg {
  background-color: #000000; /* Darker background for specific sections */
  color: #ffffff;
}

.page-cookies-policy__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #26A9E0; /* Brand color for section titles */
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
}

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

.page-cookies-policy__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

/* Card Grid for Cookie Types */
.page-cookies-policy__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-cookies-policy__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Light text */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 250px; /* Ensure cards have some height */
}

.page-cookies-policy__card-title {
  font-size: 1.3em;
  color: #26A9E0; /* Brand color for card titles */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cookies-policy__card-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* List Styling */
.page-cookies-policy__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-cookies-policy__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cookies-policy__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-cookies-policy__list-title {
  font-size: 1.2em;
  color: #26A9E0; /* Brand color for list titles */
  margin-bottom: 8px;
  font-weight: 600;
}

.page-cookies-policy__list-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Buttons */
.page-cookies-policy__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-cookies-policy__btn-primary,
.page-cookies-policy__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

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

.page-cookies-policy__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

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

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

/* Links within text */
.page-cookies-policy a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-cookies-policy a:hover {
  color: #1a8cc4;
}

.page-cookies-policy__link-in-text {
  color: #26A9E0;
  text-decoration: underline;
}

.page-cookies-policy__link-in-text:hover {
  color: #1a8cc4;
}

/* Text contrast fix for dark backgrounds */
.page-cookies-policy__text-contrast-fix {
  color: #ffffff;
}

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

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

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

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

  .page-cookies-policy__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

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

  .page-cookies-policy__btn-primary,
  .page-cookies-policy__btn-secondary {
    width: 100% !important; /* Full width buttons */
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-cookies-policy__card-grid {
    grid-template-columns: 1fr; /* Single column for cards */
  }

  .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;
  }

  /* Mobile image and video adaptation */
  .page-cookies-policy img,
  .page-cookies-policy video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure minimum size is maintained */
    min-height: 200px !important;
  }

  .page-cookies-policy__video-section,
  .page-cookies-policy__video-container,
  .page-cookies-policy__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-cookies-policy__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
}

/* Ensure content area images are not tiny */
.page-cookies-policy__content-area img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
}