/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

/* Section spacing */
.page-gdpr__hero-section,
.page-gdpr__content-area,
.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__data-processing-section,
.page-gdpr__faq-section,
.page-gdpr__contact-section {
  padding: 60px 0;
  position: relative;
}

/* Header offset for fixed header */
.page-gdpr__hero-section {
  padding-top: var(--header-offset, 120px);
}

/* Background colors for sections */
.page-gdpr__dark-section {
  background-color: #0d0d0d; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-gdpr__light-bg {
  background-color: #1a1a1a; /* Dark gray for contrast, not pure white */
  color: #ffffff;
}

/* Typography */
h1.page-gdpr__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

.page-gdpr__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand green for titles */
}

.page-gdpr__sub-section-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #017439;
}

.page-gdpr__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-gdpr__keyword {
  color: #FFFF00; /* Highlight keywords with yellow */
  font-weight: bold;
}

/* Images */
.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-top: 40px;
  border-radius: 8px;
}

.page-gdpr__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-gdpr__data-flow-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 8px;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-gdpr__btn-primary:hover {
  background-color: #028e46;
  border-color: #028e46;
}

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
  margin-top: 20px;
}

.page-gdpr__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

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

.page-gdpr__card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards on dark background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-gdpr__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFFFF;
}

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

/* Rights list */
.page-gdpr__rights-list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.page-gdpr__rights-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  color: #f0f0f0;
}

.page-gdpr__rights-item strong {
  color: #017439;
}

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

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439; /* Brand green for FAQ question */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}

.page-gdpr__faq-question::marker {
  display: none;
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FFFF00;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: '−';
}

.page-gdpr__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.03);
}

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

/* Contact section */
.page-gdpr__contact-link {
  color: #FFFF00;
  text-decoration: underline;
  font-weight: bold;
}

.page-gdpr__contact-link:hover {
  color: #017439;
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1.page-gdpr__hero-title {
    font-size: 3em;
  }

  .page-gdpr__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  h1.page-gdpr__hero-title {
    font-size: 2.5em;
  }

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

  .page-gdpr__section-title {
    font-size: 1.8em;
  }

  .page-gdpr__sub-section-title {
    font-size: 1.5em;
  }

  .page-gdpr__paragraph {
    font-size: 1em;
  }

  .page-gdpr__grid {
    grid-template-columns: 1fr;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  /* Images responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__hero-image,
  .page-gdpr__card-image,
  .page-gdpr__data-flow-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Buttons responsive */
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary,
  .page-gdpr a[class*="button"],
  .page-gdpr a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-gdpr__container,
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-gdpr__hero-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__data-processing-section,
  .page-gdpr__faq-section,
  .page-gdpr__contact-section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  h1.page-gdpr__hero-title {
    font-size: 2em;
  }

  .page-gdpr__section-title {
    font-size: 1.5em;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}