/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-privacy-policy__hero-section {
    position: relative;
    padding: 80px 20px;
    background-color: #017439; /* Brand primary color for hero */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.page-privacy-policy__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #0a0a0a; /* Explicitly set content area background to match body */
    color: #ffffff; /* Light text for dark background */
}

.page-privacy-policy__container {
    max-width: 900px;
    margin: 0 auto;
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand primary color for section titles */
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(1, 116, 57, 0.5);
    padding-bottom: 10px;
}

.page-privacy-policy__subsection-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #f0f0f0; /* Slightly off-white for paragraphs */
}

.page-privacy-policy ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-privacy-policy ul li {
    margin-bottom: 8px;
}

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

.page-privacy-policy a:hover {
    color: #02a04a; /* Slightly lighter green on hover */
    text-decoration: none;
}

.page-privacy-policy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Specific button colors */
.page-privacy-policy__btn-primary {
    background-color: #C30808; /* Custom red for register/login */
    color: #FFFF00; /* Custom yellow font for register/login */
    border: 2px solid #C30808;
}

.page-privacy-policy__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    color: #ffffff;
}

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

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

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 30px 0;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-privacy-policy__cta-final {
    text-align: center;
    background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent brand color */
    padding: 40px;
    border-radius: 10px;
    margin-top: 60px;
}

.page-privacy-policy__cta-title {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-privacy-policy__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-title {
        font-size: 2.4em;
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__subsection-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

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

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

    .page-privacy-policy__section-title {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

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

    .page-privacy-policy__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-privacy-policy__cta-buttons,
    .page-privacy-policy__button-group,
    .page-privacy-policy__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    /* Mobile image responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important; /* Ensure images take full width */
        display: block !important;
    }

    /* All containers that might hold images */
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-section,
    .page-privacy-policy__content-area {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important; /* Prevent horizontal scroll */
      padding-left: 15px !important;
      padding-right: 15px !important;
    }

    .page-privacy-policy__cta-final {
        padding: 30px 15px;
    }

    .page-privacy-policy__cta-title {
        font-size: 1.6em;
    }
    .page-privacy-policy__cta-description {
        font-size: 1em;
    }
}

/* Ensure content area images are not too small in CSS */
.page-privacy-policy__content-image {
    min-width: 200px;
    min-height: 200px;
}
@media (max-width: 768px) {
  .page-privacy-policy__content-image {
    min-width: unset; /* Reset min-width for mobile, as max-width:100% will handle it */
    min-height: unset; /* Reset min-height for mobile, as height:auto will handle it */
  }
}