/* style/cookies-policy.css */

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

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

/* Hero Section */
.page-cookies-policy__hero-section {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  background: #017439; /* Primary brand color for hero background */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-cookies-policy__intro-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Call to Action Buttons */
.page-cookies-policy__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-cookies-policy__btn-primary {
  background: #C30808; /* Specific color for primary actions */
  color: #FFFF00; /* Specific font color for primary actions */
  border: 2px solid #C30808;
}

.page-cookies-policy__btn-primary:hover {
  background: #ff3333;
  color: #ffffff;
  border-color: #ff3333;
}

.page-cookies-policy__btn-secondary {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-cookies-policy__btn-secondary:hover {
  background: #005f2e;
  color: #ffffff;
  border-color: #005f2e;
}

/* Content Sections */
.page-cookies-policy__content-section {
  padding: 60px 0;
}

.page-cookies-policy__light-bg {
  background: #ffffff; /* Light background for content sections */
  color: #333333;
}

.page-cookies-policy__dark-bg {
  background: #017439; /* Dark background for sections */
  color: #ffffff;
}

.page-cookies-policy__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

.page-cookies-policy__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

.page-cookies-policy__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-cookies-policy__text-block h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: inherit;
}

.page-cookies-policy__text-block p {
  margin-bottom: 15px;
}

.page-cookies-policy__text-block ul {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-cookies-policy__text-block ul li {
  margin-bottom: 8px;
}

.page-cookies-policy__image-wrapper {
  text-align: center;
}

.page-cookies-policy__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.page-cookies-policy__browser-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-cookies-policy__browser-list li {
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cookies-policy__browser-list li strong {
  color: #017439;
}

/* Cookie Types Section */
.page-cookies-policy__cookie-types {
  padding: 60px 0;
}

.page-cookies-policy__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cookies-policy__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-cookies-policy__card:hover {
  transform: translateY(-5px);
}

.page-cookies-policy__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlighted title color */
}

.page-cookies-policy__card ul {
  list-style: circle;
  margin-left: 20px;
  padding-left: 0;
  margin-top: 15px;
}

.page-cookies-policy__card ul li {
  margin-bottom: 5px;
}

/* Data Protection Section */
.page-cookies-policy__data-protection {
  padding: 60px 0;
}

.page-cookies-policy__info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cookies-policy__info-card {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.page-cookies-policy__info-card h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-cookies-policy__info-card p {
  margin-bottom: 20px;
}

.page-cookies-policy__card-link {
  color: #FFFF00;
  text-decoration: underline;
  font-weight: bold;
}

.page-cookies-policy__card-link:hover {
  color: #ffffff;
}

/* FAQ Section */
.page-cookies-policy__faq-section {
  padding: 60px 0;
}

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

.page-cookies-policy__faq-item {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background: #ffffff;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-cookies-policy__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

.page-cookies-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #f8f8f8;
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-cookies-policy__faq-answer p {
  margin-bottom: 0;
}

.page-cookies-policy__contact-cta {
  text-align: center;
  margin-top: 40px;
}

.page-cookies-policy__contact-cta p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-cookies-policy__contact-cta a {
  color: #017439;
  text-decoration: underline;
}

.page-cookies-policy__contact-cta a:hover {
  color: #005f2e;
}

/* Full width button for specific sections */
.page-cookies-policy__full-width-button {
  width: 100%;
  max-width: 400px;
  margin: 30px auto 0;
  display: block;
  text-align: center;
}

/* Links within content */
.page-cookies-policy a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
}

.page-cookies-policy a:hover {
  color: #005f2e;
}

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

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

@media (max-width: 768px) {
  .page-cookies-policy__hero-section {
    padding: 60px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

  .page-cookies-policy__intro-text {
    font-size: 1em;
  }

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

  .page-cookies-policy__grid-two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-cookies-policy__cards-grid, 
  .page-cookies-policy__info-cards {
    grid-template-columns: 1fr;
  }

  .page-cookies-policy__card, 
  .page-cookies-policy__info-card {
    padding: 20px;
  }

  .page-cookies-policy__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important; /* Adjust padding for smaller screens */
    font-size: 1em;
  }

  .page-cookies-policy__full-width-button {
    max-width: 100% !important;
    width: 100% !important;
    margin: 20px auto 0 !important;
  }
  
  /* Mobile image responsive adaptation */
  .page-cookies-policy img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cookies-policy__image-wrapper,
  .page-cookies-policy__container,
  .page-cookies-policy__content-section,
  .page-cookies-policy__cookie-types,
  .page-cookies-policy__management-section,
  .page-cookies-policy__data-protection,
  .page-cookies-policy__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-cookies-policy__main-title {
    font-size: 1.5em;
  }

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

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