/* style/gdpr.css */

:root {
  --page-gdpr-primary-color: #11A84E;
  --page-gdpr-secondary-color: #22C768;
  --page-gdpr-background-color: #08160F;
  --page-gdpr-card-bg: #11271B;
  --page-gdpr-text-main: #F2FFF6;
  --page-gdpr-text-secondary: #A7D9B8;
  --page-gdpr-border-color: #2E7A4E;
  --page-gdpr-glow-color: #57E38D;
  --page-gdpr-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-gdpr {
  background-color: var(--page-gdpr-background-color);
  color: var(--page-gdpr-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 20px 60px 20px; /* Small top padding, more bottom padding */
  background-color: var(--page-gdpr-card-bg);
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image */
  padding: 40px;
  background-color: rgba(17, 39, 27, 0.8); /* Semi-transparent card background */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid var(--page-gdpr-border-color);
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3em);
  color: var(--page-gdpr-text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  color: var(--page-gdpr-text-secondary);
  margin-bottom: 30px;
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-gdpr__btn-primary {
  background: var(--page-gdpr-button-gradient);
  color: var(--page-gdpr-text-main);
  border: none;
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-gdpr__btn-secondary {
  background: none;
  color: var(--page-gdpr-primary-color);
  border: 2px solid var(--page-gdpr-primary-color);
  margin-right: 15px;
}

.page-gdpr__btn-secondary:hover {
  background-color: rgba(17, 168, 78, 0.1);
  transform: translateY(-2px);
}

.page-gdpr__section {
  padding: 80px 20px;
  text-align: center;
}

.page-gdpr__dark-section {
  background-color: var(--page-gdpr-card-bg);
  color: var(--page-gdpr-text-main);
}

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

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--page-gdpr-primary-color);
  margin-bottom: 40px;
  font-weight: bold;
}

.page-gdpr__text-block {
  font-size: 1.1em;
  color: var(--page-gdpr-text-secondary);
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-gdpr__principles-grid, .page-gdpr__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-gdpr__card {
  background-color: var(--page-gdpr-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--page-gdpr-border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-gdpr__card-title {
  font-size: 1.4em;
  color: var(--page-gdpr-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-gdpr__card p {
  color: var(--page-gdpr-text-secondary);
  font-size: 1em;
  flex-grow: 1;
}

.page-gdpr__rights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-gdpr__right-item {
  background-color: var(--page-gdpr-background-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--page-gdpr-border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-gdpr__right-icon {
  width: 100%;
  max-width: 200px; /* Ensure icon is not too large */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-gdpr__right-item p {
  color: var(--page-gdpr-text-secondary);
  font-size: 1em;
  text-align: center;
  flex-grow: 1;
}

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

.page-gdpr__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-gdpr__contact-info {
  background-color: var(--page-gdpr-background-color);
  border-radius: 10px;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--page-gdpr-border-color);
}

.page-gdpr__contact-item {
  font-size: 1.1em;
  color: var(--page-gdpr-text-main);
  margin-bottom: 10px;
}

.page-gdpr__contact-item a {
  color: var(--page-gdpr-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-gdpr__contact-item a:hover {
  text-decoration: underline;
}

.page-gdpr__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

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

.page-gdpr__faq-item details > summary {
  list-style: none;
}

.page-gdpr__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-gdpr-text-main);
  cursor: pointer;
  background-color: var(--page-gdpr-card-bg);
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.1);
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-gdpr-primary-color);
  margin-left: 15px;
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--page-gdpr-text-secondary);
}

.page-gdpr__faq-answer p {
  margin-bottom: 0;
}

/* Ensure images within content areas are responsive and not too small */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-gdpr__hero-content {
    margin-top: -100px;
    padding: 25px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-gdpr__hero-description {
    font-size: 1em;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-gdpr__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    margin-right: 0 !important;
  }

  .page-gdpr__section {
    padding: 50px 15px;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }

  .page-gdpr__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

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

  .page-gdpr__card-title, .page-gdpr__right-title {
    font-size: 1.3em;
  }

  .page-gdpr__card-image {
    height: 150px;
  }

  .page-gdpr__right-icon {
    max-width: 150px;
  }

  .page-gdpr__contact-info {
    padding: 20px;
  }

  .page-gdpr__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  /* Force all images to be responsive on mobile */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers are responsive on mobile */
  .page-gdpr__section,
  .page-gdpr__container,
  .page-gdpr__card,
  .page-gdpr__right-item,
  .page-gdpr__contact-info,
  .page-gdpr__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Special handling for hero section to avoid double padding */
  .page-gdpr__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-gdpr__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}