/* style/gdpr.css */

/* Base Styles for GDPR Page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1);
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  background-image: url('[GALLERY:hero_bg:1920x1080:gdpr_hero,data_security,privacy_policy]');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-gdpr__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
  z-index: 1;
}

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

.page-gdpr__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

/* Call to Action Buttons */
.page-gdpr__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Specific color for Register/Login intent */
  color: #FFFF00; /* Specific font color for Register/Login intent */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #C30808;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Content Area */
.page-gdpr__content-area {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

.page-gdpr__light-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

.page-gdpr__section-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 30px;
  text-align: center;
  padding-bottom: 10px;
  position: relative;
}

.page-gdpr__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-gdpr__image-text-block {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.page-gdpr__image-text-block--reverse {
  flex-direction: row-reverse;
}

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

.page-gdpr__text-content {
  flex: 1;
  color: #f0f0f0;
}

.page-gdpr__text-content p {
  margin-bottom: 15px;
}

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

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

.page-gdpr__list li strong {
  color: #017439;
}

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

.page-gdpr__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-gdpr__card p {
  font-size: 0.95em;
  color: #e0e0e0;
  flex-grow: 1;
}

/* Video Section */
.page-gdpr__video-wrapper {
  margin-top: 60px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-gdpr__video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  background-color: #000;
}

.page-gdpr__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.page-gdpr__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.5em;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.page-gdpr__video-container:hover .page-gdpr__video-overlay-link {
  opacity: 1;
}

/* FAQ Section */
.page-gdpr__faq-section {
  margin-top: 50px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-gdpr__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.page-gdpr__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #017439;
  padding: 10px 0;
}

.page-gdpr__faq-question:hover {
  color: #004d2d;
}

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

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

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

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

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

/* CTA Section at bottom */
.page-gdpr__cta-section {
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  margin-top: 60px;
}

.page-gdpr__cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-gdpr__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 2.4em;
  }

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

  .page-gdpr__image-text-block img {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-gdpr__image-text-block--reverse {
    flex-direction: column;
  }
}

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

  .page-gdpr__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-gdpr__description {
    font-size: 1em;
  }

  .page-gdpr__btn-primary {
    padding: 12px 25px;
    font-size: 0.9em;
    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 {
    padding: 40px 0;
  }

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

  .page-gdpr__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

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

  .page-gdpr__image-text-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__video-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-gdpr__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__faq-section {
    padding: 20px;
  }

  .page-gdpr__faq-question {
    font-size: 1em;
  }

  .page-gdpr__faq-toggle {
    font-size: 1.2em;
  }

  .page-gdpr__cta-section {
    padding: 50px 15px;
  }

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

  .page-gdpr__cta-description {
    font-size: 0.95em;
  }

  /* Mobile specific image and container rules */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__image-text-block,
  .page-gdpr__card-grid,
  .page-gdpr__faq-section,
  .page-gdpr__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 1.5em;
  }

  .page-gdpr__btn-primary {
    font-size: 0.85em;
    padding: 10px 20px;
  }

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

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

  .page-gdpr__cta-title {
    font-size: 1.4em;
  }
}