/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Explicitly set for clarity, assuming body is white */
  box-sizing: border-box;
}

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

/* Hero Section */
.page-gdpr__hero-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF; /* White text for contrast */
  padding: 80px 0;
  text-align: center;
  position: relative;
  /* Fixed header offset for desktop, mobile will be handled in media query if needed */
  padding-top: calc(var(--header-offset, 120px) + 80px); /* Add hero padding to offset */
}

.page-gdpr__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* For responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-gdpr__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-gdpr__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-gdpr__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
}

/* Section Titles */
.page-gdpr__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-top: 60px;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-gdpr__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Content Sections */
.page-gdpr__content-section,
.page-gdpr__commitment-section,
.page-gdpr__rights-section,
.page-gdpr__cookie-section,
.page-gdpr__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text */
}

.page-gdpr__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF; /* White text */
  padding: 60px 0;
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__sub-title {
  color: #FFFFFF;
}

.page-gdpr p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

.page-gdpr a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-gdpr__dark-section a {
  color: #FFFFFF;
}

.page-gdpr__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  font-size: 1.1em;
}

.page-gdpr__list li {
  margin-bottom: 0.5em;
}

/* Images */
.page-gdpr__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);
  /* Ensure no CSS filters changing color */
  filter: none; /* Explicitly ensure no filters */
}

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

.page-gdpr__card {
  background-color: #FFFFFF;
  color: #333333;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-gdpr__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-gdpr__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

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

.page-gdpr__faq-question h3 {
  margin: 0;
  color: #26A9E0; /* Brand color for question text */
  font-size: 1.2em;
}

.page-gdpr__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  transform: rotate(0deg); /* '+' becomes '-' */
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: #555555;
  font-size: 1.1em;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 2.5em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 60px 0;
    padding-top: calc(var(--header-offset, 120px) + 60px) !important; /* Ensure mobile header offset */
  }

  .page-gdpr__main-title {
    font-size: 2em;
    padding: 0 15px;
  }

  .page-gdpr__description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  .page-gdpr__sub-title {
    font-size: 1.5em;
    padding: 0 15px;
  }

  .page-gdpr__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__cards-grid {
    grid-template-columns: 1fr;
  }

  .page-gdpr p,
  .page-gdpr li {
    font-size: 1em;
  }

  /* Images responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to prevent touching edges */
  }

  /* All containers with images must be responsive */
  .page-gdpr__content-section,
  .page-gdpr__commitment-section,
  .page-gdpr__data-section,
  .page-gdpr__rights-section,
  .page-gdpr__security-section,
  .page-gdpr__cookie-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section,
  .page-gdpr__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* FAQ specific mobile adjustments */
  .page-gdpr__faq-question,
  .page-gdpr__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure no content causes horizontal scroll */
.page-gdpr {
  overflow-x: hidden;
}