/* style/gdpr.css */

/* --- Base Styles & Variables (Scoped to .page-gdpr) --- */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

/* --- Typography --- */
.page-gdpr__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow for emphasis */
  text-align: center;
}

.page-gdpr__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 60px;
  margin-bottom: 30px;
  color: #FFD36B; /* Glow */
  text-align: center;
}

.page-gdpr__card-title {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E; /* Main color */
  line-height: 1.4;
}

.page-gdpr__feature-title {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #F2C14E; /* Main color */
}

.page-gdpr p,
.page-gdpr li {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  margin-bottom: 15px;
  color: #FFF6D6; /* Text Main */
}

.page-gdpr a {
  color: #F2C14E; /* Main color for links */
  text-decoration: underline;
}

.page-gdpr a:hover {
  color: #FFD36B; /* Auxiliary color on hover */
  text-decoration: none;
}

/* --- Buttons --- */
.page-gdpr__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for light button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-gdpr__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-gdpr__btn-contact {
  margin-top: 30px;
}

/* --- Sections & Layout --- */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  position: relative;
  /* Use aspect ratio for image wrapper */
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-gdpr__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-gdpr__hero-content {
  position: relative; /* Ensure content is above image wrapper if they overlap */
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-gdpr__intro-section,
.page-gdpr__rights-section,
.page-gdpr__security-measures-section,
.page-gdpr__cookies-section,
.page-gdpr__children-privacy-section,
.page-gdpr__contact-dpo-section,
.page-gdpr__conclusion-section {
  padding: 80px 0;
}

.page-gdpr__principles-section,
.page-gdpr__data-collection-section,
.page-gdpr__data-sharing-section,
.page-gdpr__changes-policy-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

/* --- Card Styles --- */
.page-gdpr__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #FFF6D6; /* Text Main */
  height: 100%; /* Ensure cards in a grid have equal height */
}

/* --- Grid Layouts --- */
.page-gdpr__principles-grid,
.page-gdpr__sharing-grid,
.page-gdpr__cookie-types,
.page-gdpr__age-measures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__data-collection-section .page-gdpr__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-gdpr__feature-icon {
  width: 200px; /* Minimum size */
  height: 200px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-gdpr__contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

/* --- FAQ Styles --- */
.page-gdpr__rights-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  color: #F2C14E; /* Main color */
  font-weight: 600;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.page-gdpr__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Glow */
}

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

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 30px 30px;
}

.page-gdpr__faq-answer p {
  margin-bottom: 0; /* Remove extra margin from last paragraph in answer */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-gdpr__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  .page-gdpr__principles-grid,
  .page-gdpr__sharing-grid,
  .page-gdpr__cookie-types,
  .page-gdpr__age-measures,
  .page-gdpr__data-collection-section .page-gdpr__content-grid,
  .page-gdpr__security-features,
  .page-gdpr__contact-info {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

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

  .page-gdpr__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

  .page-gdpr__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-gdpr__card-title {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
  }

  .page-gdpr p,
  .page-gdpr li {
    font-size: 1rem;
  }

  .page-gdpr__btn-primary {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-gdpr__hero-content .page-gdpr__btn-primary {
    margin-top: 20px;
  }
  
  .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;
  }

  /* Images responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__section,
  .page-gdpr__container,
  .page-gdpr__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 10px 20px 20px;
  }

  .page-gdpr__security-features {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  .page-gdpr__feature-icon {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__principles-grid,
  .page-gdpr__sharing-grid,
  .page-gdpr__cookie-types,
  .page-gdpr__age-measures,
  .page-gdpr__data-collection-section .page-gdpr__content-grid,
  .page-gdpr__contact-info {
    grid-template-columns: 1fr; /* Single column on smallest screens */
  }
}