/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color from palette */
  background-color: var(--background, #0A0A0A); /* Default background from palette */
}

/* Hero Section */
.page-gdpr__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  text-align: center;
  padding-bottom: 40px; /* Consistent bottom padding */
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  /* Ensure content is not hidden by fixed header */
  padding-top: var(--header-offset, 120px); /* Desktop default */
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Use brand colors */
  color: #000000; /* Dark text for light gradient background */
}

.page-gdpr__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 5vw, 2.8em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #000000; /* Dark text for contrast on light background */
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #333333; /* Darker text for readability */
}

.page-gdpr__cta-buttons {
  display: flex;
  flex-direction: column; /* Stack buttons on mobile */
  gap: 15px;
  max-width: 350px; /* Limit button group width */
  width: 100%;
  margin: 0 auto;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: block; /* Make buttons block level for stacking */
  padding: 15px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
  color: #000000; /* Black text for contrast on gold button */
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  color: #111111;
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: #000000; /* Black text for contrast on light background */
  border: 2px solid #DDA11D; /* Border from button gradient */
}

.page-gdpr__btn-secondary:hover {
  background: #DDA11D;
  color: #FFFFFF;
}

.page-gdpr__hero-image-container {
  width: 100%;
  max-width: 1000px; /* Max width for the hero image */
  margin-top: 30px;
  overflow: hidden; /* Ensure image doesn't overflow */
  border-radius: 10px;
}

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* General Section Styles */
.page-gdpr__section {
  padding: 60px 20px;
  box-sizing: border-box;
  width: 100%;
}

.page-gdpr__section--dark {
  background-color: var(--card-bg, #111111); /* Card background for dark sections */
}

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

.page-gdpr__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main, #FFF6D6);
}

.page-gdpr__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #E0E0E0; /* Lighter text for intros */
}

/* Card Grid */
.page-gdpr__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-gdpr__card {
  background-color: var(--card-bg, #111111);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #FFF6D6);
  border: 1px solid var(--border, #3A2A12);
}

.page-gdpr__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow, #FFD36B); /* Glow color for titles */
}

.page-gdpr__card-text {
  font-size: 1em;
  color: #E0E0E0;
}

/* Features Grid */
.page-gdpr__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-gdpr__feature-item {
  background-color: var(--card-bg, #111111);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #3A2A12);
}

.page-gdpr__feature-icon {
  width: 200px; /* Enforce min size for content images */
  height: 200px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--glow, #FFD36B)); /* Add glow effect */
}

.page-gdpr__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--glow, #FFD36B);
}

.page-gdpr__feature-text {
  font-size: 0.95em;
  color: #E0E0E0;
}

/* Info Grid */
.page-gdpr__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-gdpr__info-item {
  background-color: var(--background, #0A0A0A); /* Dark background for info items in dark section */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border, #3A2A12);
  color: var(--text-main, #FFF6D6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__info-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

.page-gdpr__info-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow, #FFD36B);
}

.page-gdpr__info-text {
  font-size: 1em;
  color: #E0E0E0;
}

/* Content Block */
.page-gdpr__content-block {
  background-color: var(--card-bg, #111111);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--border, #3A2A12);
  color: var(--text-main, #FFF6D6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__content-subtitle {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--glow, #FFD36B);
}

.page-gdpr__content-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: #E0E0E0;
}

/* Contact Info Grid */
.page-gdpr__contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-gdpr__contact-card {
  background-color: var(--background, #0A0A0A);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border, #3A2A12);
  color: var(--text-main, #FFF6D6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push button to bottom */
}

.page-gdpr__contact-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow, #FFD36B);
}

.page-gdpr__contact-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow */
  color: #E0E0E0;
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding-bottom: 80px;
}

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

.page-gdpr__faq-item {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main, #FFF6D6);
  background-color: #1a1a1a; /* Slightly lighter than card bg */
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
  background-color: #2a2a2a;
  color: var(--glow, #FFD36B);
}

.page-gdpr__faq-question h3 {
  margin: 0;
  font-size: 1em; /* Adjust h3 inside question */
  color: inherit;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--glow, #FFD36B);
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #E0E0E0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
  padding-top: 0; /* Adjust padding for smooth transition */
}

.page-gdpr__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  color: inherit;
}


/* Responsive Design */
@media (min-width: 768px) {
  .page-gdpr__hero-section {
    flex-direction: row; /* Desktop: row layout */
    text-align: left;
    padding-top: var(--header-offset, 120px); /* Desktop default */
    padding-bottom: 60px;
    justify-content: center;
  }

  .page-gdpr__hero-content {
    margin-right: 50px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .page-gdpr__cta-buttons {
    flex-direction: row; /* Desktop: row buttons */
    max-width: none;
    justify-content: flex-start;
  }

  .page-gdpr__hero-image-container {
    margin-top: 0;
  }

  .page-gdpr__section-title {
    margin-bottom: 30px;
  }

  .page-gdpr__section-intro {
    margin-bottom: 60px;
  }
}

@media (min-width: 1024px) {
  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure consistent header offset */
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Mobile specific overrides */
@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px; /* Add padding to container */
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .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;
  }

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

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

  .page-gdpr__section-title {
    font-size: clamp(1.5em, 7vw, 2em);
    margin-bottom: 15px;
  }

  .page-gdpr__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-gdpr__card,
  .page-gdpr__feature-item,
  .page-gdpr__info-item,
  .page-gdpr__contact-card,
  .page-gdpr__content-block {
    padding: 20px;
    margin-bottom: 20px; /* Add margin for spacing between cards */
  }

  .page-gdpr__card-title,
  .page-gdpr__feature-title,
  .page-gdpr__info-title,
  .page-gdpr__contact-title,
  .page-gdpr__content-subtitle {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  .page-gdpr__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }

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

  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px;
    padding-top: 0;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Ensure content area images are not too small */
.page-gdpr__feature-icon,
.page-gdpr__info-image {
  min-width: 200px;
  min-height: 200px;
}