/* style/privacy-policy.css */

/* Custom colors from requirements */
:root {
    --iwin88-primary: #11A84E; /* Main */
    --iwin88-secondary: #22C768; /* Auxiliary */
    --iwin88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --iwin88-card-bg: #11271B; /* Card BG */
    --iwin88-background: #08160F; /* Background */
    --iwin88-text-main: #F2FFF6; /* Text Main */
    --iwin88-text-secondary: #A7D9B8; /* Text Secondary */
    --iwin88-border: #2E7A4E; /* Border */
    --iwin88-glow: #57E38D; /* Glow */
    --iwin88-gold: #F2C14E; /* Gold */
    --iwin88-divider: #1E3A2A; /* Divider */
    --iwin88-deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the page content, assuming body background is dark from shared.css */
.page-privacy-policy {
    background-color: var(--iwin88-background); /* Explicitly set page background to match dark theme */
    color: var(--iwin88-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stacks image and content vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--iwin88-deep-green); /* A darker green for the hero section background */
    padding-bottom: 40px; /* Padding below content */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 20px auto 0 auto; /* Margin above content, below image */
    padding: 0 20px;
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    font-weight: 700;
    color: var(--iwin88-gold); /* Gold color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-privacy-policy__lead-text {
    font-size: clamp(1em, 2vw, 1.2em);
    color: var(--iwin88-text-secondary); /* Secondary text color */
    max-width: 800px;
    margin: 0 auto;
}

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--iwin88-background); /* Match page background */
    color: var(--iwin88-text-main);
}

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

.page-privacy-policy__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--iwin88-primary); /* Primary color for section titles */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.page-privacy-policy__sub-section-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    color: var(--iwin88-text-main); /* Main text color for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-privacy-policy__paragraph {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--iwin88-text-main);
}

.page-privacy-policy__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--iwin88-text-main);
}

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

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

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

.page-privacy-policy__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--iwin88-text-main);
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-privacy-policy__faq-item summary:hover {
    background-color: var(--iwin88-deep-green);
}

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

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--iwin88-gold);
}

.page-privacy-policy__faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: var(--iwin88-text-secondary);
}

/* Call to Action Section */
.page-privacy-policy__cta-section {
    text-align: center;
    margin-top: 50px;
    padding: 40px 20px;
    background-color: var(--iwin88-card-bg); /* Card background for CTA */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--iwin88-border);
}

.page-privacy-policy__cta-text {
    font-size: clamp(1.2em, 2.5vw, 1.5em);
    color: var(--iwin88-text-main);
    margin-bottom: 30px;
    font-weight: 500;
}

.page-privacy-policy__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--iwin88-button-gradient);
    color: #ffffff; /* White text for button */
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

/* Links */
.page-privacy-policy__contact-link {
    color: var(--iwin88-gold); /* Gold color for contact links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-privacy-policy__contact-link:hover {
    color: var(--iwin88-glow);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-content {
        padding: 0 30px;
    }
    .page-privacy-policy__content-area {
        padding: 30px 20px;
    }
}

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

    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
    }

    .page-privacy-policy__lead-text {
        font-size: clamp(0.9em, 3vw, 1.1em);
    }

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

    .page-privacy-policy__section-title {
        font-size: clamp(1.6em, 5vw, 2em);
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-privacy-policy__sub-section-title {
        font-size: clamp(1.2em, 4vw, 1.5em);
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-section,
    .page-privacy-policy__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button 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-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure no filter on images */
.page-privacy-policy img {
    filter: none !important;
}

/* Color contrast enforcement based on dark background */
.page-privacy-policy,
.page-privacy-policy__paragraph,
.page-privacy-policy__list-item {
    color: var(--iwin88-text-main); /* #F2FFF6 for main text */
}

.page-privacy-policy__section-title {
    color: var(--iwin88-primary); /* #11A84E for titles, good contrast with #F2FFF6 */
}

.page-privacy-policy__sub-section-title {
    color: var(--iwin88-text-main); /* #F2FFF6 for sub-titles */
}

.page-privacy-policy__cta-section {
    background-color: var(--iwin88-card-bg); /* #11271B for card background */
    color: var(--iwin88-text-main); /* #F2FFF6 for text on card */
}

.page-privacy-policy__btn-primary {
    background: var(--iwin88-button-gradient); /* Gradient button */
    color: #ffffff; /* White text on button */
}

.page-privacy-policy__contact-link {
    color: var(--iwin88-gold); /* #F2C14E for links, good contrast with dark background */
}