/* style/privacy-policy.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --background-color-dark: #000000; /* Body background from shared.css */
    --background-color-light: #f8f9fa;
    --border-color: #e0e0e0;
}

.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--background-color-dark);
    padding-top: 120px; /* Adjust for fixed header on desktop */
}

@media (max-width: 768px) {
    .page-privacy-policy {
        padding-top: 100px !important; /* Adjust for fixed header on mobile */
    }
}

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

.page-privacy-policy__hero-banner {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--background-color-dark));
    color: var(--text-color-dark-bg);
}

.page-privacy-policy__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-privacy-policy__subtitle {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-privacy-policy__highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.page-privacy-policy__content-area {
    padding: 60px 0;
    background-color: var(--background-color-light); /* Light background for main content */
    color: var(--text-color-light-bg); /* Dark text on light background */
}

.page-privacy-policy__text-block {
    margin-bottom: 40px;
    background: #ffffff; /* White background for text blocks */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__section-heading {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.page-privacy-policy__sub-section-heading {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-color-light-bg);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-privacy-policy__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

.page-privacy-policy__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 16px;
}

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

.page-privacy-policy__strong-text {
    font-weight: bold;
    color: var(--secondary-color);
}

.page-privacy-policy__link {
    color: #007bff; /* Standard link color */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
    color: #0056b3;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    margin-top: 50px;
}

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

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

.page-privacy-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: var(--text-color-light-bg);
    background: var(--background-color-light);
    border-top: 1px solid var(--border-color);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-color-light-bg);
}

.page-privacy-policy__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-privacy-policy__faq-question:active {
    background: #eeeeee;
}

.page-privacy-policy__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-color-light-bg);
}

.page-privacy-policy__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

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

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

    .page-privacy-policy__subtitle {
        font-size: 16px;
    }

    .page-privacy-policy__section-heading {
        font-size: 24px;
    }

    .page-privacy-policy__sub-section-heading {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__container {
        padding: 0 15px;
    }

    .page-privacy-policy__hero-banner {
        padding: 60px 0;
    }

    .page-privacy-policy__main-title {
        font-size: 30px;
    }

    .page-privacy-policy__subtitle {
        font-size: 15px;
    }

    .page-privacy-policy__content-area {
        padding: 40px 0;
    }

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

    .page-privacy-policy__section-heading {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .page-privacy-policy__sub-section-heading {
        font-size: 18px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-privacy-policy__text-block p,
    .page-privacy-policy__list li,
    .page-privacy-policy__faq-question h3,
    .page-privacy-policy__faq-answer p {
        font-size: 15px;
        line-height: 1.7;
    }

    .page-privacy-policy__list {
        margin-left: 20px;
    }

    .page-privacy-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-privacy-policy__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-privacy-policy__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure all images are responsive */
.page-privacy-policy img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile image adapt (must use !important) */
@media (max-width: 768px) {
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-banner,
    .page-privacy-policy__content-area,
    .page-privacy-policy__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}