/* style/privacy-policy.css */

/* Base Styles for the Privacy Policy Page */
.page-privacy-policy {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #333333; /* Default text color for light backgrounds to ensure contrast */
  background-color: #ffffff; /* Explicitly white background for main content area */
}

/* Container for overall page content */
.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  padding: 80px 20px;
  background-color: #017439; /* Brand green background */
  color: #ffffff; /* White text for contrast */
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-privacy-policy__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for main title, high contrast on brand green */
  font-weight: bold;
}

.page-privacy-policy__intro-text {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto;
  color: #f0f0f0; /* Slightly off-white for softer look on dark background */
}

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* Explicitly white background for content */
  color: #333333; /* Dark text for contrast */
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: #017439; /* Brand green for section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0; /* Subtle separator */
  padding-bottom: 10px;
  font-weight: 600;
}

.page-privacy-policy__sub-title {
  font-size: 1.5em;
  color: #017439; /* Brand green for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-privacy-policy__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-privacy-policy__list li {
  margin-bottom: 10px;
  text-align: justify;
}

.page-privacy-policy a {
  color: #017439; /* Brand green for links */
  text-decoration: underline;
  font-weight: 500;
}

.page-privacy-policy a:hover {
  text-decoration: none;
  color: #005a2d; /* Slightly darker green on hover */
}

/* Image styles */
.page-privacy-policy__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-privacy-policy__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto; /* Center image */
  object-fit: cover; /* Ensure images cover their area nicely */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* CTA Section */
.page-privacy-policy__cta-section {
  background-color: #017439; /* Brand green background */
  color: #ffffff; /* White text */
  padding: 50px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__cta-title {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for CTA title, high contrast */
  font-weight: bold;
}

.page-privacy-policy__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Slightly off-white for softer look */
}

.page-privacy-policy__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom font color for register button, high contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
  min-width: 200px; /* Ensure button is not too small */
}

.page-privacy-policy__btn-primary:hover {
  background-color: #a00606; /* Darker red on hover */
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 2.2em;
  }

  .page-privacy-policy__intro-text {
    font-size: 1.1em;
  }

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

  .page-privacy-policy__sub-title {
    font-size: 1.3em;
  }

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

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

  .page-privacy-policy__intro-text {
    font-size: 1em;
  }

  .page-privacy-policy__content-area {
    padding: 30px 15px;
  }

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

  .page-privacy-policy__sub-title {
    font-size: 1.2em;
  }

  .page-privacy-policy__list {
    padding-left: 15px;
  }

  /* Image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers with images/content must be responsive */
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__content-area,
  .page-privacy-policy__image-wrapper,
  .page-privacy-policy__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Button responsiveness */
  .page-privacy-policy__btn-primary {
    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;
    min-width: unset; /* Allow button to shrink on mobile if needed */
  }

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

  .page-privacy-policy__cta-description {
    font-size: 0.95em;
  }
}