/* style/cookies-policy.css */

/* Global styles for the page content, 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 #1a1a2e */
  background-color: #1a1a2e; /* Inherit from body or set explicitly if needed, but body background is handled by shared.css */
}

/* 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;
  /* Assuming shared.css handles body padding-top, so hero can have its own padding */
  padding-top: 60px; /* Adjust if header offset is needed here */
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-cookies-policy__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
  margin-bottom: 30px;
}

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

.page-cookies-policy__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-cookies-policy__cta-button {
  display: inline-block;
  background-color: #C30808; /* Red for CTA as per custom colors */
  color: #FFFF00; /* Yellow text for CTA */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-cookies-policy__cta-button:hover {
  background-color: #a00606; /* Slightly darker red on hover */
}

.page-cookies-policy__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.15; /* Subtle background image */
  z-index: 0;
}

.page-cookies-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* General Content Sections */
.page-cookies-policy__section {
  padding: 60px 20px;
  background-color: #1a1a2e; /* Dark background from body */
  color: #ffffff; /* Light text */
}

.page-cookies-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add some horizontal padding */
}

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

.page-cookies-policy__sub-title {
  font-size: 1.6em;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-cookies-policy__paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #f0f0f0; /* Slightly off-white for body text */
}

.page-cookies-policy__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__image--small {
  max-width: 600px;
  width: 100%; /* Ensure responsiveness */
}

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

.page-cookies-policy__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light background for cards on dark body */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Light text for cards */
}

.page-cookies-policy__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__card-title {
  font-size: 1.4em;
  color: #017439; /* Brand primary color for card titles */
  margin-bottom: 15px;
}

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

/* List Styles for Purposes Section */
.page-cookies-policy__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cookies-policy__list-item {
  background-color: rgba(255, 255, 255, 0.05); /* Lighter semi-transparent background for list items */
  padding: 25px;
  margin-bottom: 20px;
  border-left: 5px solid #017439; /* Brand primary accent */
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-cookies-policy__list-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-cookies-policy__list-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Management Section Grid */
.page-cookies-policy__management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-cookies-policy__management-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

/* Contact Section */
.page-cookies-policy__contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  align-items: center;
  text-align: center;
}

.page-cookies-policy__contact-item {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-cookies-policy__contact-item a {
  color: #017439; /* Brand primary for links */
  text-decoration: none;
  font-weight: bold;
}

.page-cookies-policy__contact-item a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-cookies-policy__faq-section {
  background-color: #1a1a2e;
}

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

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

.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #017439; /* Brand primary for question text */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cookies-policy__faq-question::-webkit-details-marker {
  display: none;
}

.page-cookies-policy__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-cookies-policy__faq-qtext {
  flex-grow: 1;
  color: #ffffff; /* Ensure question text is white */
}

.page-cookies-policy__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #017439; /* Brand primary for toggle icon */
}

.page-cookies-policy__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.03);
}

/* Ensure details element's summary styling */
.page-cookies-policy__faq-item summary {
  list-style: none;
}
.page-cookies-policy__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-cookies-policy__faq-item[open] .page-cookies-policy__faq-toggle {
  content: "\2212"; /* Change to minus when open */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-cookies-policy__main-title {
    font-size: 2.4em;
  }

  .page-cookies-policy__section-title {
    font-size: 2em;
  }

  .page-cookies-policy__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-cookies-policy__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile hero */
  }

  .page-cookies-policy__main-title {
    font-size: 2em;
  }

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

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

  .page-cookies-policy__section-title {
    font-size: 1.8em;
  }

  .page-cookies-policy__sub-title {
    font-size: 1.3em;
  }

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