/* 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; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding: 0;
    margin: 0;
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #121212; /* Match body background for consistency */
    overflow: hidden;
}

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

.page-privacy-policy__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle overlay for readability */
    filter: none; /* Ensure no color filters */
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
    border-radius: 10px;
}

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

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

.page-privacy-policy__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-privacy-policy__btn-primary:hover {
    background-color: #a30606;
}

/* General Section and Container Styles */
.page-privacy-policy__section {
    padding: 60px 20px;
    background-color: #1a1a1a; /* Slightly lighter dark background for sections */
    color: #ffffff;
}

.page-privacy-policy__section.page-privacy-policy__dark-bg {
    background-color: #0d0d0d; /* Even darker background for contrast */
    color: #ffffff;
}

.page-privacy-policy__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-privacy-policy__heading {
    font-size: 2.2em;
    color: #017439; /* Brand color for headings */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-privacy-policy__paragraph {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-privacy-policy__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

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

.page-privacy-policy__link {
    color: #017439; /* Brand color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
    color: #02a353;
}

/* Image with Content Layout */
.page-privacy-policy__image-content-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-privacy-policy__image-content-layout--reverse {
    flex-direction: row-reverse;
}

.page-privacy-policy__text-block {
    flex: 1;
}

.page-privacy-policy__image-wrapper {
    flex: 1;
    min-width: 200px; /* Minimum size requirement */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-privacy-policy__image-wrapper--full-width {
    flex: none;
    width: 100%;
    margin-top: 30px;
}

.page-privacy-policy__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: none; /* Ensure no color filters */
}

/* FAQ Section */
.page-privacy-policy__faq {
    background-color: #1a1a1a;
    padding-bottom: 80px;
}

.page-privacy-policy__faq-list {
    margin-top: 40px;
}

.page-privacy-policy__faq-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

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

.page-privacy-policy__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    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 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #333333; /* Darker background for answer */
    color: #f0f0f0;
}

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

.page-privacy-policy__faq-answer .page-privacy-policy__paragraph {
    margin-bottom: 0;
    color: #f0f0f0;
}

/* Copyright Section */
.page-privacy-policy__copyright {
    text-align: center;
    padding: 30px 20px;
    background-color: #0a0a0a;
    color: #888888;
    font-size: 0.9em;
}

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

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

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

    .page-privacy-policy__image-content-layout {
        flex-direction: column;
        text-align: center;
    }

    .page-privacy-policy__image-content-layout--reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile, usually handled by shared.css on body, but page-specific sections might need it */
    .page-privacy-policy__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item,
    .page-privacy-policy__faq-title {
        font-size: 1em;
    }

    .page-privacy-policy__section,
    .page-privacy-policy__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-privacy-policy__image-wrapper,
    .page-privacy-policy__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons 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: 12px 15px !important;
        font-size: 1em !important;
    }
    
    /* Ensure containers with buttons or images also adapt */
    .page-privacy-policy__section,
    .page-privacy-policy__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}