/* style/privacy-policy.css */

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

/* Base styles for the privacy policy page */
/* body already has padding-top: var(--header-offset); from shared.css */
.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    color: var(--open88-bet-text-main); /* Light text on dark background */
    background-color: var(--open88-bet-background); /* Dark background */
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll from content */
}

.page-privacy-policy a {
    color: var(--open88-bet-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: var(--open88-bet-glow);
    text-decoration: underline;
}

.page-privacy-policy h1,
.page-privacy-policy h2,
.page-privacy-policy h3,
.page-privacy-policy h4,
.page-privacy-policy h5,
.page-privacy-policy h6 {
    color: var(--open88-bet-text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-privacy-policy h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* H1 clamp for responsiveness */
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--open88-bet-primary);
    text-align: center;
    margin-top: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-privacy-policy h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--open88-bet-secondary);
    border-radius: 2px;
}

.page-privacy-policy h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--open88-bet-text-main);
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image block on top, text block below */
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-bottom: 30px; /* Space between image and text */
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-privacy-policy__description {
    font-size: 1.1em;
    color: var(--open88-bet-text-secondary);
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-privacy-policy__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 600px; /* Limit width on larger screens */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding for mobile */
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

.page-privacy-policy__btn-primary {
    background: var(--open88-bet-button-gradient);
    color: var(--open88-bet-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-privacy-policy__btn-secondary {
    background: transparent;
    color: var(--open88-bet-secondary);
    border: 2px solid var(--open88-bet-secondary);
}

.page-privacy-policy__btn-secondary:hover {
    background: var(--open88-bet-secondary);
    color: var(--open88-bet-background);
    transform: translateY(-3px);
}

/* General Section Styling */
.page-privacy-policy__section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--open88-bet-divider);
}

.page-privacy-policy__section:last-of-type {
    border-bottom: none;
}

.page-privacy-policy__text-block {
    margin-bottom: 20px;
    color: var(--open88-bet-text-secondary);
}

/* Card Grid */
.page-privacy-policy__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-privacy-policy__card {
    background-color: var(--open88-bet-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--open88-bet-border);
    color: var(--open88-bet-text-main);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-privacy-policy__card-title {
    color: var(--open88-bet-primary);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.page-privacy-policy__card-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Max width for card images */
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

/* Lists */
.page-privacy-policy__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-privacy-policy__list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--open88-bet-text-secondary);
}

.page-privacy-policy__list-item::before {
    content: '•';
    color: var(--open88-bet-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-privacy-policy__list--bullet .page-privacy-policy__list-item::before {
    content: '•';
}

/* Full width images within content */
.page-privacy-policy__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Contact CTA */
.page-privacy-policy__contact-cta {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding-bottom: 80px;
}

.page-privacy-policy__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__faq-item {
    background-color: var(--open88-bet-card-bg);
    border: 1px solid var(--open88-bet-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-privacy-policy__faq-item[open] {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--open88-bet-text-main);
    font-size: 1.1em;
    background-color: var(--open88-bet-deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--open88-bet-divider);
    list-style: none; /* For details/summary */
}

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

.page-privacy-policy__faq-question:hover {
    background-color: rgba(var(--open88-bet-deep-green), 0.8);
}

.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(--open88-bet-secondary);
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    content: '−';
}

.page-privacy-policy__faq-answer {
    padding: 20px 25px;
    color: var(--open88-bet-text-secondary);
    background-color: var(--open88-bet-card-bg); /* Match card background */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-privacy-policy h1 {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-privacy-policy h2 {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
    .page-privacy-policy__hero-section {
        padding: 10px 15px 40px;
    }
    .page-privacy-policy__section {
        padding: 40px 15px;
    }
    .page-privacy-policy__card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-privacy-policy h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-privacy-policy h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .page-privacy-policy h3 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

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

    /* Mobile video responsiveness (if any video is present) */
    .page-privacy-policy video,
    .page-privacy-policy__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Containers for images/videos/content on mobile */
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-section,
    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__hero-content,
    .page-privacy-policy__data-collection,
    .page-privacy-policy__data-usage,
    .page-privacy-policy__data-sharing,
    .page-privacy-policy__cookies,
    .page-privacy-policy__data-security,
    .page-privacy-policy__your-rights,
    .page-privacy-policy__third-party-links,
    .page-privacy-policy__children-privacy,
    .page-privacy-policy__policy-changes,
    .page-privacy-policy__contact-us,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__video-section,
    .page-privacy-policy__video-container,
    .page-privacy-policy__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important; /* Add padding to content edges */
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile button responsiveness */
    .page-privacy-policy__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px !important; /* Ensure buttons align with content padding */
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary,
    .page-privacy-policy a[class*="button"],
    .page-privacy-policy a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }

    /* FAQ specific mobile adjustments */
    .page-privacy-policy__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-privacy-policy__faq-answer {
        padding: 15px 20px;
    }
}