/* style/gdpr.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark-section: #26A9E0;
  --btn-login: #EA7C07;
}

/* Base styles for .page-gdpr, assuming body background is light */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--bg-light); /* Default light background, assuming shared.css sets body background */
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f0f8ff; /* Light background for hero section */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-gdpr__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width for large screens */
  height: auto;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__hero-content {
  max-width: 900px;
  width: 100%; /* Ensure content block takes full width up to max-width */
  z-index: 1;
}

.page-gdpr__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive H1 font size */
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styles */
.page-gdpr__section {
  padding: 60px 20px;
  background-color: var(--bg-light);
  border-bottom: 1px solid #eee;
}

.page-gdpr__section--intro {
  text-align: center;
}

.page-gdpr__section--data-usage,
.page-gdpr__section--security {
  background-color: var(--bg-dark-section); /* Brand primary color as background */
  color: var(--text-light); /* Light text for dark background */
}

.page-gdpr__section--data-usage .page-gdpr__heading,
.page-gdpr__section--security .page-gdpr__heading {
  color: var(--text-light);
}

.page-gdpr__section--data-usage .page-gdpr__paragraph,
.page-gdpr__section--security .page-gdpr__paragraph {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-gdpr__heading {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
}

.page-gdpr__sub-heading {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.page-gdpr__section--data-usage .page-gdpr__sub-heading,
.page-gdpr__section--security .page-gdpr__sub-heading {
  color: var(--text-light);
}

.page-gdpr__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-gdpr__list-block {
  margin-bottom: 30px;
}

.page-gdpr__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-gdpr__list-item {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.page-gdpr__image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't cause overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
  min-width: 180px; /* Ensure buttons are not too small */
}

.page-gdpr__btn-primary {
  background-color: var(--btn-login); /* Login color for primary action */
  color: var(--text-light);
  border: 2px solid var(--btn-login);
}

.page-gdpr__btn-primary:hover {
  background-color: #d16b06; /* Darken #EA7C07 */
  border-color: #d16b06; /* Darken #EA7C07 */
  transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-gdpr__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.page-gdpr__section--dark-bg .page-gdpr__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-gdpr__section--dark-bg .page-gdpr__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-gdpr__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.page-gdpr__text-link:hover {
  color: #1f8bc2; /* Darken #26A9E0 */
}

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

.page-gdpr__faq-item {
  background-color: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  user-select: none;
}

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

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
  background-color: #e6f7ff;
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
}

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #555;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: '−';
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #555;
}

.page-gdpr__faq-answer p {
  margin-bottom: 0;
}

/* Details element specific styling to remove default marker */
.page-gdpr__faq-item > summary {
  list-style: none;
}
.page-gdpr__faq-item > summary::-webkit-details-marker {
  display: none;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .page-gdpr__heading {
    font-size: 2rem;
  }

  .page-gdpr__sub-heading {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already has padding-top */
  }

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

  .page-gdpr__description {
    font-size: 1rem;
  }

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

  .page-gdpr__heading {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-gdpr__sub-heading {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-gdpr__paragraph,
  .page-gdpr__list-item {
    font-size: 0.95rem;
  }

  /* Image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important; /* Ensure minimum size */
  }
  
  /* Ensure all containers with images or content are responsive */
  .page-gdpr__section,
  .page-gdpr__container,
  .page-gdpr__card,
  .page-gdpr__list-block,
  .page-gdpr__faq-list,
  .page-gdpr__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Button responsiveness */
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    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;
    min-width: unset; /* Allow buttons to shrink */
  }

  .page-gdpr__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-gdpr__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-gdpr__description {
    font-size: 0.9rem;
  }

  .page-gdpr__section {
    padding: 30px 10px;
  }

  .page-gdpr__heading {
    font-size: 1.6rem;
  }
}

/* Ensure no image filters are used */
.page-gdpr img {
  filter: none !important;
}

/* Color contrast fixes for specific elements if needed */
.page-gdpr__dark-section .page-gdpr__list-item strong {
  color: var(--text-light); /* Ensure bold text is visible on dark background */
}

.page-gdpr__faq-item .page-gdpr__faq-qtext {
  color: var(--primary-color); /* Ensure question text is visible */
}
.page-gdpr__faq-item[open] .page-gdpr__faq-qtext {
  color: var(--primary-color); /* Ensure question text is visible when open */
}

/* Ensure minimum image size for content images */
.page-gdpr__image {
  min-width: 200px;
  min-height: 200px;
}