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

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

/* Hero Section */
.page-gdpr__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile-first */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-color: #ffffff; /* White background for hero */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.page-gdpr__hero-content-wrapper {
  max-width: 900px;
  padding: 20px;
  order: 2; /* Content below image by default */
}

.page-gdpr__hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Clamp for responsive H1 */
  font-weight: 700;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-gdpr__hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box; /* For responsive buttons */
  white-space: normal; /* For responsive buttons */
  word-wrap: break-word; /* For responsive buttons */
  text-align: center;
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-gdpr__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-gdpr__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-gdpr__hero-image {
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
  order: 1; /* Image above content by default for mobile-first */
}

.page-gdpr__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default cover for desktop */
  border-radius: 10px;
}

/* Content Sections */
.page-gdpr__content-section {
  padding: 40px 0;
}

.page-gdpr__section {
  margin-bottom: 50px;
  background-color: #ffffff;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.page-gdpr__text-block {
  font-size: 1.05rem;
  text-align: justify;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__highlight {
  font-weight: 600;
  color: #FF5A4F;
}

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

.page-gdpr__rights-item {
  background: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__rights-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.page-gdpr__rights-heading {
  font-size: 1.3rem;
  color: #E53935;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__rights-description {
  font-size: 0.95rem;
  color: #555555;
}

/* Data Processing Details */
.page-gdpr__processing-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-gdpr__processing-item {
  background: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__processing-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.page-gdpr__processing-heading {
  font-size: 1.3rem;
  color: #E53935;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__processing-description {
  font-size: 0.95rem;
  color: #555555;
}

/* Data Sharing Details */
.page-gdpr__sharing-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-gdpr__sharing-item {
  background: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__sharing-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.page-gdpr__sharing-heading {
  font-size: 1.3rem;
  color: #E53935;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__sharing-description {
  font-size: 0.95rem;
  color: #555555;
}

/* Data Retention Details */
.page-gdpr__retention-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-gdpr__retention-item {
  background: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__retention-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.page-gdpr__retention-heading {
  font-size: 1.3rem;
  color: #E53935;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__retention-description {
  font-size: 0.95rem;
  color: #555555;
}

/* DPO Contact Section */
.page-gdpr__dark-section {
  background: #E53935; /* Main brand color for dark section */
  color: #ffffff; /* White text for dark background */
}

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

.page-gdpr__text-block--light {
  color: #f0f0f0;
}

.page-gdpr__dpo-contact-info {
  text-align: center;
  margin-top: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__contact-detail {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.page-gdpr__contact-detail--light {
  color: #ffffff;
}

.page-gdpr__contact-link {
  color: #FF5A4F; /* Lighter red for links on dark background */
  text-decoration: underline;
}

.page-gdpr__contact-link--light {
  color: #FF5A4F;
}

.page-gdpr__contact-instruction {
  font-size: 0.95rem;
  margin-top: 20px;
  color: #f0f0f0;
}

.page-gdpr__contact-instruction--light {
  color: #f0f0f0;
}

.page-gdpr__dpo-cta {
    margin-top: 40px;
    text-align: center;
}

/* Image wrappers */
.page-gdpr__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-gdpr__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #ffffff;
}
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;
}
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: #f5f5f5;
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer p {
    margin: 0;
    padding: 0;
}


/* Responsive Styles */
@media (min-width: 850px) {
  .page-gdpr__hero-section {
    flex-direction: row; /* Desktop: row layout for hero */
    text-align: left;
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .page-gdpr__hero-content-wrapper {
    order: 1; /* Content on left */
    padding-right: 40px;
  }

  .page-gdpr__hero-image {
    order: 2; /* Image on right */
    margin-top: 0;
    max-width: 50%;
  }

  .page-gdpr__hero-cta {
    justify-content: flex-start;
  }
}


@media (max-width: 768px) {
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
    margin-bottom: 20px;
  }

  .page-gdpr__hero-content-wrapper {
    padding: 15px;
  }

  .page-gdpr__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-gdpr__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-gdpr__hero-cta {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 10px;
    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 {
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-gdpr__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    border-radius: 5px;
  }

  .page-gdpr__section {
    padding: 25px 15px;
    margin-bottom: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 20px;
  }

  .page-gdpr__text-block {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* Grid sections for rights, processing, sharing, retention */
  .page-gdpr__rights-grid,
  .page-gdpr__processing-details,
  .page-gdpr__sharing-details,
  .page-gdpr__retention-details {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    margin-top: 20px;
  }

  .page-gdpr__rights-item,
  .page-gdpr__processing-item,
  .page-gdpr__sharing-item,
  .page-gdpr__retention-item {
    padding: 20px;
  }

  .page-gdpr__rights-heading,
  .page-gdpr__processing-heading,
  .page-gdpr__sharing-heading,
  .page-gdpr__retention-heading {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .page-gdpr__rights-description,
  .page-gdpr__processing-description,
  .page-gdpr__sharing-description,
  .page-gdpr__retention-description {
    font-size: 0.9rem;
  }

  .page-gdpr__image-wrapper {
    margin: 30px auto;
    border-radius: 5px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-gdpr__contact-detail,
  .page-gdpr__contact-instruction {
    font-size: 0.95rem;
  }

  details.page-gdpr__faq-item summary.page-gdpr__faq-question { padding: 15px; }
  .page-gdpr__faq-qtext { font-size: 15px; }
  .page-gdpr__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 15px 15px;
  }
}

/* Ensure all images and containers are responsive */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure content area images do not cause overflow */
.page-gdpr__content-section img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* General container responsiveness */
.page-gdpr__section,
.page-gdpr__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

@media (max-width: 768px) {
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-gdpr__section,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* For buttons and their containers */
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary,
  .page-gdpr a[class*="button"],
  .page-gdpr a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-gdpr__hero-cta,
  .page-gdpr__dpo-cta,
  .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;
    display: flex;
    flex-direction: column; /* Ensure buttons stack */
  }
}