/* style/gdpr.css */

/* --- Base Styles --- */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background, #08160F); /* Page background color */
  line-height: 1.6;
  font-size: 16px;
  /* body already has padding-top from shared.css, no need to add here */
}

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

.page-gdpr__section {
  padding: 60px 0;
  text-align: center;
}

.page-gdpr__dark-section {
  background-color: var(--card-bg, #11271B); /* Use card background for dark sections */
  color: var(--text-main, #F2FFF6);
}

.page-gdpr__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.2;
}

.page-gdpr__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--gold, #F2C14E); /* Using gold for sub-titles */
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-gdpr__content-block {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr p {
  margin-bottom: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-gdpr a {
  color: var(--gold, #F2C14E); /* Links in content */
  text-decoration: none;
}

.page-gdpr a:hover {
  text-decoration: underline;
}

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

.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;
  min-height: 400px; /* Ensure images are large */
  border-radius: 10px;
  filter: none; /* No filter */
}

.page-gdpr__hero-content {
  max-width: 900px;
  padding: 40px 20px 0;
  text-align: center;
  z-index: 1; /* Ensure content is above image if any overlap */
  color: var(--text-main, #F2FFF6);
}

.page-gdpr__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* --- Buttons --- */
.page-gdpr__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* --- Grid Layout for Rights Section --- */
.page-gdpr__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%; /* Ensure cards are responsive */
  box-sizing: border-box;
}

.page-gdpr__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* No filter */
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
}

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

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

/* --- Image Content (e.g., Cookie Policy) --- */
.page-gdpr__image-content {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  filter: none; /* No filter */
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
}

/* --- Contact List --- */
.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__contact-item {
  background-color: var(--background, #08160F);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  color: var(--text-secondary, #A7D9B8);
  display: flex;
  align-items: center;
}

.page-gdpr__contact-item strong {
  color: var(--text-main, #F2FFF6);
  margin-right: 10px;
}

/* --- FAQ Section --- */
.page-gdpr__faq-section {
  background-color: var(--background, #08160F);
  padding-bottom: 80px;
}

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

.page-gdpr__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-gdpr__faq-item summary {
  list-style: none; /* Hide default marker for Firefox */
}

.page-gdpr__faq-question:hover {
  background-color: rgba(var(--gold-rgb, 242, 193, 78), 0.1); /* Slight hover effect */
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold, #F2C14E);
  margin-left: 15px;
}

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

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

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

  .page-gdpr__sub-title {
    font-size: 1.5em;
  }

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

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

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

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

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

  .page-gdpr__sub-title {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-gdpr__hero-section {
    padding: 10px 0 40px 0;
  }

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

  .page-gdpr__main-title {
    font-size: clamp(2em, 7vw, 2.5em); /* More aggressive clamp for mobile H1 */
  }

  .page-gdpr__intro-text {
    font-size: 1.1em;
    margin-bottom: 25px;
  }

  .page-gdpr__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-gdpr__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__card-title {
    font-size: 1.2em;
  }

  .page-gdpr__card-image {
    height: 180px; /* Adjust height for smaller screens */
    min-width: 200px;
    min-height: 200px;
  }

  .page-gdpr__image-content {
    max-height: 300px;
    min-width: 200px;
    min-height: 200px;
  }

  /* Mobile image responsiveness (mandatory) */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness (mandatory) */
  .page-gdpr video,
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons must have these */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper,
  .page-gdpr__cta-buttons,
  .page-gdpr__button-group,
  .page-gdpr__btn-container,
  .page-gdpr__content-block { /* Added content-block to ensure it also adapts */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for video section top */
  .page-gdpr__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Multiple buttons in mobile */
  .page-gdpr__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
}

/* Ensure no image filters are applied */
.page-gdpr img {
  filter: none;
}

/* Ensure content area images are not smaller than 200px */
.page-gdpr .page-gdpr__content-area img,
.page-gdpr .page-gdpr__card img,
.page-gdpr .page-gdpr__image-content {
  min-width: 200px;
  min-height: 200px;
}