/* style/gdpr.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-btn-bg: #C30808;
  --register-login-font-color: #FFFF00;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --card-bg-dark-section: rgba(255, 255, 255, 0.1);
  --card-bg-light-section: #ffffff;
  --border-color: #e0e0e0;
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-gdpr__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

.page-gdpr__hero-description {
  font-size: 1.3em;
  color: var(--text-color-dark-bg);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

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

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

.page-gdpr__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-gdpr__intro-section, 
.page-gdpr__rights-section, 
.page-gdpr__security-measures-section, 
.page-gdpr__faq-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.page-gdpr__intro-section .page-gdpr__container,
.page-gdpr__rights-section .page-gdpr__container,
.page-gdpr__security-measures-section .page-gdpr__container,
.page-gdpr__faq-section .page-gdpr__container {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__commitment-section, 
.page-gdpr__data-collection-section, 
.page-gdpr__contact-section, 
.page-gdpr__cta-section {
  padding: 60px 0;
  background-color: var(--primary-color);
}

.page-gdpr__commitment-section .page-gdpr__container,
.page-gdpr__data-collection-section .page-gdpr__container,
.page-gdpr__contact-section .page-gdpr__container,
.page-gdpr__cta-section .page-gdpr__container {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
  padding: 40px;
  border-radius: 8px;
}

.page-gdpr__commitment-section .page-gdpr__section-title,
.page-gdpr__data-collection-section .page-gdpr__section-title,
.page-gdpr__contact-section .page-gdpr__section-title,
.page-gdpr__cta-section .page-gdpr__section-title {
  color: var(--text-color-dark-bg);
}

.page-gdpr__data-collection-section .page-gdpr__sub-title {
  color: var(--text-color-dark-bg);
}

.page-gdpr__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__card {
  background: var(--card-bg-dark-section);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-color-dark-bg);
}

.page-gdpr__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__card-title {
  font-size: 1.5em;
  color: var(--text-color-dark-bg);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-gdpr__card-text {
  font-size: 1em;
  line-height: 1.7;
}

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

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

.page-gdpr__contact-info p {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.page-gdpr__contact-link {
  color: var(--register-login-font-color); /* Yellow for links */
  text-decoration: underline;
}

.page-gdpr__contact-link:hover {
  color: var(--secondary-color);
}

.page-gdpr__btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid var(--text-color-dark-bg);
  margin-top: 30px;
}

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

.page-gdpr__btn-register {
  display: inline-block;
  background-color: var(--register-login-btn-bg);
  color: var(--register-login-font-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  margin-top: 30px;
  cursor: pointer;
}

.page-gdpr__btn-register:hover {
  background-color: darken(var(--register-login-btn-bg), 10%);
  transform: translateY(-2px);
}

.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: var(--card-bg-light-section);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-color-light-bg);
}

.page-gdpr__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: var(--primary-color);
}

.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-color-light-bg);
}

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

.page-gdpr__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Ensure contrast for text on light backgrounds */
.page-gdpr__intro-section .page-gdpr__text-block,
.page-gdpr__rights-section .page-gdpr__text-block,
.page-gdpr__security-measures-section .page-gdpr__text-block,
.page-gdpr__faq-item .page-gdpr__faq-answer {
  color: var(--text-color-light-bg);
}

.page-gdpr__intro-section .page-gdpr__section-title,
.page-gdpr__rights-section .page-gdpr__section-title,
.page-gdpr__security-measures-section .page-gdpr__section-title,
.page-gdpr__faq-section .page-gdpr__section-title {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 2.5em;
  }
  .page-gdpr__hero-description {
    font-size: 1.2em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-gdpr__main-title {
    font-size: 2em;
  }
  .page-gdpr__hero-description {
    font-size: 1em;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__sub-title {
    font-size: 1.3em;
  }
  .page-gdpr__text-block, .page-gdpr__list-item, .page-gdpr__card-text {
    font-size: 0.95em;
  }
  .page-gdpr__grid {
    grid-template-columns: 1fr;
  }
  .page-gdpr__card {
    padding: 20px;
  }
  .page-gdpr__btn-primary, .page-gdpr__btn-register {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-gdpr__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-gdpr__faq-answer {
    padding: 0 15px 15px;
  }
  .page-gdpr__container {
    padding: 0 15px;
  }
  .page-gdpr__intro-section .page-gdpr__container,
  .page-gdpr__rights-section .page-gdpr__container,
  .page-gdpr__security-measures-section .page-gdpr__container,
  .page-gdpr__faq-section .page-gdpr__container,
  .page-gdpr__commitment-section .page-gdpr__container,
  .page-gdpr__data-collection-section .page-gdpr__container,
  .page-gdpr__contact-section .page-gdpr__container,
  .page-gdpr__cta-section .page-gdpr__container {
    padding: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Mobile image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__hero-image,
  .page-gdpr__card-image {
    width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper {
    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-gdpr__main-title {
    font-size: 1.8em;
  }
  .page-gdpr__section-title {
    font-size: 1.6em;
  }
  .page-gdpr__hero-section,
  .page-gdpr__intro-section,
  .page-gdpr__commitment-section,
  .page-gdpr__rights-section,
  .page-gdpr__data-collection-section,
  .page-gdpr__security-measures-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section,
  .page-gdpr__cta-section {
    padding: 40px 0;
  }
}