/* style/gdpr.css */

/* Base Styles for GDPR Page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #1a1a2e; /* Inherited from shared, but reinforcing */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-gdpr__main-title {
  font-size: 3em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: #ffffff;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  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: #017439;
  border-radius: 2px;
}

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

.page-gdpr__paragraph {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: #f0f0f0; /* Slightly off-white for paragraphs */
}

.page-gdpr__paragraph--light {
  color: #f8f8f8; /* Even lighter for dark sections */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary,
.page-gdpr__btn-text-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-gdpr__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-gdpr__btn-text-link {
  color: #017439; /* Brand primary for text links */
  text-decoration: underline;
  padding: 0;
  border: none;
  background: none;
}

.page-gdpr__btn-text-link:hover {
  color: #005a2e; /* Darker green on hover */
  text-decoration: none;
}

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

.page-gdpr__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2; /* Subtle background image */
}

.page-gdpr__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* Content Sections */
.page-gdpr__content-section {
  padding: 60px 0;
}

.page-gdpr__commitment-section {
  background-color: #1a1a2e; /* Body background */
}

.page-gdpr__dark-section {
  background-color: #017439; /* Brand primary for dark sections */
  color: #ffffff;
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

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

.page-gdpr__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark section */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px; /* Ensure cards have consistent height */
}

.page-gdpr__feature-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  object-fit: cover; /* Cover for content, contain for actual icons if they were allowed */
  border-radius: 8px;
  min-width: 200px; /* Strictly adhere to 200px minimum */
  min-height: 200px;
}

.page-gdpr__feature-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-gdpr__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Rights List */
.page-gdpr__rights-list,
.page-gdpr__security-list,
.page-gdpr__cookie-types-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-gdpr__rights-item,
.page-gdpr__security-item,
.page-gdpr__cookie-type-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #017439;
}

.page-gdpr__rights-title,
.page-gdpr__security-title,
.page-gdpr__cookie-type-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-gdpr__rights-description,
.page-gdpr__security-description,
.page-gdpr__cookie-type-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* Contact Section */
.page-gdpr__contact-info {
  margin-top: 30px;
  text-align: center;
}

.page-gdpr__contact-item {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-gdpr__contact-item a {
  color: #FFFF00; /* Custom color for contact links */
  text-decoration: underline;
}

.page-gdpr__contact-item a:hover {
  text-decoration: none;
  color: #ffffff;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-gdpr__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439; /* Brand primary for toggle icon */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Image specific styles - ensure no filters */
.page-gdpr img {
  filter: none !important;
}

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

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

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

  .page-gdpr__main-title {
    font-size: 2em;
    padding: 0 10px;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__section-title {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 10px 15px;
  }

  .page-gdpr__sub-title {
    font-size: 1.4em;
    padding: 0 10px;
  }

  .page-gdpr__paragraph {
    font-size: 0.95em;
    padding: 0 10px;
  }

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

  .page-gdpr__features-grid,
  .page-gdpr__rights-list,
  .page-gdpr__security-list,
  .page-gdpr__cookie-types-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-gdpr__feature-card,
  .page-gdpr__rights-item,
  .page-gdpr__security-item,
  .page-gdpr__cookie-type-item {
    padding: 20px;
  }

  .page-gdpr__feature-icon {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-gdpr__feature-title,
  .page-gdpr__rights-title,
  .page-gdpr__security-title,
  .page-gdpr__cookie-type-title {
    font-size: 1.2em;
  }

  .page-gdpr__contact-info {
    padding: 0 10px;
  }

  .page-gdpr__contact-item {
    font-size: 1em;
  }

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

  .page-gdpr__faq-item summary {
    font-size: 1.05em;
    padding: 15px 20px;
  }

  .page-gdpr__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* Force responsive images and containers for mobile */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__content-section,
  .page-gdpr__features-grid,
  .page-gdpr__rights-list,
  .page-gdpr__security-list,
  .page-gdpr__cookie-types-list,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for sections if needed, overriding default container padding */
  .page-gdpr__hero-section,
  .page-gdpr__content-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}