/* style/privacy-policy.css */

/* Custom Colors */
:root {
    --vtc88-game-primary: #11A84E;
    --vtc88-game-secondary: #22C768;
    --vtc88-game-background: #08160F;
    --vtc88-game-card-bg: #11271B;
    --vtc88-game-text-main: #F2FFF6;
    --vtc88-game-text-secondary: #A7D9B8;
    --vtc88-game-border: #2E7A4E;
    --vtc88-game-glow: #57E38D;
    --vtc88-game-gold: #F2C14E;
    --vtc88-game-divider: #1E3A2A;
    --vtc88-game-deep-green: #0A4B2C;
    --vtc88-game-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-privacy-policy {
    background-color: var(--vtc88-game-background);
    color: var(--vtc88-game-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px; /* Adjust padding for visual spacing */
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 8px;
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    width: 100%;
    position: relative; /* Ensure content is in normal flow, not overlaid */
    z-index: 1;
}

.page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--vtc88-game-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-privacy-policy__intro-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--vtc88-game-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--vtc88-game-background);
    color: var(--vtc88-game-text-main);
}

.page-privacy-policy__container {
    max-width: 900px;
    width: 100%; /* Ensure desktop width is 100% before max-width */
    margin: 0 auto;
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--vtc88-game-primary);
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid var(--vtc88-game-divider);
    padding-bottom: 10px;
}

.page-privacy-policy__sub-title {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    color: var(--vtc88-game-text-main);
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 500;
}

.page-privacy-policy__paragraph {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--vtc88-game-text-secondary);
}

.page-privacy-policy__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* Buttons */
.page-privacy-policy__contact-buttons {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 50px;
    gap: 20px;
    flex-wrap: wrap;
}

.page-privacy-policy__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    background: var(--vtc88-game-button-gradient);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-privacy-policy__faq-item {
    background-color: var(--vtc88-game-card-bg);
    border: 1px solid var(--vtc88-game-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--vtc88-game-text-main);
}

.page-privacy-policy__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-privacy-policy__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(17, 168, 78, 0.1); /* Slightly lighter background */
    color: var(--vtc88-game-text-main);
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

.page-privacy-policy__faq-qtext {
    flex-grow: 1;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--vtc88-game-glow);
}

.page-privacy-policy__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    color: var(--vtc88-game-text-secondary);
    max-height: 0; /* Default hidden state for JS fallback */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

/* Fallback for JS disabled or non-details element */
.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important; /* Ensure it expands */
    padding-top: 15px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

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

    .page-privacy-policy__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-privacy-policy__intro-text {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .page-privacy-policy__sub-title {
        font-size: clamp(1.2rem, 3vw, 1.6rem);
    }

    .page-privacy-policy__paragraph {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding: 20px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-privacy-policy__hero-image {
        margin-bottom: 20px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-privacy-policy__intro-text {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin-bottom: 30px;
    }

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

    .page-privacy-policy__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-privacy-policy__sub-title {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-top: 30px;
        margin-bottom: 10px;
    }

    .page-privacy-policy__paragraph {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    /* Images responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure content images take full width */
        height: auto !important;
        display: block !important;
        min-width: unset; /* Remove min-width for mobile flexibility */
        min-height: unset; /* Remove min-height for mobile flexibility */
    }

    /* Ensure content containers are correctly constrained */
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsiveness */
    .page-privacy-policy__contact-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-privacy-policy__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-privacy-policy__faq-question {
        padding: 15px;
        font-size: 1rem;
    }

    .page-privacy-policy__faq-toggle {
        font-size: 1.2rem;
    }

    .page-privacy-policy__faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 0.9rem;
    }
}

/* No CSS filters on images as per requirements */
.page-privacy-policy img {
    filter: none;
}