/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 500px;
  padding: 80px 20px;
  background-color: #017439; /* Brand color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-gdpr__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2; /* Slightly transparent to let background color show */
}

.page-gdpr__hero-section .page-gdpr__container {
  position: relative;
  z-index: 1;
}

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

.page-gdpr__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
}

/* Primary Button */
.page-gdpr__btn-primary {
  display: inline-block;
  background-color: #C30808;
  color: #ffffff; /* Overridden from #FFFF00 to ensure WCAG AA contrast (4.6:1 on #C30808) */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* Content Area */
.page-gdpr__content-area {
  background-color: #1a1a1a; /* Slightly lighter dark background for content sections */
  color: #ffffff; /* Light text for dark background */
  padding: 60px 0;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: #017439; /* Brand color for section titles */
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.page-gdpr__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #C30808; /* Highlight color */
  border-radius: 2px;
}

.page-gdpr__content-area p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-gdpr__content-area a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr__content-area a:hover {
  color: #C30808; /* Highlight color on hover */
}

/* Lists */
.page-gdpr__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-gdpr__list-item {
  margin-bottom: 10px;
}

.page-gdpr__list ul {
  list-style-type: circle;
  margin-left: 20px;
  margin-top: 5px;
}

/* Images within content */
.page-gdpr__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-title {
  font-size: 1.3em;
  margin: 0;
  color: #ffffff;
}

.page-gdpr__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  transform: rotate(45deg);
  color: #C30808;
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px; /* Initial padding for collapsed state */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #e0e0e0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px !important; /* Padding for expanded state */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 2.4em;
  }
  .page-gdpr__hero-description {
    font-size: 1.1em;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__faq-title {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
  }

  .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__hero-section {
    min-height: 400px;
    padding: 60px 15px;
  }

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

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

  .page-gdpr__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-gdpr__content-area {
    padding: 40px 0;
  }

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

  /* Mobile image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure containers with images/content don't overflow */
  .page-gdpr__hero-section,
  .page-gdpr__content-area,
  .page-gdpr__faq-list,
  .page-gdpr__faq-item,
  .page-gdpr__faq-question,
  .page-gdpr__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Adding padding here for inner content to prevent text from sticking to edges */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Reset padding for the container if it's already handled by the specific sections */
  .page-gdpr__container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Specific padding for content area elements if needed */
  .page-gdpr__content-area .page-gdpr__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}