/* style/gdpr.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #000080;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
}

.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark, so text is light */
  line-height: 1.6;
  background-color: var(--background-dark);
  padding-top: 120px; /* Adjust for fixed header */
}

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

.page-gdpr__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000050 100%);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-gdpr__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-gdpr__cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-gdpr__cta-button--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.page-gdpr__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-gdpr__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.page-gdpr__intro-section, .page-gdpr__principles-section, .page-gdpr__user-rights-section, .page-gdpr__security-measures-section, .page-gdpr__contact-section, .page-gdpr__faq-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-gdpr__intro-section {
  background-color: #1a1a1a;
}

.page-gdpr__content-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.page-gdpr__content-block p {
  flex: 1;
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-gdpr__image {
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-gdpr__image--left {
  margin-right: 20px;
}

.page-gdpr__principles-section {
  background-color: var(--background-dark);
}

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

.page-gdpr__card {
  background: var(--card-background-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-gdpr__card-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-gdpr__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-gdpr__card p {
  font-size: 1em;
  color: #c0c0c0;
}

.page-gdpr__user-rights-section {
  background-color: #1a1a1a;
}

.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-gdpr__rights-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary-color);
  border-radius: 5px;
  color: #e0e0e0;
  font-size: 1.1em;
}

.page-gdpr__rights-list li strong {
  color: var(--primary-color);
}

.page-gdpr__security-measures-section {
  background-color: var(--background-dark);
}

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

.page-gdpr__security-item {
  background: var(--card-background-dark);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
}

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

.page-gdpr__security-item h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-gdpr__security-item p {
  color: #c0c0c0;
  font-size: 0.95em;
}

.page-gdpr__contact-section {
  background-color: #1a1a1a;
}

.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-gdpr__contact-list li {
  margin-bottom: 10px;
}

.page-gdpr__contact-list li strong {
  color: var(--primary-color);
}

.page-gdpr__contact-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-gdpr__faq-section {
  background-color: var(--background-dark);
}

/* FAQ container styles */
.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* 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 20px;
  opacity: 0;
  color: #e0e0e0;
  background-color: var(--card-background-dark);
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height to ensure it expands */
.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough to accommodate any content */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* Question styles */
.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background-dark);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-gdpr__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-gdpr__faq-question:active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Question title style */
.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 tag from blocking click event */
  color: var(--primary-color);
}

/* Toggle icon */
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 28px;
  height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Rotate for 'x' effect, or change text to '−' */
}

/* General text within sections */
.page-gdpr p {
  color: #e0e0e0;
  margin-bottom: 1em;
}

.page-gdpr strong {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 2.5em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr__content-block {
    flex-direction: column;
    text-align: center;
  }
  .page-gdpr__image--left {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .page-gdpr__image {
    max-width: 80%;
  }
  .page-gdpr__card-image {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    padding-top: 100px !important; /* Mobile adjust for fixed header */
    font-size: 15px;
  }
  .page-gdpr__container {
    padding: 15px;
  }
  .page-gdpr__hero-section {
    padding: 60px 15px;
  }
  .page-gdpr__hero-title {
    font-size: 2em;
  }
  .page-gdpr__hero-description {
    font-size: 1em;
  }
  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-gdpr__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-gdpr__intro-section, .page-gdpr__principles-section, .page-gdpr__user-rights-section, .page-gdpr__security-measures-section, .page-gdpr__contact-section, .page-gdpr__faq-section {
    padding: 40px 0;
  }
  .page-gdpr__content-block {
    gap: 20px;
  }
  .page-gdpr__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gdpr__card {
    padding: 20px;
  }
  .page-gdpr__card-title {
    font-size: 1.3em;
  }
  .page-gdpr__rights-list li {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-gdpr__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gdpr__security-item {
    padding: 20px;
  }
  .page-gdpr__security-icon {
    width: 80px;
    height: 80px;
  }
  .page-gdpr__security-item h3 {
    font-size: 1.2em;
  }
  .page-gdpr__contact-list {
    font-size: 1em;
  }
  .page-gdpr__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-gdpr__faq-question h3 {
    font-size: 1.1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-gdpr__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-gdpr__faq-answer {
    padding: 0 15px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px !important;
  }
}

/* Ensure all images are responsive */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__content-block,
  .page-gdpr__security-features,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-gdpr__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}