/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure background is light */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

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

.page-gdpr__section-title {
  font-size: 36px;
  color: #26A9E0; /* Brand primary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-gdpr__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Intro Section (not a true 'hero' as per homepage, but an intro with image) */
.page-gdpr__hero-intro-section {
  background-color: #f8f8f8; /* Light background */
  padding: 80px 0 40px;
}

.page-gdpr__intro-content {
  text-align: center;
  margin-bottom: 40px;
}

.page-gdpr__main-title {
  font-size: 48px;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-gdpr__intro-description {
  font-size: 19px;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-gdpr__hero-image {
  text-align: center;
  margin-top: 30px;
}

.page-gdpr__hero-image img {
  width: 100%;
  height: auto;
  max-width: 1000px; /* Adjust max-width for visual balance */
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Principles Section */
.page-gdpr__principles-section {
  background-color: #FFFFFF;
}

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

.page-gdpr__card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-gdpr__card-title {
  font-size: 22px;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-gdpr__card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 0;
  text-align: left;
}

/* Rights Section */
.page-gdpr__rights-section {
  background-color: #26A9E0; /* Darker background from brand color */
  color: #ffffff; /* White text for contrast */
}

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

.page-gdpr__image-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-gdpr__image-content img {
  flex: 1;
  min-width: 300px; /* Minimum width for image before wrapping */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-gdpr__list {
  flex: 2;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-gdpr__list-item {
  font-size: 17px;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-gdpr__list-item::before {
  content: '✓'; /* Checkmark icon */
  color: #FFFFFF;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Compliance Measures Section */
.page-gdpr__compliance-measures {
  background-color: #FFFFFF;
}

.page-gdpr__compliance-measures .page-gdpr__grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-gdpr__compliance-measures .page-gdpr__card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block; /* Important for responsive images */
}

/* Contact Section */
.page-gdpr__contact-section {
  background-color: #26A9E0; /* Darker background */
  color: #ffffff;
}

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

.page-gdpr__contact-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-gdpr__contact-info {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-gdpr__contact-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-gdpr__contact-image img {
  width: 100%;
  height: auto;
  max-width: 500px; /* Max width for contact image */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login button color */
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-gdpr__cta-button:hover {
  background: #d46e06; /* Slightly darker orange */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-gdpr__faq-section {
  background-color: #f8f8f8;
  padding-bottom: 80px;
}

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

/* FAQ item styles */
.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use!important to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff; /* White background for answers */
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

/* Question styles */
.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-gdpr__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-gdpr__faq-question:active {
  background: #eeeeee;
}

/* Question title styles */
.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-gdpr__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0; /* Brand color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e0f2f7; /* Light background for toggle */
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: #FFFFFF;
  background-color: #26A9E0; /* Brand color when active */
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 40px;
  }
  .page-gdpr__section-title {
    font-size: 30px;
  }
  .page-gdpr__grid {
    gap: 20px;
  }
  .page-gdpr__image-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-gdpr__image-content img {
    max-width: 100%;
  }
  .page-gdpr__contact-flex {
    flex-direction: column;
  }
  .page-gdpr__contact-info,
  .page-gdpr__contact-image {
    text-align: center;
  }
  .page-gdpr__contact-image img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-gdpr__main-title {
    font-size: 32px;
  }

  .page-gdpr__intro-description {
    font-size: 17px;
  }

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

  .page-gdpr__paragraph {
    font-size: 16px;
  }

  /* Responsive images */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Responsive containers for images */
  .page-gdpr__hero-image,
  .page-gdpr__image-content,
  .page-gdpr__contact-image,
  .page-gdpr__compliance-measures .page-gdpr__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-gdpr__card {
    padding: 25px;
  }

  .page-gdpr__card-title {
    font-size: 20px;
  }

  .page-gdpr__card-text {
    font-size: 15px;
  }

  .page-gdpr__list-item {
    font-size: 16px;
  }

  /* CTA Button responsive */
  .page-gdpr__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    margin-top: 20px !important;
  }

  /* FAQ mobile */
  .page-gdpr__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-gdpr__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-gdpr__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-gdpr__faq-answer {
    padding: 0 15px;
  }
  
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px !important;
  }
}