/* style/privacy-policy.css */

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

.page-privacy-policy {
    background-color: var(--k88-bg-primary);
    color: var(--k88-text-main); /* Ensure contrast with 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; /* Image on top, content below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--k88-deep-green); /* A darker green for the hero section background */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

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

.page-privacy-policy__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 40px 20px 0; /* Padding below the image */
    margin: 0 auto;
}

.page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--k88-gold-color); /* Gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.page-privacy-policy__description {
    font-size: 1.15rem;
    color: var(--k88-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Break long words */
}

.page-privacy-policy__btn-primary {
    background: var(--k88-button-gradient);
    color: var(--k88-text-main); /* White-ish text for primary button */
    border: none;
}

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

.page-privacy-policy__btn-secondary {
    background: transparent;
    color: var(--k88-glow-color); /* Glow color for secondary button text */
    border: 2px solid var(--k88-glow-color);
    margin-top: 20px;
}

.page-privacy-policy__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1); /* Light background on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-privacy-policy__section-wrapper {
    background-color: var(--k88-card-bg); /* Card BG color for sections */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--k88-border-color);
}

.page-privacy-policy__section-title {
    font-size: 2rem;
    color: var(--k88-gold-color); /* Gold color for section titles */
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid var(--k88-divider-color);
    padding-bottom: 10px;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    color: var(--k88-text-main);
}

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

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    color: var(--k88-text-secondary); /* Secondary text color for list items */
}

.page-privacy-policy__list-item strong {
    color: var(--k88-text-main); /* Main text color for strong elements */
}

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 25px;
    margin-bottom: 25px;
    object-fit: cover;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-privacy-policy__last-updated {
    font-style: italic;
    color: var(--k88-text-secondary);
    text-align: right;
    margin-top: 30px;
}

/* Contact List */
.page-privacy-policy__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-privacy-policy__contact-item {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--k88-text-main);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

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

.page-privacy-policy__faq-item {
    background-color: var(--k88-card-bg);
    border: 1px solid var(--k88-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* For details tag */
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--k88-text-main);
    cursor: pointer;
    background-color: var(--k88-deep-green); /* Slightly darker green for question header */
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: var(--k88-border-color); /* Lighter on hover */
}

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

.page-privacy-policy__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    color: var(--k88-gold-color); /* Gold color for toggle icon */
}

/* For <details> tag, hide default marker */
.page-privacy-policy__faq-item summary {
    list-style: none;
}
.page-privacy-policy__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-privacy-policy__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--k88-text-secondary);
    background-color: var(--k88-card-bg);
    border-top: 1px solid var(--k88-divider-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-privacy-policy__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-privacy-policy__hero-content {
        padding: 30px 15px 0;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

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

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
        display: block !important; /* Ensure block display for full width */
    }
    
    .page-privacy-policy__btn-secondary {
        margin-top: 15px; /* Adjust spacing for stacked buttons */
    }

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

    .page-privacy-policy__section-wrapper {
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-privacy-policy__section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

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

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

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

    /* 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__content-area,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__section-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

/* Ensure content images are not smaller than 200px on desktop */
.page-privacy-policy__content-image {
    min-width: 200px;
    min-height: 200px;
}
/* For content images, ensure they are at least 200px when not in mobile media query */
.page-privacy-policy__content-area img {
    width: 100%; /* Default to full width of its container */
    height: auto;
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters on images */
.page-privacy-policy img {
    filter: none !important;
}