/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Explicitly white background for main content */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: 0; /* Assuming shared.css handles body padding-top: var(--header-offset) */
}

.page-privacy-policy__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-privacy-policy__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 116, 57, 0.7), rgba(0, 0, 0, 0.5)); /* Darker overlay for text readability */
    z-index: 2;
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 40px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for content box */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #333333;
}

.page-privacy-policy__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #017439; /* Brand primary color for title */
    line-height: 1.2;
}

.page-privacy-policy__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555555;
}

.page-privacy-policy__hero-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* General Section Styles */
.page-privacy-policy__content-section {
    padding: 60px 20px;
    text-align: center;
}

.page-privacy-policy__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff; /* White text for dark background */
}

.page-privacy-policy__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-privacy-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-privacy-policy__section-heading {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #017439; /* Brand primary color */
    text-align: center;
}
.page-privacy-policy__dark-bg .page-privacy-policy__section-heading {
    color: #ffffff; /* White text on dark background */
}

.page-privacy-policy__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__link {
    color: #017439;
    text-decoration: underline;
}
.page-privacy-policy__dark-bg .page-privacy-policy__link {
    color: #FFFF00; /* Yellow for links on dark background */
}

.page-privacy-policy__list {
    list-style: disc;
    padding-left: 40px;
    margin-bottom: 20px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__nested-list {
    list-style: circle;
    padding-left: 20px;
    margin-top: 10px;
}

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* Card Grid for Data Collection/Usage/Security */
.page-privacy-policy__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-privacy-policy__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-privacy-policy__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    flex-grow: 0; /* Don't grow title */
}

.page-privacy-policy__card .page-privacy-policy__paragraph,
.page-privacy-policy__card .page-privacy-policy__list {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.page-privacy-policy__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: auto; /* Push image to bottom if card content is shorter */
    margin-bottom: 0;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

/* Call to Action Section */
.page-privacy-policy__cta-section {
    padding: 80px 20px;
    background-color: #f5f5f5; /* Light background for CTA */
    text-align: center;
}

.page-privacy-policy__cta-content {
    max-width: 800px;
}

.page-privacy-policy__cta-heading {
    font-size: 2.8em;
    color: #017439;
    margin-bottom: 20px;
}

.page-privacy-policy__cta-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 40px;
}

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

.page-privacy-policy__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    min-width: 180px; /* Ensure buttons are not too small */
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-privacy-policy__btn-primary:hover {
    background-color: #005a2e; /* Darker green on hover */
    transform: translateY(-3px);
}

.page-privacy-policy__btn-register {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button text color */
    border: 2px solid #C30808;
}

.page-privacy-policy__btn-register:hover {
    background-color: #a30606;
    transform: translateY(-3px);
}

.page-privacy-policy__btn-login {
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button text color */
    border: 2px solid #C30808;
}

.page-privacy-policy__btn-login:hover {
    background-color: #a30606;
    transform: translateY(-3px);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 60px 20px;
    background-color: #017439; /* Dark background for FAQ */
    color: #ffffff;
}

.page-privacy-policy__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-privacy-policy__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-privacy-policy__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.page-privacy-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03);
    color: #f0f0f0;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px !important;
}

.page-privacy-policy__faq-answer .page-privacy-policy__paragraph {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    font-size: 1em;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-title {
        font-size: 2.8em;
    }
    .page-privacy-policy__section-heading {
        font-size: 2em;
    }
    .page-privacy-policy__cta-heading {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        height: 500px;
        padding-top: 0 !important; /* Ensure no double padding if body has it */
    }
    .page-privacy-policy__hero-content {
        padding: 20px 15px !important; /* Add horizontal padding for mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-privacy-policy__hero-title {
        font-size: 2.2em;
    }
    .page-privacy-policy__hero-description {
        font-size: 1em;
    }
    .page-privacy-policy__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-privacy-policy__content-section {
        padding: 40px 0px !important; /* Remove section horizontal padding, let container handle it */
    }
    .page-privacy-policy__section-heading {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 15px; /* Add padding to heading itself */
    }
    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item {
        font-size: 1em;
    }
    .page-privacy-policy__list {
        padding-left: 25px;
    }

    .page-privacy-policy__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px; /* Add padding to grid itself */
    }
    .page-privacy-policy__card {
        padding: 20px;
    }
    .page-privacy-policy__card-title {
        font-size: 1.3em;
    }

    .page-privacy-policy__cta-section {
        padding: 50px 0px !important; /* Remove section horizontal padding */
    }
    .page-privacy-policy__cta-content {
        padding: 0 15px; /* Add padding to CTA content */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-privacy-policy__cta-heading {
        font-size: 1.8em;
    }
    .page-privacy-policy__cta-description {
        font-size: 1em;
    }
    .page-privacy-policy__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to buttons container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-privacy-policy__cta-button {
        width: 100%;
        max-width: 100% !important; /* Ensure buttons don't overflow */
        margin: 0 auto;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-privacy-policy__faq-section {
        padding: 40px 0px !important; /* Remove section horizontal padding */
    }
    .page-privacy-policy__faq-list {
        padding: 0 15px; /* Add padding to FAQ list */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-privacy-policy__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-privacy-policy__faq-title {
        font-size: 1.1em;
    }
    .page-privacy-policy__faq-toggle {
        font-size: 1.5em;
    }
    .page-privacy-policy__faq-answer {
        padding: 15px;
    }

    /* General responsive for containers and elements to prevent overflow */
    .page-privacy-policy__container {
        padding: 0 15px !important; /* Ensure all containers have padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* All images must be responsive */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    /* Ensure content area images maintain aspect ratio and don't overflow */
    .page-privacy-policy__content-area img,
    .page-privacy-policy__card img {
        min-width: 200px !important; /* Enforce minimum size for content images */
        min-height: 200px !important;
    }

    /* Ensure no horizontal scroll for the entire page content */
    .page-privacy-policy {
        overflow-x: hidden !important;
    }
}