/* style/gdpr.css */

/* Root variables (if any, typically in shared.css, but for local scope) */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-main: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
  --deep-green-rgb: 10, 75, 44; /* For rgba usage */
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color, assuming dark background */
  background-color: var(--bg-main, #08160F); /* Default background */
}

/* Base styles for sections */
.page-gdpr__hero-section,
.page-gdpr__introduction,
.page-gdpr__principles,
.page-gdpr__user-rights,
.page-gdpr__data-processing,
.page-gdpr__cookies-policy,
.page-gdpr__contact,
.page-gdpr__faq {
  padding: 60px 20px;
  text-align: center;
}

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

.page-gdpr__light-bg {
  background-color: var(--card-bg, #11271B); /* Using card bg for lighter sections on a dark body */
  color: var(--text-main, #F2FFF6);
}

.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added for mobile safety */
  box-sizing: border-box; /* Ensures padding is included in width */
}

/* Hero Section */
.page-gdpr__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  gap: 30px; /* Space between image and content */
}

.page-gdpr__hero-image {
  max-width: 100%; /* Ensures image is responsive */
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  filter: none; /* Explicitly ensure no filters are applied */
}

.page-gdpr__hero-content {
  max-width: 800px;
  text-align: center;
}

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

.page-gdpr__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

/* General Titles */
.page-gdpr__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--text-main, #F2FFF6);
}

/* Text Blocks */
.page-gdpr__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
  text-align: left;
}
.page-gdpr__text-block a {
  color: var(--gold, #F2C14E); /* Using Gold for links */
  text-decoration: underline;
}
.page-gdpr__text-block a:hover {
  color: var(--glow, #57E38D);
}

/* Lists */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
}

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

.page-gdpr__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--glow, #57E38D); /* Checkmark color */
  font-weight: bold;
}
.page-gdpr__list-item a {
  color: var(--gold, #F2C14E); /* Using Gold for links */
  text-decoration: underline;
}
.page-gdpr__list-item a:hover {
  color: var(--glow, #57E38D);
}

/* Buttons */
.page-gdpr__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%)); /* Custom button gradient */
  color: var(--text-main, #F2FFF6);
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding in width */
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Image content for regular sections */
.page-gdpr__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  filter: none; /* Explicitly ensure no filters are applied */
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-gdpr__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden; /* For smooth animation if JS is used */
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
  background-color: rgba(var(--deep-green-rgb, 10, 75, 44), 0.5); /* Use Deep Green with transparency */
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}
/* Style for <details> tag */
.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  background-color: rgba(var(--deep-green-rgb, 10, 75, 44), 0.5);
}
.page-gdpr__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}


/* Links in text blocks */
.page-gdpr__link {
  color: var(--gold, #F2C14E); /* Gold for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: var(--glow, #57E38D); /* Glow on hover */
  text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .page-gdpr__hero-section {
    padding: 40px 15px;
  }
  .page-gdpr__section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }
  .page-gdpr__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
}

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

  /* Universal image responsive styles */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none !important; /* Ensure no filters on mobile */
  }
  
  /* All containers for images, videos, buttons */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__introduction,
  .page-gdpr__principles,
  .page-gdpr__user-rights,
  .page-gdpr__data-processing,
  .page-gdpr__cookies-policy,
  .page-gdpr__contact,
  .page-gdpr__faq,
  .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;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons mobile adaptation */
  .page-gdpr__btn-primary,
  .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; /* Ensure text doesn't touch edges */
    padding-right: 15px; /* Ensure text doesn't touch edges */
    margin-bottom: 10px; /* Stack buttons if multiple */
  }

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

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

  .page-gdpr__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-gdpr__faq-answer {
    padding: 0 15px 15px 15px;
  }
  .page-gdpr__text-block, .page-gdpr__list-item {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-section,
  .page-gdpr__introduction,
  .page-gdpr__principles,
  .page-gdpr__user-rights,
  .page-gdpr__data-processing,
  .page-gdpr__cookies-policy,
  .page-gdpr__contact,
  .page-gdpr__faq {
    padding: 30px 10px;
  }
}

/* Ensure contrast for specific elements if needed */
.page-gdpr h1, .page-gdpr h2, .page-gdpr h3 {
  color: var(--text-main, #F2FFF6); /* Ensure headings are bright on dark backgrounds */
}

.page-gdpr p {
  color: var(--text-secondary, #A7D9B8); /* Secondary text color for paragraphs */
}