/* style/gdpr.css */

/* Base styles for GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so text is light */
  background-color: #0a0a0a;
}

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

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

.page-gdpr__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-gdpr__btn-primary {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-gdpr__btn-primary:hover {
  background-color: #005f2c;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

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

.page-gdpr__hero-container {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-gdpr__hero-title {
  font-size: 3em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFF00; /* Custom color for title on dark background */
}

.page-gdpr__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-gdpr__hero-button {
  font-size: 1.1em;
}

/* Intro Section */
.page-gdpr__intro-section, .page-gdpr__rights-section, .page-gdpr__retention-section, .page-gdpr__contact-section {
  background-color: #FFFFFF;
  color: #333333; /* Light background, so text is dark */
}

.page-gdpr__intro-section .page-gdpr__section-title,
.page-gdpr__rights-section .page-gdpr__section-title,
.page-gdpr__retention-section .page-gdpr__section-title,
.page-gdpr__contact-section .page-gdpr__section-title {
  color: #017439;
}

.page-gdpr__image-content {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Dark Sections */
.page-gdpr__dark-section {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-gdpr__data-collection-section .page-gdpr__section-title,
.page-gdpr__security-section .page-gdpr__section-title,
.page-gdpr__sharing-section .page-gdpr__section-title,
.page-gdpr__faq-section .page-gdpr__section-title {
  color: #FFFF00; /* Custom color for titles on dark backgrounds */
}

.page-gdpr__list {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
  font-size: 1.1em;
}

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

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

.page-gdpr__card {
  background-color: #f8f8f8;
  color: #333333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

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

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

.page-gdpr__faq-question h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1em; /* Adjust to fit parent font size */
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  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;
  background-color: #2a2a2a; /* Dark background for answer */
  color: #f0f0f0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure override */
  padding: 15px 20px;
}

.page-gdpr__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-gdpr__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

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

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

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

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

  .page-gdpr__hero-button {
    font-size: 1em;
    padding: 10px 20px;
  }

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

  .page-gdpr__text-block {
    font-size: 1em;
  }

  .page-gdpr__list {
    font-size: 1em;
    margin-left: 15px;
  }

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

  .page-gdpr__card {
    padding: 20px;
  }

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

  .page-gdpr__faq-question {
    padding: 12px 15px;
    font-size: 1.1em;
  }

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

  .page-gdpr__faq-answer {
    padding: 10px 15px;
  }

  /* Image responsive styles */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Button responsive styles */
  .page-gdpr__btn-primary, .page-gdpr__hero-button {
    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__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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@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;
  }
}