/* style/gdpr.css */

/* Base Styles for 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 contrast checks */
}

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

.page-gdpr__hero-section {
  position: relative;
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
}

.page-gdpr__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register/Login font color for emphasis */
}

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

.page-gdpr__hero-description a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: #017439;
  margin-bottom: 30px;
  text-align: center;
}

.page-gdpr__sub-title {
  font-size: 1.5em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-gdpr__text-block {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-gdpr__text-block a {
  color: #017439;
  text-decoration: underline;
}

.page-gdpr__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-gdpr__list-item {
  margin-bottom: 10px;
}

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

/* Section Specific Styles */
.page-gdpr__content-section,
.page-gdpr__data-collection-section,
.page-gdpr__protection-section,
.page-gdpr__faq-section {
  padding: 60px 0;
}

.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__contact-section,
.page-gdpr__commitment-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-gdpr__principles-section .page-gdpr__section-title,
.page-gdpr__rights-section .page-gdpr__section-title,
.page-gdpr__contact-section .page-gdpr__section-title,
.page-gdpr__commitment-section .page-gdpr__section-title {
  color: #ffffff;
}

.page-gdpr__principles-section .page-gdpr__list-item,
.page-gdpr__rights-section .page-gdpr__list-item,
.page-gdpr__contact-section .page-gdpr__text-block,
.page-gdpr__commitment-section .page-gdpr__text-block {
  color: #f0f0f0;
}

.page-gdpr__principles-section .page-gdpr__list-item strong,
.page-gdpr__rights-section .page-gdpr__list-item strong {
  color: #FFFF00;
}

.page-gdpr__principles-section a,
.page-gdpr__rights-section a,
.page-gdpr__contact-section a,
.page-gdpr__commitment-section a {
  color: #FFFF00;
  text-decoration: underline;
}

/* Buttons */
.page-gdpr__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Login/Register color */
  color: #FFFF00; /* Login/Register font color */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-gdpr__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
  box-sizing: border-box;
}

.page-gdpr__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
}

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  color: #017439;
  transition: background-color 0.3s ease;
}

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

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

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

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

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

.page-gdpr__faq-answer p {
  margin-bottom: 10px;
}

.page-gdpr__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-gdpr__hero-title {
    font-size: 2.2em;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__sub-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-gdpr__hero-section {
    padding: 60px 0 !important;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

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

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

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

  .page-gdpr__sub-title {
    font-size: 1.2em;
  }

  /* Images responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image and content containers responsiveness */
  .page-gdpr__content-section,
  .page-gdpr__principles-section,
  .page-gdpr__data-collection-section,
  .page-gdpr__rights-section,
  .page-gdpr__protection-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section,
  .page-gdpr__commitment-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons responsiveness */
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px;
  }

  .page-gdpr__contact-section .page-gdpr__container,
  .page-gdpr__commitment-section .page-gdpr__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-title {
    font-size: 1.5em;
  }
  .page-gdpr__section-title {
    font-size: 1.4em;
  }
  .page-gdpr__faq-question {
    font-size: 0.9em;
  }
  .page-gdpr__faq-answer {
    font-size: 0.9em;
  }
}