/* style/gdpr.css */

/* Body background color is var(--background) from shared.css. 
   Assuming it's a dark background based on the provided color scheme, 
   so text will be light. */
.page-gdpr {
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--background-main); /* #08160F */
  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: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  overflow: hidden;
}

.page-gdpr__hero-image-container {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-gdpr__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-gdpr__main-title {
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  /* font-size handled by shared, only use clamp if absolutely necessary */
}

.page-gdpr__hero-description {
  color: var(--text-secondary); /* #A7D9B8 */
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-gdpr__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 15px var(--glow); /* #57E38D */
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* #11A84E */
  border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-gdpr__btn-secondary:hover {
  background: var(--primary-color); /* #11A84E */
  color: #ffffff;
  box-shadow: 0 0 15px var(--glow); /* #57E38D */
}

.page-gdpr__content-section {
  padding: 50px 20px;
  box-sizing: border-box;
}

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

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

.page-gdpr__section-title {
  font-size: 2.2em;
  color: var(--text-main); /* #F2FFF6 */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-gdpr__text-block {
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 20px;
  font-size: 1.05em;
}

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

.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-gdpr__list-item {
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-gdpr__list-item::before {
  content: '✓';
  color: var(--primary-color); /* #11A84E */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-gdpr__faq-section {
  padding: 50px 20px;
  box-sizing: border-box;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-gdpr__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-gdpr__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-secondary); /* #A7D9B8 */
}

.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); /* #F2FFF6 */
  user-select: none;
  background-color: var(--card-bg); /* #11271B */
}

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

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

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

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color); /* #11A84E */
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary); /* #A7D9B8 */
  font-size: 0.95em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  max-height: 1000px; /* Sufficiently large value */
  padding-top: 10px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-gdpr__contact-cta-section {
  padding: 50px 20px;
  text-align: center;
  background-color: var(--background-main); /* #08160F */
  box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 40px 15px;
    padding-top: 10px; /* body handles header offset */
  }

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

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

  .page-gdpr__main-title {
    font-size: 2em;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    padding: 12px 15px;
  }

  .page-gdpr__content-section,
  .page-gdpr__faq-section,
  .page-gdpr__contact-cta-section {
    padding: 30px 15px;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-gdpr__text-block,
  .page-gdpr__list-item {
    font-size: 0.95em;
  }

  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
    overflow: hidden;
  }
  
  .page-gdpr__faq-question {
    padding: 15px 20px;
  }

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

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

  .page-gdpr__section-title {
    font-size: 1.6em;
  }
}