/* style/gdpr.css */

/* General styles for the page-gdpr scope */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for the dark background */
  background-color: #0A0A0A; /* Page background color */
}

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

.page-gdpr__section-spacing {
  padding: 60px 0;
}

.page-gdpr__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding for fixed header */
  background-color: #0A0A0A;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  height: 375px; /* Fixed height for desktop image display area */
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop: cover to fill */
  display: block;
}

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

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: #F2C14E; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for light button */
  border: none;
}

.page-gdpr__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Brand color */
  border: 2px solid #F2C14E;
}

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

/* Section titles */
.page-gdpr__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
}

.page-gdpr__text-block {
  font-size: 1.05em;
  color: #FFF6D6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  max-width: 800px; /* Max width for content images */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Dark section for contrast */
.page-gdpr__dark-section {
  background-color: #111111; /* Card BG */
}

.page-gdpr__text-main {
  color: #FFF6D6;
}

/* Key Principles Section */
.page-gdpr__principles-grid,
.page-gdpr__data-processing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-gdpr__principle-card,
.page-gdpr__processing-card {
  background-color: #0A0A0A; /* Background color for cards within dark section */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-gdpr__principle-card:hover,
.page-gdpr__processing-card:hover {
  transform: translateY(-5px);
}

.page-gdpr__card-title {
  font-size: 1.3em;
  color: #FFD36B; /* Auxiliary brand color */
  margin-bottom: 15px;
  font-weight: 600;
}

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

/* Your Rights Section */
.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-gdpr__rights-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-gdpr__rights-title {
  font-size: 1.2em;
  color: #F2C14E;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-gdpr__rights-description {
  font-size: 0.95em;
  color: #FFF6D6;
  line-height: 1.5;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
}

.page-gdpr__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #F2C14E;
  cursor: pointer;
  background-color: #111111;
  list-style: none; /* For <summary> */
  user-select: none;
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFD36B;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: #FFF6D6;
  line-height: 1.6;
}

.page-gdpr__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

.page-gdpr__faq-answer a {
  color: #F2C14E;
  text-decoration: underline;
}

/* CTA Section */
.page-gdpr__cta-content {
  text-align: center;
}

.page-gdpr__cta-content .page-gdpr__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__hero-image-wrapper {
    height: 300px; /* Adjust hero image height for tablets */
  }

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

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

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

  .page-gdpr__principles-grid,
  .page-gdpr__data-processing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

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

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

  .page-gdpr__section-spacing {
    padding: 30px 0;
  }

  /* Hero Section */
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Small top padding for fixed header */
  }

  .page-gdpr__hero-image-wrapper {
    height: 250px; /* Adjust hero image height for mobile */
  }

  .page-gdpr__hero-image {
    object-fit: contain !important; /* Mobile: contain to show full image without cropping */
    max-height: none !important; /* Override any max-height */
    aspect-ratio: unset !important; /* Override any aspect-ratio */
  }

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

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

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

  /* Buttons and Button Containers */
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Section Titles */
  .page-gdpr__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }

  .page-gdpr__text-block {
    font-size: 0.95em;
  }

  /* Images and Image Containers */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__content-image {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Card grids (Principles, Data Processing) */
  .page-gdpr__principles-grid,
  .page-gdpr__data-processing-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  .page-gdpr__principle-card,
  .page-gdpr__processing-card,
  .page-gdpr__rights-item,
  .page-gdpr__faq-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__card-title,
  .page-gdpr__rights-title {
    font-size: 1.1em;
  }

  .page-gdpr__card-text,
  .page-gdpr__rights-description,
  .page-gdpr__faq-answer {
    font-size: 0.9em;
  }

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

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