/* style/gdpr.css */

/* Root variables for consistent styling */
:root {
  --primary-color: #017439; /* Main brand green */
  --secondary-color: #FFFFFF; /* Main brand white */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #017439;
  --button-register-login: #C30808; /* Specific color for Register/Login */
  --font-register-login: #FFFF00; /* Specific font color for Register/Login buttons */
}

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Matches body background if shared.css sets it to secondary-color */
  padding-bottom: 60px; /* Add some padding at the bottom */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), #015c2e); /* Darker green gradient */
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-gdpr__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__hero-title {
  font-size: 44px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-light); /* Ensure title is light on dark background */
}

.page-gdpr__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* General Section Styling */
.page-gdpr__section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.page-gdpr__section:last-of-type {
  border-bottom: none;
}

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

.page-gdpr__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-gdpr__section-title--light {
  color: var(--text-light);
}

/* Content Wrapper for text and image side-by-side */
.page-gdpr__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-gdpr__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-gdpr__text-block {
  flex: 1;
}

.page-gdpr__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
}

.page-gdpr__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-gdpr__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* Ensure min size for all images */
  min-width: 200px;
  min-height: 200px;
}

.page-gdpr__image-centered {
  text-align: center;
  margin: 40px 0;
}

.page-gdpr__image-centered img {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* Ensure min size for all images */
  min-width: 200px;
  min-height: 200px;
}

/* Dark Section Specifics */
.page-gdpr__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-gdpr__card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-gdpr__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__card p {
  font-size: 16px;
  line-height: 1.6;
}

/* List Styling for User Rights */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-gdpr__list li {
  background-color: #f0fdf4; /* Light green background for list items */
  border-left: 5px solid var(--primary-color);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 4px;
  font-size: 17px;
  color: var(--text-dark);
}

.page-gdpr__list li strong {
  color: var(--primary-color);
}

/* Call-to-Action Buttons */
.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding doesn't increase total width */
}

.page-gdpr__cta-button:hover {
  background-color: #015c2e; /* Darker green on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__cta-button--secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 15px;
}

.page-gdpr__cta-button--secondary:hover {
  background-color: #e0e0e0;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-gdpr__btn-primary:hover {
  background-color: #015c2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}


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

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  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;
}

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

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

.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: #333;
  transform: rotate(180deg); /* Rotate for minus sign */
}

.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 20px;
  opacity: 0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-gdpr__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: var(--text-dark);
}

.page-gdpr__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-gdpr__hero-title {
    font-size: 38px;
  }
  .page-gdpr__hero-description {
    font-size: 16px;
  }
  .page-gdpr__section-title {
    font-size: 30px;
  }
  .page-gdpr__content-wrapper {
    flex-direction: column;
  }
  .page-gdpr__content-wrapper--reversed {
    flex-direction: column; /* Revert for small screens */
  }
  .page-gdpr__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 60px 15px;
    min-height: 300px;
    /* Fixed Header Spacing - Must re-set for mobile if shared.css doesn't handle it for body */
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-gdpr__hero-title {
    font-size: 32px;
  }
  .page-gdpr__hero-description {
    font-size: 15px;
  }
  .page-gdpr__section {
    padding: 40px 0;
  }
  .page-gdpr__container {
    padding: 0 15px;
  }
  .page-gdpr__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-gdpr__text-block p {
    font-size: 16px;
  }
  .page-gdpr__list li {
    font-size: 16px;
    padding: 12px 15px;
  }
  .page-gdpr__cta-button,
  .page-gdpr__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0; /* Remove margin for single column */
  }
  .page-gdpr__cta-button--secondary {
    margin-left: 0;
    margin-top: 15px; /* Add top margin between buttons */
  }
  .page-gdpr__contact-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  /* Images responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size on mobile */
    min-height: 200px !important;
  }
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-container,
  .page-gdpr__content-wrapper,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-gdpr__faq-answer {
    padding: 0 15px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px !important;
  }
}