/* style/gdpr.css */

/* Variables */
:root {
  --page-gdpr-primary-color: #017439;
  --page-gdpr-secondary-color: #FFFFFF;
  --page-gdpr-text-dark: #333333;
  --page-gdpr-text-light: #FFFFFF;
  --page-gdpr-background-light: #f5f5f5;
  --page-gdpr-button-register-login: #C30808;
  --page-gdpr-button-font-register-login: #FFFF00;
}

/* Base styles for the page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-gdpr-text-dark); /* Default text color for light body background */
  background-color: var(--page-gdpr-background-light);
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--page-gdpr-text-light);
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-gdpr__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
}

.page-gdpr__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-gdpr-text-light);
}

.page-gdpr__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-gdpr-text-light);
}

.page-gdpr__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Content Sections */
.page-gdpr__content-area,
.page-gdpr__faq-section,
.page-gdpr__contact-cta {
  padding: 60px 0;
}

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

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

.page-gdpr__paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--page-gdpr-text-dark);
}

.page-gdpr__list,
.page-gdpr__nested-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--page-gdpr-text-dark);
}

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

.page-gdpr__nested-list {
  list-style-type: circle;
  margin-left: 45px;
}

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

.page-gdpr__link:hover {
  color: darken(var(--page-gdpr-primary-color), 10%);
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-size: 1.1em;
  text-align: center;
}

.page-gdpr__btn-primary {
  background-color: var(--page-gdpr-button-register-login);
  color: var(--page-gdpr-button-font-register-login);
  border: 2px solid var(--page-gdpr-button-register-login);
}

.page-gdpr__btn-primary:hover {
  background-color: darken(var(--page-gdpr-button-register-login), 10%);
  border-color: darken(var(--page-gdpr-button-register-login), 10%);
}

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: var(--page-gdpr-primary-color);
  border: 2px solid var(--page-gdpr-primary-color);
}

.page-gdpr__btn-secondary:hover {
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-secondary-color);
}

/* Image with Text Block */
.page-gdpr__image-text-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 30px;
}

.page-gdpr__image-text-block .page-gdpr__image {
  flex: 0 0 45%;
  max-width: 45%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-gdpr__image-text-block .page-gdpr__image--left {
  order: -1;
}

.page-gdpr__image-text-block .page-gdpr__image--right {
  order: 1;
}

.page-gdpr__image-text-block > *:not(.page-gdpr__image) {
  flex: 1;
  min-width: 45%;
}

/* CTA Section */
.page-gdpr__cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-text-light);
  border-radius: 10px;
  margin-top: 50px;
}

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

/* FAQ Section */
.page-gdpr__faq-section {
  background-color: var(--page-gdpr-background-light);
}

.page-gdpr__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__faq-item {
  background-color: var(--page-gdpr-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: var(--page-gdpr-secondary-color);
  font-size: 1.2em;
  color: var(--page-gdpr-primary-color);
  font-weight: bold;
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-gdpr-primary-color);
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-gdpr-text-dark);
}

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

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

/* Contact CTA Section */
.page-gdpr__contact-cta {
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-text-light);
  text-align: center;
  padding: 80px 20px;
}

.page-gdpr__contact-cta .page-gdpr__section-title {
  color: var(--page-gdpr-text-light);
}

.page-gdpr__contact-cta .page-gdpr__paragraph {
  color: var(--page-gdpr-text-light);
  margin-bottom: 40px;
  font-size: 1.2em;
}

/* Copyright Info */
.page-gdpr__copyright-info {
  background-color: var(--page-gdpr-background-light);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
  color: var(--page-gdpr-text-dark);
  border-top: 1px solid #eee;
}

/* Color Contrast Specifics */
.page-gdpr__dark-bg {
  background: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-text-light);
}

.page-gdpr__light-bg {
  background: var(--page-gdpr-background-light);
  color: var(--page-gdpr-text-dark);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 2.5em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr__sub-title {
    font-size: 1.5em;
  }
  .page-gdpr__paragraph, .page-gdpr__list-item {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  
  .page-gdpr__hero-title {
    font-size: 2em;
  }
  .page-gdpr__hero-description {
    font-size: 1em;
  }
  .page-gdpr__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__content-area,
  .page-gdpr__faq-section,
  .page-gdpr__contact-cta {
    padding: 40px 0;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-gdpr__image-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-gdpr__image-text-block .page-gdpr__image {
    flex: 0 0 100%;
    max-width: 100%;
    order: 0 !important; /* Reset order for mobile */
  }

  .page-gdpr__image-text-block > *:not(.page-gdpr__image) {
    min-width: 100%;
  }

  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__cta-buttons,
  .page-gdpr__button-group,
  .page-gdpr__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-gdpr__cta-section {
    padding: 30px 15px;
  }
  .page-gdpr__cta-text {
    font-size: 1.4em;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-title {
    font-size: 1.8em;
  }
  .page-gdpr__hero-description {
    font-size: 0.9em;
  }
  .page-gdpr__section-title {
    font-size: 1.5em;
  }
  .page-gdpr__sub-title {
    font-size: 1.3em;
  }
  .page-gdpr__list,
  .page-gdpr__nested-list {
    margin-left: 15px;
  }
  .page-gdpr__nested-list {
    margin-left: 30px;
  }
}