/* style/gdpr.css */
:root {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a; /* From shared.css body background */
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color-light: rgba(255, 255, 255, 0.15);
}

.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark);
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  background-color: var(--primary-color);
  padding: 80px 0 60px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

.page-gdpr__main-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-gdpr__description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

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

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__cta-button:first-child {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-gdpr__cta-button:first-child:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* General Content Section */
.page-gdpr__content-section,
.page-gdpr__rights-section,
.page-gdpr__implementation-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section {
  padding: 60px 0;
}

.page-gdpr__content-section.page-gdpr__dark-bg,
.page-gdpr__implementation-section.page-gdpr__dark-bg,
.page-gdpr__faq-section.page-gdpr__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-gdpr__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-gdpr__content-section p,
.page-gdpr__rights-section p,
.page-gdpr__implementation-section p,
.page-gdpr__contact-section p,
.page-gdpr__faq-section p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

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

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

.page-gdpr__rights-item,
.page-gdpr__implementation-item {
  background-color: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-light);
}

.page-gdpr__rights-item:hover,
.page-gdpr__implementation-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-gdpr__rights-title,
.page-gdpr__implementation-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* Contact Section */
.page-gdpr__contact-info {
  background-color: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color-light);
}

.page-gdpr__contact-info ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-gdpr__contact-info li {
  margin-bottom: 10px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
}

.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;
}

.page-gdpr__cta-button--large {
  display: block;
  width: fit-content;
  margin: 50px auto 0 auto;
  padding: 18px 50px;
  font-size: 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-button--large:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-light);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark);
  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.12);
}

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

.page-gdpr__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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: 30px;
  height: 30px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.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;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 40px;
  }

  .page-gdpr__section-title {
    font-size: 32px;
  }

  .page-gdpr__rights-title,
  .page-gdpr__implementation-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

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

  .page-gdpr__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-gdpr__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__cta-button,
  .page-gdpr__cta-button--large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-gdpr__content-section,
  .page-gdpr__rights-section,
  .page-gdpr__implementation-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section {
    padding: 40px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-gdpr__content-section p,
  .page-gdpr__rights-section p,
  .page-gdpr__implementation-section p,
  .page-gdpr__contact-section p,
  .page-gdpr__faq-section p {
    font-size: 15px;
  }

  .page-gdpr__rights-grid,
  .page-gdpr__implementation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__rights-item,
  .page-gdpr__implementation-item,
  .page-gdpr__contact-info {
    padding: 25px;
  }

  .page-gdpr__rights-title,
  .page-gdpr__implementation-title {
    font-size: 18px;
  }

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

  .page-gdpr__faq-question h3 {
    font-size: 16px;
  }

  .page-gdpr__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

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

  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px 20px !important;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__hero-image,
  .page-gdpr__content-image {
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 28px;
  }

  .page-gdpr__section-title {
    font-size: 24px;
  }
}