/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #121212; /* Dark background from shared.css */
}

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

/* Fixed header spacing for the first content module */
.page-gdpr__hero-banner {
  padding-top: 10px; /* Adjust for fixed header */
  margin-top: 0;
  background: linear-gradient(135deg, #007bff, #0056b3); /* Dark blue gradient */
  color: #ffffff;
  text-align: center;
  padding-bottom: 80px;
}

.page-gdpr__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

.page-gdpr__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.page-gdpr__hero-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #333333; /* Dark text for bright button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-gdpr__hero-button:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

.page-gdpr__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.page-gdpr__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-gdpr__paragraph--note {
  text-align: center;
  font-style: italic;
  margin-top: 40px;
}

.page-gdpr__link {
  color: #ffc107; /* Auxiliary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-gdpr__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__light-bg {
  background-color: #2a2a2a; /* Another slightly lighter dark background */
  color: #ffffff;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-gdpr__numbered-list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-gdpr__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
}

.page-gdpr__button--primary {
  background-color: #007bff; /* Main brand color */
  color: #ffffff;
}

.page-gdpr__button--primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.page-gdpr__button--secondary {
  background-color: #ffc107; /* Auxiliary color */
  color: #333333;
}

.page-gdpr__button--secondary:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

/* User Rights Section */
.page-gdpr__rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-gdpr__right-card {
  background-color: #2a2a2a; /* Slightly lighter dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__right-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-gdpr__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffc107; /* Auxiliary color for titles */
}

.page-gdpr__card-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* Contact Section */
.page-gdpr__contact-list {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
}

.page-gdpr__contact-list .page-gdpr__list-item {
  margin-bottom: 15px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

.page-gdpr__contact-list .page-gdpr__list-item strong {
  min-width: 120px;
  color: #ffc107;
}

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

/* FAQ container styles */
.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a; /* Slightly lighter dark background */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ default state - answer hidden */
.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;
  opacity: 0;
  color: #e0e0e0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, large enough value */
  padding: 20px 25px !important;
  opacity: 1;
  background: #1a1a1a; /* Darker background for answer */
  border-radius: 0 0 8px 8px;
}

/* Question styles */
.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-gdpr__faq-question:hover {
  background: #3a3a3a;
}

/* Question title styles */
.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #ffffff;
}

/* Toggle icon */
.page-gdpr__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

/* Image styles */
.page-gdpr__image-wrapper {
  margin: 30px auto;
  text-align: center;
}

.page-gdpr__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 2.8em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr__rights-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-gdpr__card-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-banner {
    padding-top: 10px; /* Mobile adjust for fixed header */
    padding-bottom: 60px;
  }
  .page-gdpr__hero-container {
    padding: 60px 15px 30px;
  }
  .page-gdpr__hero-title {
    font-size: 2.2em;
  }
  .page-gdpr__hero-description {
    font-size: 1em;
  }
  .page-gdpr__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-gdpr__container {
    padding: 40px 15px;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-gdpr__paragraph {
    font-size: 0.95em;
  }
  .page-gdpr__list-item, .page-gdpr__numbered-list .page-gdpr__list-item {
    font-size: 0.9em;
  }
  .page-gdpr__rights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gdpr__right-card {
    padding: 25px;
  }
  .page-gdpr__card-title {
    font-size: 1.3em;
  }
  .page-gdpr__card-icon {
    width: 70px;
    height: 70px;
  }
  .page-gdpr__faq-question {
    padding: 15px 20px;
  }
  .page-gdpr__faq-question h3 {
    font-size: 1.05em;
  }
  .page-gdpr__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-gdpr__faq-answer {
    padding: 0 20px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px 20px !important;
  }
  .page-gdpr__contact-list .page-gdpr__list-item strong {
    min-width: 90px;
  }
  /* Mobile specific image responsive rules */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__container, .page-gdpr__dark-bg, .page-gdpr__light-bg, .page-gdpr__right-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-title {
    font-size: 1.8em;
  }
  .page-gdpr__section-title {
    font-size: 1.5em;
  }
  .page-gdpr__hero-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-gdpr__faq-question h3 {
    font-size: 0.95em;
  }
  .page-gdpr__faq-toggle {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
  .page-gdpr__contact-list .page-gdpr__list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-gdpr__contact-list .page-gdpr__list-item strong {
    margin-bottom: 5px;
  }
}