/* style/gdpr.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-text-yellow: #FFFF00;
  --background-color: #FFFFFF;
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-color);
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  overflow: hidden;
}

.page-gdpr__hero-section .page-gdpr__container {
  position: relative;
  z-index: 1;
}

.page-gdpr__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: bold;
}

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

.page-gdpr__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.1;
}

/* General Content Sections */
.page-gdpr__section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.page-gdpr__section:last-of-type {
  border-bottom: none;
}

.page-gdpr__content-area {
  background-color: var(--background-color);
  color: var(--text-color-dark);
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

.page-gdpr__sub-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-gdpr__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
}

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

.page-gdpr__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-gdpr__link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-gdpr__link:hover {
  color: #005f2e;
}

/* Image Styling */
.page-gdpr__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure no extra space below image */
  margin: 0 auto; /* Center image */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Buttons */
.page-gdpr__btn-primary, .page-gdpr__cta-button {
  display: inline-block;
  background-color: var(--button-register);
  color: var(--button-text-yellow);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* CTA Section */
.page-gdpr__cta-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-align: center;
  padding: 60px 20px;
}

.page-gdpr__cta-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-gdpr__cta-button {
  background-color: var(--button-login);
  color: var(--button-text-yellow);
  padding: 18px 35px;
  font-size: 1.3em;
}

.page-gdpr__cta-button:hover {
  background-color: #a30606;
}

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

.page-gdpr__faq-item {
  background-color: var(--secondary-color);
  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;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-title {
  font-size: 1.2em;
  color: var(--text-color-dark);
  margin: 0;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  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;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 2.4em;
  }
  .page-gdpr__hero-description {
    font-size: 1.1em;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__sub-title {
    font-size: 1.4em;
  }
  .page-gdpr__paragraph, .page-gdpr__list-item {
    font-size: 1em;
  }
  .page-gdpr__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-gdpr__container {
    padding: 0 15px;
  }
  .page-gdpr__hero-section {
    padding: 60px 0;
  }
  .page-gdpr__main-title {
    font-size: 1.8em;
  }
  .page-gdpr__hero-description {
    font-size: 0.95em;
  }
  .page-gdpr__section {
    padding: 40px 0;
  }
  .page-gdpr__section-title {
    font-size: 1.6em;
    text-align: left;
  }
  .page-gdpr__sub-title {
    font-size: 1.3em;
  }
  .page-gdpr__paragraph, .page-gdpr__list-item {
    font-size: 0.95em;
  }
  
  /* Mobile image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__image-wrapper,
  .page-gdpr__container,
  .page-gdpr__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevents horizontal scroll */
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-gdpr__btn-primary,
  .page-gdpr__cta-button,
  .page-gdpr a[class*="button"],
  .page-gdpr a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px;
    text-align: center;
  }
  .page-gdpr__cta-section {
    padding: 40px 15px;
  }
  .page-gdpr__cta-title {
    font-size: 1.5em;
  }

  /* FAQ specific mobile styles */
  .page-gdpr__faq-question {
    padding: 15px;
  }
  .page-gdpr__faq-title {
    font-size: 1.1em;
  }
  .page-gdpr__faq-answer {
    padding: 0 15px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px;
  }

  /* Ensure content area does not cause overflow */
  .page-gdpr__content-area {
    padding-left: 0;
    padding-right: 0;
  }
  .page-gdpr__content-area .page-gdpr__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}