/* style/gdpr.css */

/* Body background color is var(--bg-color) from shared.css, which is #08160F (dark green) */
/* Therefore, text colors should be light for readability */

.page-gdpr {
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
  text-align: center;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text overlay contrast */
}

.page-gdpr__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 800px;
  width: 90%;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: clamp(1em, 2vw, 1.2em);
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-gdpr__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__content-section {
  padding: 60px 20px;
}

.page-gdpr__dark-bg {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-gdpr__light-bg {
  background-color: #ffffff;
  color: var(--text-contrast-fix, #333333); /* For light background, use dark text */
}

.page-gdpr__text-contrast-fix {
  color: var(--text-contrast-fix, #333333);
}

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

.page-gdpr__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

.page-gdpr__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
}

.page-gdpr__grid-layout {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-gdpr__grid-layout--reverse {
  flex-direction: row-reverse;
}

.page-gdpr__grid-item {
  flex: 1;
}

.page-gdpr__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

.page-gdpr__list li {
  margin-bottom: 10px;
}

.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-gdpr__faq-item .page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--card-bg, #11271B);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-gdpr__faq-item .page-gdpr__faq-question:hover {
  background-color: rgba(var(--card-bg-rgb, 17, 39, 27), 0.8);
}

.page-gdpr__faq-item summary {
  list-style: none;
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__grid-layout {
    flex-direction: column;
  }
  .page-gdpr__grid-layout--reverse {
    flex-direction: column;
  }
  .page-gdpr__hero-content {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-gdpr__hero-content {
    position: static;
    transform: none;
    margin-top: 20px;
    background: rgba(17, 39, 27, 0.9); /* Slightly less transparent on mobile */
  }
  .page-gdpr__main-title {
    font-size: 2.2em;
  }
  .page-gdpr__hero-description {
    font-size: 1em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr__content-section {
    padding: 40px 15px;
  }
  .page-gdpr__text-block, .page-gdpr__list {
    font-size: 0.95em;
  }
  .page-gdpr__faq-item .page-gdpr__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-gdpr__faq-answer {
    font-size: 0.9em;
    padding: 15px 20px;
  }

  /* Mobile image adaptation */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__section, .page-gdpr__card, .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Mobile button 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;
  }
  .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;
  }
  .page-gdpr__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 1.8em;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__hero-description {
    font-size: 0.9em;
  }
}