/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background, #08160F); /* Fallback to custom deep green/black */
  color: var(--text-main, #F2FFF6); /* Fallback to custom light greenish white */
}

.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 */
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
  text-align: center;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-gdpr__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

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

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6); /* Light text for secondary button */
  border: 2px solid var(--border, #2E7A4E);
}

.page-gdpr__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Slight background on hover */
  transform: translateY(-2px);
}

.page-gdpr__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-gdpr__light-bg {
  background-color: #f8f8f8; /* A very light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-gdpr__text-contrast-fix {
  color: #333333; /* For sections with light background */
}

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

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

.page-gdpr__text-block {
  font-size: 1.05em;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-gdpr__card-grid,
.page-gdpr__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__card {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%; /* Ensure cards are same height */
  box-sizing: border-box;
}

.page-gdpr__card-image,
.page-gdpr__feature-image {
  width: 100%;
  height: auto;
  min-height: 200px; /* Min size for all images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-gdpr__card-title,
.page-gdpr__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-gdpr__card-text,
.page-gdpr__feature-description {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
}

.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-gdpr__rights-item {
  background-color: #ffffff; /* White background for light section cards */
  color: #333333; /* Dark text */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-gdpr__rights-item:hover {
  transform: translateY(-5px);
}

.page-gdpr__rights-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #11A84E; /* Brand primary color for titles */
}

.page-gdpr__rights-description {
  font-size: 0.95em;
  color: #555555;
}

.page-gdpr__policy-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-gdpr__policy-item {
  background-color: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: 100%;
  box-sizing: border-box;
}

.page-gdpr__policy-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #11A84E;
}

.page-gdpr__policy-description {
  font-size: 0.95em;
  color: #555555;
}

.page-gdpr__link {
  color: #11A84E; /* Brand primary color for links */
  text-decoration: underline;
}

.page-gdpr__link:hover {
  color: #22C768; /* Brand secondary color on hover */
}

.page-gdpr__contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__contact-card {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  height: 100%;
  box-sizing: border-box;
}

.page-gdpr__contact-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-gdpr__contact-text {
  font-size: 0.95em;
  margin-bottom: 10px;
  color: var(--text-secondary, #A7D9B8);
}

.page-gdpr__contact-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: bold;
  text-decoration: none;
  color: var(--glow, #57E38D); /* Glow color for contact links */
}

.page-gdpr__contact-link:hover {
  text-decoration: underline;
  color: #2AD16F;
}

.page-gdpr__faq-section {
  padding-bottom: 80px;
}

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

.page-gdpr__faq-item {
  background-color: #ffffff;
  color: #333333;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-gdpr__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  background-color: #ffffff;
  position: relative;
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none;   /* Disable text selection on iOS */
  -khtml-user-select: none;    /* Disable text selection on Konqueror HTML */
  -moz-user-select: none;      /* Disable text selection on Firefox */
  -ms-user-select: none;       /* Disable text selection on Internet Explorer/Edge */
  user-select: none;           /* Disable text selection */
}

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

.page-gdpr__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #11A84E;
}

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

.page-gdpr__faq-answer {
  padding: 15px 25px 25px;
  font-size: 0.95em;
  line-height: 1.7;
  color: #555555;
  border-top: 1px solid #eee;
}

.page-gdpr__conclusion .page-gdpr__text-block {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-gdpr__hero-section {
    padding: 40px 15px;
  }

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

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

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

  .page-gdpr__card-grid,
  .page-gdpr__feature-grid,
  .page-gdpr__rights-list,
  .page-gdpr__policy-points,
  .page-gdpr__contact-details {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-gdpr__hero-image {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 30px 15px;
  }

  .page-gdpr__hero-image {
    margin-bottom: 15px;
  }

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

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

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

  .page-gdpr__text-block,
  .page-gdpr__hero-description,
  .page-gdpr__card-text,
  .page-gdpr__feature-description,
  .page-gdpr__rights-description,
  .page-gdpr__policy-description,
  .page-gdpr__contact-text,
  .page-gdpr__faq-answer {
    font-size: 1em;
  }

  .page-gdpr__card-title,
  .page-gdpr__feature-title,
  .page-gdpr__rights-title,
  .page-gdpr__policy-title,
  .page-gdpr__contact-title {
    font-size: 1.2em;
  }

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

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary,
  .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__hero-image-wrapper,
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__card-grid,
  .page-gdpr__feature-grid,
  .page-gdpr__rights-list,
  .page-gdpr__policy-points,
  .page-gdpr__contact-details,
  .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;
  }

  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__hero-section {
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-gdpr__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

@media (max-width: 480px) {
  .page-gdpr__card-grid,
  .page-gdpr__feature-grid,
  .page-gdpr__rights-list,
  .page-gdpr__policy-points,
  .page-gdpr__contact-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Color contrast fixes for light background */
.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__text-block,
.page-gdpr__light-bg .page-gdpr__rights-item .page-gdpr__rights-title,
.page-gdpr__light-bg .page-gdpr__rights-item .page-gdpr__rights-description,
.page-gdpr__light-bg .page-gdpr__policy-item .page-gdpr__policy-title,
.page-gdpr__light-bg .page-gdpr__policy-item .page-gdpr__policy-description,
.page-gdpr__light-bg .page-gdpr__faq-item summary,
.page-gdpr__light-bg .page-gdpr__faq-item .page-gdpr__faq-answer {
  color: #333333; /* Ensure dark text on light background */
}

.page-gdpr__light-bg .page-gdpr__link {
  color: #11A84E; /* Brand primary for links on light bg */
}

.page-gdpr__light-bg .page-gdpr__faq-toggle {
  color: #11A84E; /* Brand primary for toggle on light bg */
}