/* style/gdpr.css */

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

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

.page-gdpr__section {
  padding: 60px 0;
}

.page-gdpr__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, then larger bottom padding */
  background-color: #ffffff;
  text-align: center;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

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

.page-gdpr__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-gdpr__main-title {
  font-weight: bold;
  color: #017439;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-gdpr__paragraph {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

/* Card styles */
.page-gdpr__principles-grid, .page-gdpr__rights-list, .page-gdpr__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-gdpr__card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-gdpr__card-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Constrain card image size */
  margin-bottom: 15px;
  border-radius: 6px;
  object-fit: cover;
}

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

.page-gdpr__card-text {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
  text-align: justify;
}

/* Dark section for user rights */
.page-gdpr__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__paragraph {
  color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__card {
  background-color: #ffffff;
  color: #333333;
  border-color: rgba(255,255,255,0.2);
}

.page-gdpr__dark-section .page-gdpr__card-title {
  color: #017439;
}

.page-gdpr__dark-section .page-gdpr__card-text {
  color: #555555;
}

/* Contact section */
.page-gdpr__contact-gdpr .page-gdpr__contact-info {
  text-align: center;
  font-size: 1.1em;
  color: #333333;
}

.page-gdpr__contact-gdpr .page-gdpr__contact-info p {
  margin-bottom: 10px;
}

.page-gdpr__link {
  color: #017439;
  text-decoration: underline;
}

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

/* Button styles */
.page-gdpr__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 30px;
}

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

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

.page-gdpr__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-gdpr__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
}

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

  .page-gdpr__section {
    padding: 40px 0;
  }

  .page-gdpr__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

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

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

  .page-gdpr__paragraph {
    font-size: 0.95em;
  }

  .page-gdpr__principles-grid, .page-gdpr__rights-list, .page-gdpr__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 20px;
  }

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

  .page-gdpr__card-text {
    font-size: 0.9em;
  }

  .page-gdpr__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  /* Mobile responsive for images, videos, and buttons */
  .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,
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__hero-content,
  .page-gdpr__contact-info,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-gdpr__btn-primary {
    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;
    overflow: hidden !important;
  }

  .page-gdpr__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: clamp(1.2em, 7vw, 2em);
  }
  .page-gdpr__section-title {
    font-size: 1.5em;
  }
  .page-gdpr__faq-item summary {
    font-size: 1em;
  }
  .page-gdpr__btn-primary {
    padding: 12px 20px;
    font-size: 1em;
  }
}