/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #f5f5f5); /* Inherit from shared or fallback to light gray */
}

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

/* Dark background section for hero */
.page-gdpr__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
}

.page-gdpr__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

/* Content Area */
.page-gdpr__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* White background for main content */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  margin-top: -40px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 1;
}

.page-gdpr__container {
  max-width: 100%; /* Ensure container respects parent's max-width */
  margin: 0 auto;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: #017439; /* Brand primary color for titles */
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 15px;
}

.page-gdpr__sub-section-title {
  font-size: 1.8em;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-gdpr__paragraph {
  margin-bottom: 15px;
  color: #333333;
}

.page-gdpr__link {
  color: #017439; /* Brand primary color for links */
  text-decoration: underline;
}

.page-gdpr__link:hover {
  color: #005a2d; /* Slightly darker shade on hover */
}

.page-gdpr__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

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

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

.page-gdpr__feature-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-gdpr__feature-card:hover {
  transform: translateY(-5px);
}

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

.page-gdpr__feature-description {
  color: #555555;
}

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

.page-gdpr__contact-info {
  background-color: #f0f8f0; /* Light green background */
  border-left: 5px solid #017439;
  padding: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
  border-radius: 8px;
}

/* Floating CTA Buttons */
.page-gdpr__floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-gdpr__btn-primary {
  background-color: #C30808; /* Custom color for Login/Register */
  color: #FFFF00; /* Custom font color for Login/Register */
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  max-width: 150px; /* Limit width to prevent being too wide */
  display: block;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 2.2em;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__sub-section-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-gdpr__hero-title {
    font-size: 1.8em;
  }
  .page-gdpr__hero-description {
    font-size: 1em;
  }
  .page-gdpr__content-area {
    padding: 30px 15px;
    margin-top: -20px;
  }
  .page-gdpr__section-title {
    font-size: 1.6em;
    margin-top: 30px;
  }
  .page-gdpr__sub-section-title {
    font-size: 1.3em;
  }
  .page-gdpr__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gdpr__list {
    margin-left: 15px;
  }

  /* Images responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure content containers don't overflow */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__contact-info,
  .page-gdpr__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  
  /* Floating CTA buttons responsive */
  .page-gdpr__floating-cta {
    bottom: 15px;
    right: 15px;
    flex-direction: row;
    gap: 8px;
    max-width: calc(100% - 30px);
    width: auto;
    justify-content: flex-end;
  }

  .page-gdpr__btn-primary {
    padding: 10px 18px !important;
    font-size: 0.9em;
    max-width: none !important;
    width: auto !important;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-title {
    font-size: 1.5em;
  }
  .page-gdpr__section-title {
    font-size: 1.4em;
  }
  .page-gdpr__sub-section-title {
    font-size: 1.2em;
  }
  .page-gdpr__floating-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .page-gdpr__btn-primary {
    width: 100% !important;
  }
}