/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default light text for dark background */
  background-color: var(--background, #08160F); /* Dark background */
  padding-top: 0; /* Handled by body padding-top in shared.css */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--deep-green, #0A4B2C); /* Use a darker green for hero section background */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 8px;
}

.page-gdpr__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

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

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

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  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%); /* Custom button color */
  color: #ffffff; /* White text for contrast */
  border: none;
  margin-right: 15px;
}

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

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

.page-gdpr__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Section Titles */
.page-gdpr__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-main, #F2FFF6); /* Default for dark sections */
}

/* Light background sections */
.page-gdpr__light-bg .page-gdpr__section-title {
  color: var(--deep-green, #0A4B2C); /* Dark text for light backgrounds */
}

/* Text blocks */
.page-gdpr__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
  text-align: justify;
}

.page-gdpr__light-bg .page-gdpr__text-block {
  color: #333333; /* Dark text for light backgrounds */
}

.page-gdpr__highlight {
  color: var(--glow, #57E38D); /* Highlight color */
  font-weight: bold;
}

/* Image content within sections */
.page-gdpr__image-content {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Intro Section */
.page-gdpr__intro-section {
  background-color: #ffffff; /* White background for contrast */
  padding: 60px 0;
  color: #333333;
}

.page-gdpr__intro-section .page-gdpr__section-title,
.page-gdpr__intro-section .page-gdpr__text-block {
  color: #333333;
}

/* Data Types Section */
.page-gdpr__data-types-section {
  background-color: var(--card-bg, #11271B); /* Dark card background */
  padding: 60px 0;
}

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

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

.page-gdpr__data-list .page-gdpr__list-item::before {
  content: "•";
  color: var(--glow, #57E38D);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

/* Commitment Section */
.page-gdpr__commitment-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-gdpr__card {
  background-color: var(--card-bg, #11271B); /* Dark card background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary, #A7D9B8);
}

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

.page-gdpr__card-text {
  font-size: 0.95em;
  line-height: 1.5;
}

/* Rights Section */
.page-gdpr__rights-section {
  background-color: var(--background, #08160F); /* Main dark background */
  padding: 60px 0;
}

.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-gdpr__rights-list .page-gdpr__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
}

.page-gdpr__rights-list .page-gdpr__list-item::before {
  content: "✅";
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1.2;
}

/* Data Processing Section */
.page-gdpr__data-processing-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-gdpr__data-processing-section .page-gdpr__section-title,
.page-gdpr__data-processing-section .page-gdpr__text-block,
.page-gdpr__data-processing-section .page-gdpr__list-item {
  color: #333333;
}

.page-gdpr__processing-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-gdpr__processing-list .page-gdpr__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-gdpr__processing-list .page-gdpr__list-item::before {
  content: "➡️";
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1.2;
}

/* Security Section */
.page-gdpr__security-section {
  background-color: var(--background, #08160F);
  padding: 60px 0;
}

.page-gdpr__security-measures-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-gdpr__security-measures-list .page-gdpr__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
}

.page-gdpr__security-measures-list .page-gdpr__list-item::before {
  content: "🛡️";
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1.2;
}

/* Contact Section */
.page-gdpr__contact-section {
  background-color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-gdpr__contact-section .page-gdpr__section-title,
.page-gdpr__contact-section .page-gdpr__text-block,
.page-gdpr__contact-section .page-gdpr__contact-text {
  color: #333333;
}

.page-gdpr__contact-info {
  margin-top: 40px;
}

.page-gdpr__contact-text {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-gdpr__contact-text a {
  color: var(--deep-green, #0A4B2C);
  text-decoration: underline;
}

.page-gdpr__contact-info .page-gdpr__btn-primary {
  margin-right: 15px;
}

/* FAQ Section */
.page-gdpr__faq-section {
  background-color: var(--card-bg, #11271B); /* Dark card background */
  padding: 60px 0;
}

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

.page-gdpr__faq-item {
  background-color: var(--background, #08160F); /* Slightly darker than card background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-gdpr__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main, #F2FFF6);
  background-color: var(--background, #08160F);
}

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
  margin-right: 10px;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow, #57E38D);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: "−"; /* Change to minus when open */
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-gdpr__hero-section {
    padding-bottom: 40px;
  }

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

  .page-gdpr__section-title {
    font-size: clamp(1.5em, 4vw, 2em);
  }

  .page-gdpr__commitment-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
    padding-left: 0 !important; /* Remove container padding for full width image */
    padding-right: 0 !important; /* Remove container padding for full width image */
  }
  .page-gdpr__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

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

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

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px;
    margin-right: 0;
    padding: 12px 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-gdpr__hero-content .page-gdpr__btn-primary {
    margin-bottom: 15px;
  }

  .page-gdpr__contact-info .page-gdpr__btn-primary {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-gdpr__contact-info .page-gdpr__btn-secondary {
    margin-bottom: 0;
  }

  .page-gdpr__commitment-grid {
    grid-template-columns: 1fr;
  }

  .page-gdpr__card {
    padding: 25px;
  }

  /* All images must be responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images must be responsive */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__intro-section,
  .page-gdpr__data-types-section,
  .page-gdpr__commitment-section,
  .page-gdpr__rights-section,
  .page-gdpr__data-processing-section,
  .page-gdpr__security-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Enforcement */
/* Body background is dark (#08160F), so page content should use light text */
.page-gdpr {
  color: var(--text-main, #F2FFF6); /* Main text color */
}

/* Sections with light backgrounds (e.g., white) should have dark text */
.page-gdpr__light-bg {
  background-color: #ffffff;
  color: #333333;
}
.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__text-block,
.page-gdpr__light-bg .page-gdpr__list-item,
.page-gdpr__light-bg p,
.page-gdpr__light-bg li,
.page-gdpr__contact-section .page-gdpr__contact-text a {
  color: #333333;
}

/* Dark sections and cards */
.page-gdpr__dark-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-gdpr__card {
  background-color: var(--card-bg, #11271B);
  color: var(--text-secondary, #A7D9B8);
}
.page-gdpr__card .page-gdpr__card-title {
  color: var(--text-main, #F2FFF6);
}

/* Links within text blocks */
.page-gdpr a {
  color: var(--glow, #57E38D); /* Use a bright brand color for links */
  text-decoration: underline;
}
.page-gdpr a:hover {
  color: var(--gold, #F2C14E);
}