/* style/gdpr.css */

/* --- Root Variables & Base Styles (Scoped to .page-gdpr) --- */
.page-gdpr {
  --primary-color: #002060; /* Navy Blue / Royal Blue */
  --secondary-color: #FFD700; /* Gold / Bright Yellow */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000; /* Inherited from body, using for consistency */
  --bg-light-card: rgba(255, 255, 255, 0.1); /* Light background for cards on dark body */
  --bg-dark-section: var(--primary-color);
  --border-color: #444444; /* Darker border for dark background */

  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: transparent; /* Main content background is transparent, letting body background show */
  padding-top: 120px; /* IMPORTANT: Space for fixed header on desktop */
}

/* --- Container & Section Defaults --- */
.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-gdpr__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold title for contrast */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-gdpr__hero-section {
  padding: 60px 0;
  background-color: var(--primary-color); /* Use primary color for hero section background */
  color: var(--text-light);
  text-align: center;
}

.page-gdpr__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold for H1 */
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  color: #f0f0f0; /* Slightly off-white for hero description */
}

.page-gdpr__content-section {
  padding: 80px 0;
  background-color: transparent; /* Default transparent for content sections */
  color: var(--text-light);
}

.page-gdpr__dark-bg {
  background-color: var(--bg-dark-section); /* Dark blue background for alternating sections */
  color: var(--text-light);
}

.page-gdpr p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

/* --- Images --- */
.page-gdpr__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__image--fullwidth {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__image--centered {
  margin-left: auto;
  margin-right: auto;
}

/* --- Principles Grid --- */
.page-gdpr__principles-grid,
.page-gdpr__rights-grid,
.page-gdpr__compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__principle-item,
.page-gdpr__right-item,
.page-gdpr__compliance-item {
  background: var(--bg-light-card); /* Semi-transparent white card background */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__principle-item:hover,
.page-gdpr__right-item:hover,
.page-gdpr__compliance-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-gdpr__principle-title,
.page-gdpr__right-title,
.page-gdpr__compliance-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--secondary-color); /* Gold for card titles */
  margin-bottom: 15px;
}

.page-gdpr__principle-item p,
.page-gdpr__right-item p,
.page-gdpr__compliance-item p {
  font-size: 16px;
  color: #cccccc; /* Lighter text for card paragraphs */
}

/* --- FAQ Section --- */
.page-gdpr__faq-section {
  padding: 80px 0;
  background-color: var(--bg-dark-section);
  color: var(--text-light);
}

.page-gdpr__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger border-radius */
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  background: var(--bg-light-card); /* Semi-transparent white for question background */
  border: 1px solid var(--border-color);
  border-radius: 8px; /* Match item border-radius */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-gdpr__faq-question:hover {
  background: rgba(255, 255, 255, 0.15); /* Slightly lighter on hover */
  border-color: #666666;
}

.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Increased font size */
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light); /* White text for question */
  pointer-events: none;
}

.page-gdpr__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger hit area for toggle */
  height: 32px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: var(--secondary-color); /* Keep gold when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change to '-' */
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px; /* Match question padding */
  opacity: 0;
  background: rgba(0, 0, 0, 0.3); /* Slightly darker background for answer */
  border-radius: 0 0 8px 8px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* IMPORTANT: Ensure it can expand */
  padding: 20px 25px !important; /* IMPORTANT: Ensure padding is applied */
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
}

.page-gdpr__faq-answer p {
  color: #e0e0e0; /* Lighter text for answers */
  font-size: 16px;
}

/* --- Contact & CTA Section --- */
.page-gdpr__contact-cta-section {
  padding: 80px 0;
  background-color: var(--bg-dark-section);
  text-align: center;
  color: var(--text-light);
}

.page-gdpr__contact-cta-section p {
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 17px;
  color: #f0f0f0;
}

.page-gdpr__cta-buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Gold button */
  color: var(--primary-color); /* Dark blue text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
}

.page-gdpr__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-button--secondary {
  background: var(--primary-color); /* Dark blue button */
  color: var(--secondary-color); /* Gold text on dark blue button */
  border: 2px solid var(--secondary-color); /* Gold border */
}

.page-gdpr__cta-button--secondary:hover {
  background: #001a4d; /* Slightly darker blue on hover */
  border-color: #e6c200;
}

.page-gdpr__contact-info {
  margin-top: 30px;
  font-size: 16px;
  color: #cccccc;
}

.page-gdpr__contact-info a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gdpr__contact-info a:hover {
  color: #e6c200;
  text-decoration: underline;
}


/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
  .page-gdpr {
    padding-top: 100px !important; /* IMPORTANT: Mobile fixed header space */
  }

  .page-gdpr__container {
    padding: 0 15px; /* Smaller padding on mobile */
  }

  .page-gdpr__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-top: 30px;
  }

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

  .page-gdpr__main-title {
    font-size: 36px;
  }

  .page-gdpr__hero-description {
    font-size: 16px;
  }

  .page-gdpr__content-section {
    padding: 50px 0;
  }

  .page-gdpr p {
    font-size: 16px;
  }

  .page-gdpr__principles-grid,
  .page-gdpr__rights-grid,
  .page-gdpr__compliance-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-gdpr__principle-item,
  .page-gdpr__right-item,
  .page-gdpr__compliance-item {
    padding: 20px;
  }

  .page-gdpr__principle-title,
  .page-gdpr__right-title,
  .page-gdpr__compliance-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  /* FAQ Mobile adjustments */
  .page-gdpr__faq-section {
    padding: 50px 0;
  }
  
  .page-gdpr__faq-question {
    padding: 15px 20px;
  }
  
  .page-gdpr__faq-question h3 {
    font-size: 16px;
  }
  
  .page-gdpr__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  
  .page-gdpr__faq-answer {
    padding: 0 20px;
  }
  
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px 20px !important;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-gdpr__cta-button {
    width: 100%; /* Full width buttons on mobile */
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__contact-info {
    font-size: 15px;
  }

  /* Ensure all images are responsive */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}