/* style/gdpr.css */

/* --- Base Styles --- */
/* body already has padding-top from shared.css */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Main content area itself doesn't have a background, relies on body */
  max-width: 100%; /* Ensure main content doesn't overflow */
  overflow-x: hidden; /* Prevent horizontal scroll for the page-gdpr container */
}

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

.page-gdpr__section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible sections on dark background */
  margin-bottom: 20px;
}

.page-gdpr__section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-gdpr__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* H1 with clamp for responsiveness */
  color: #FFFFFF;
  text-align: center;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-gdpr__text-block {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-gdpr__text-block strong {
  color: #FFFFFF;
}

.page-gdpr__link-text {
  color: #FFFF00; /* Yellow for links to stand out on dark background */
  text-decoration: underline;
}

.page-gdpr__link-text:hover {
  color: #C30808; /* Red for hover, matching login/register */
}

/* --- Buttons --- */
.page-gdpr__btn-primary {
  display: inline-block;
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #017439;
}

.page-gdpr__btn-primary:hover {
  background-color: #005a2c; /* Darker green on hover */
  transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.page-gdpr__hero-section {
  width: 100%;
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.7); /* Dark background for hero section to ensure text readability against the image */
}

.page-gdpr__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and text */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-content {
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* Ensure text is white on dark background */
}

/* --- Image Styling --- */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  filter: none; /* Ensure no filter is used on images by default */
}

/* --- Principle List --- */
.page-gdpr__principle-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__principle-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__principle-title {
  font-size: 1.4em;
  color: #FFFF00; /* Yellow for sub-titles */
  margin-bottom: 15px;
  font-weight: bold;
}

/* --- Security List --- */
.page-gdpr__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-gdpr__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  color: #f0f0f0;
}

.page-gdpr__security-item strong {
  color: #FFFF00;
}

/* --- Contact Info --- */
.page-gdpr__contact-info {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
  text-align: center;
  color: #f0f0f0;
}

.page-gdpr__contact-info p {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-gdpr__contact-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

/* --- FAQ / Details-Summary --- */
.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-gdpr__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* Remove default marker */
}

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

.page-gdpr__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-gdpr__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.03);
}

/* --- Conclusion CTA --- */
.page-gdpr__conclusion .page-gdpr__btn-primary {
  margin-top: 30px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-gdpr__section-title {
    font-size: 2em;
  }

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

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

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-gdpr__container {
    padding: 0 15px;
  }

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

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

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

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

  /* Images responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-gdpr__image-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    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 */
  }

  .page-gdpr__hero-content .page-gdpr__btn-primary {
    margin-left: 0;
    margin-right: 0;
  }

  .page-gdpr__principle-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__principle-item,
  .page-gdpr__security-item,
  .page-gdpr__contact-info,
  .page-gdpr__faq-item {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

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

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

  /* Ensure all content containers have padding */
  .page-gdpr__section .page-gdpr__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video containers (if present) */
  .page-gdpr video,
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-gdpr__video-section {
    padding-top: 10px !important;
  }

  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button groups */
  .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;
  }
}