/* style/gdpr.css */

/* Global styles for .page-gdpr scope */
.page-gdpr {
  background-color: var(--bg-color, #08160F); /* Fallback to default if --bg-color not set in shared */
  color: var(--text-main-color, #F2FFF6); /* Main text color for dark background */
  font-family: Arial, sans-serif; /* Example font */
  line-height: 1.6;
  font-size: 16px;
}

.page-gdpr h1,
.page-gdpr h2,
.page-gdpr h3,
.page-gdpr h4,
.page-gdpr h5,
.page-gdpr h6 {
  color: var(--text-main-color, #F2FFF6);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-gdpr h1 {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
}

.page-gdpr h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-top: 40px;
}

.page-gdpr h3 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-top: 30px;
}

.page-gdpr p {
  margin-bottom: 15px;
  color: var(--text-main-color, #F2FFF6);
}

.page-gdpr__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main-color, #F2FFF6);
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  color: var(--text-main-color, #F2FFF6);
}

.page-gdpr__list-item strong {
  color: var(--gold-color, #F2C14E); /* Highlight strong text */
}

.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add padding for mobile responsiveness */
  box-sizing: border-box;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-gdpr__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 15px;
}

.page-gdpr__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Primary Button */
.page-gdpr__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main-color, #F2FFF6);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-gdpr__content-area {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

.page-gdpr__dark-section {
  background-color: var(--card-bg-color, #11271B); /* Darker background for contrast */
}

.page-gdpr__section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color, #F2FFF6);
}

.page-gdpr__text-block {
  margin-bottom: 25px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-gdpr__sub-title {
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
}

.page-gdpr__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 60px 0;
  text-align: center;
}

.page-gdpr__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-gdpr__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color, #F2FFF6);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--deep-green-color, #0A4B2C);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-gdpr__faq-question:hover {
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
  color: var(--text-main-color, #F2FFF6);
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color, #F2C14E);
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary-color, #A7D9B8);
  /* For details/summary, native handles max-height. If JS-based, uncomment below */
  /* max-height: 0; */
  /* overflow: hidden; */
  /* transition: max-height 0.3s ease-out; */
}

/* For <details> tag, the content is shown when 'open' attribute is present. */
/* The max-height transition is not needed for native details element, but good for JS fallback */
/* .page-gdpr__faq-item[open] .page-gdpr__faq-answer { */
/*   max-height: 2000px; */
/*   transition: max-height 0.5s ease-in; */
/* } */

/* Responsive styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 15px;
  }

  .page-gdpr h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .page-gdpr h2 {
    font-size: clamp(1.6rem, 4.5vw, 2rem);
  }

  .page-gdpr h3 {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  }

  .page-gdpr__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body handles --header-offset, this is for decor */
  }

  .page-gdpr__hero-image-wrapper {
    max-height: 300px;
  }

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

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

  .page-gdpr__content-area {
    padding: 40px 0;
  }

  .page-gdpr__faq-section {
    padding: 40px 0;
  }

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

  /* Images responsive adaptation */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for images, videos, buttons */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__content-area,
  .page-gdpr__faq-section,
  .page-gdpr__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons responsive adaptation */
  .page-gdpr__btn-primary,
  .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;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center; /* Center button text on mobile */
  }

  .page-gdpr__cta-buttons,
  .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; /* Space between buttons if multiple */
  }
}

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

  .page-gdpr__hero-image-wrapper {
    max-height: 200px;
  }

  .page-gdpr__btn-primary {
    font-size: 0.9em;
    padding: 10px 20px;
  }

  .page-gdpr__faq-question {
    font-size: 0.9em;
    padding: 12px 15px;
  }
}