/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #1F2D3D); /* Default to Text Main color */
  background-color: var(--page-bg-color, #F4F7FB); /* Use shared body background */
  padding-bottom: 60px;
}

/* Ensure all images are responsive and not smaller than 200px */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Minimum width requirement */
  min-height: 200px; /* Minimum height requirement */
  object-fit: cover; /* Ensure images cover their area without distortion */
}

/* Hero section for the GDPR page */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Adhere to the 10px top padding rule for non-homepage hero */
  background: linear-gradient(180deg, #6FA3FF, #2F6BFF); /* Use brand colors for background */
  color: #ffffff;
}

.page-gdpr__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

.page-gdpr__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-gdpr__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* Slightly smaller border-radius for the image itself */
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.page-gdpr__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Using clamp for responsive H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* Ensure high contrast on blue background */
}

.page-gdpr__lead-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9); /* Slightly softer white */
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-gdpr__cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* General section styles */
.page-gdpr__section {
  padding: 40px 20px;
  background-color: var(--card-bg-color, #FFFFFF); /* Default to white for sections */
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-gdpr__section:nth-of-type(odd) {
  background-color: var(--page-bg-color, #F4F7FB); /* Alternate background for better visual separation */
}

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

.page-gdpr__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main-color, #1F2D3D);
  margin-bottom: 25px;
  text-align: center;
}

.page-gdpr__section p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main-color, #1F2D3D);
}

.page-gdpr__section strong {
  color: var(--primary-color, #2F6BFF);
}

.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-gdpr__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--text-main-color, #1F2D3D);
}

.page-gdpr__list li::before {
  content: '✔'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: var(--primary-color, #2F6BFF);
  font-weight: bold;
}

.page-gdpr__image-content {
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px; /* Limit content images width */
  height: auto;
  min-width: 200px;
  min-height: 200px;
}

/* Contact DPO section specific styles */
.page-gdpr__contact-info {
  background-color: var(--page-bg-color, #F4F7FB);
  border: 1px solid var(--border-color, #D6E2FF);
  border-radius: 8px;
  padding: 25px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-gdpr__contact-info p {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--text-main-color, #1F2D3D);
}

.page-gdpr__contact-info a {
  color: var(--primary-color, #2F6BFF);
  text-decoration: none;
  font-weight: 600;
}

.page-gdpr__contact-info a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-gdpr__faq-intro {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--text-main-color, #1F2D3D);
}

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #D6E2FF);
  overflow: hidden;
  background: var(--card-bg-color, #FFFFFF);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color, #1F2D3D);
  font-weight: 600;
  font-size: 1.1rem;
}

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

details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: #f5f8fc; /* Lighter background on hover */
}

.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color, #1F2D3D);
}

.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color, #2F6BFF);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar effect */
}

details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: #f9fbfd; /* Slightly different background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color, #1F2D3D);
}

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

/* Conclusion section specific styles */
.page-gdpr__conclusion {
  text-align: center;
  background-color: var(--primary-color, #2F6BFF);
  color: #ffffff;
  padding: 50px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-gdpr__conclusion .page-gdpr__section-title {
  color: #ffffff;
}

.page-gdpr__conclusion p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
}

.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-gdpr__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #2F6BFF);
  border: 2px solid var(--primary-color, #2F6BFF);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #f0f8ff;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-gdpr__container {
    padding: 0 15px;
  }
}

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

  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Ensure 10px padding on mobile too */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-gdpr__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-gdpr__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-gdpr__lead-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-gdpr__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 20px;
  }

  .page-gdpr__section {
    padding: 30px 15px;
    margin-bottom: 20px;
  }

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

  .page-gdpr__section p,
  .page-gdpr__list li {
    font-size: 0.95rem;
  }

  .page-gdpr__list li::before {
    top: 3px;
  }

  .page-gdpr__image-content {
    margin: 20px auto;
    border-radius: 8px;
  }

  .page-gdpr__contact-info {
    padding: 20px;
  }

  details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    padding: 15px;
    font-size: 1rem;
  }
  
  .page-gdpr__faq-qtext {
    font-size: 15px;
  }

  .page-gdpr__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }

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

  .page-gdpr__faq-answer p {
    font-size: 0.9rem;
  }

  .page-gdpr__conclusion {
    padding: 40px 15px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    font-size: 1rem;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure all images are responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Ensure content sections and containers are responsive */
  .page-gdpr__section,
  .page-gdpr__container,
  .page-gdpr__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}