/* style/privacy-policy.css */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Assuming body handles background via shared.css */
}

.page-privacy-policy__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(1, 116, 57, 0.9); /* Darker shade of main color */
    color: #ffffff;
    overflow: hidden;
    padding-top: calc(var(--header-offset, 120px) + 40px); /* Adjust for header offset, then add some padding */
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-privacy-policy__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

.page-privacy-policy__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-privacy-policy__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    border: none;
}

.page-privacy-policy__btn-register:hover {
    background-color: #a00606;
}

.page-privacy-policy__btn-login {
    background-color: #C30808;
    color: #FFFF00;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    border: none;
}

.page-privacy-policy__btn-login:hover {
    background-color: #a00606;
}

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

.page-privacy-policy__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.page-privacy-policy__section {
    padding: 60px 20px;
    background-color: var(--dark-bg-1, #1a1a1a); /* Using shared dark background variable */
    color: #ffffff;
}

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

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

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-privacy-policy__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-privacy-policy__grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-privacy-policy__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-privacy-policy__card-image {
    width: 100%;
    max-width: 400px; /* Ensure images are not too wide in cards */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
}

.page-privacy-policy__card-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-privacy-policy__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.page-privacy-policy__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-privacy-policy__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439; /* Brand color checkmark */
}

.page-privacy-policy__text-block {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter than section background */
    padding: 25px;
    border-radius: 8px;
    color: #ffffff;
}

.page-privacy-policy__text-block-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-privacy-policy__image-full-width {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
    min-height: 200px; /* Enforce minimum size */
}

/* FAQ Section */
.page-privacy-policy__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-privacy-policy__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    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;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(1, 116, 57, 0.8);
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: #017439;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    transform: rotate(45deg);
}

.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.05);
    color: #ffffff;
}

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

.page-privacy-policy__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Contact Section */
.page-privacy-policy__contact-us {
    text-align: center;
    padding-bottom: 80px;
}

.page-privacy-policy__btn-contact {
    background-color: #017439;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    border: none;
}

.page-privacy-policy__btn-contact:hover {
    background-color: #005f2e;
}

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

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

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding: 60px 15px;
        padding-top: calc(var(--header-offset, 120px) + 20px);
    }

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

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

    .page-privacy-policy__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-privacy-policy__btn-register,
    .page-privacy-policy__btn-login,
    .page-privacy-policy__btn-contact {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__section {
        padding: 40px 15px;
    }

    .page-privacy-policy__container {
        padding-left: 0;
        padding-right: 0;
    }

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

    .page-privacy-policy__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-privacy-policy__grid,
    .page-privacy-policy__grid-small {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-privacy-policy__card {
        padding: 20px;
    }

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

    .page-privacy-policy__list li {
        font-size: 0.95em;
    }

    .page-privacy-policy__text-block {
        padding: 20px;
    }

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

    .page-privacy-policy__image-full-width {
        max-height: 300px;
    }

    .page-privacy-policy__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-privacy-policy__faq-answer {
        padding: 15px;
    }

    /* Mobile image responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Ensure all containers with images/videos are constrained */
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Specific padding for sections to avoid content touching edges */
    .page-privacy-policy__section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-privacy-policy__hero-section {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    /* Ensure images in cards are responsive */
    .page-privacy-policy__card-image {
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__hero-title {
        font-size: 1.5em;
    }

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

    .page-privacy-policy__faq-question {
        font-size: 1em;
    }
}