/* style/privacy-policy.css */

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

.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    color: var(--k88cc-text-main); /* Default text color for the page */
    background-color: var(--k88cc-background); /* Body background is handled by shared.css, but this ensures consistency */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--k88cc-background);
    color: var(--k88cc-text-main);
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

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

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

.page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--k88cc-gold);
}

.page-privacy-policy__hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--k88cc-text-secondary);
}

.page-privacy-policy__hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--k88cc-card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--k88cc-text-main);
    line-height: 1.7;
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--k88cc-primary-color);
    border-bottom: 2px solid var(--k88cc-divider);
    padding-bottom: 10px;
}

.page-privacy-policy__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--k88cc-secondary-color);
}

.page-privacy-policy__paragraph {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--k88cc-text-main);
}

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

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

.page-privacy-policy__list li strong {
    color: var(--k88cc-gold);
}

.page-privacy-policy__text-link {
    color: var(--k88cc-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__text-link:hover {
    color: var(--k88cc-glow);
}

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

.page-privacy-policy__contact-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--k88cc-text-secondary);
}

.page-privacy-policy__contact-list li strong {
    color: var(--k88cc-gold);
}

/* Buttons */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-privacy-policy__btn-primary {
    background: var(--k88cc-button-gradient);
    color: var(--k88cc-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-privacy-policy__btn-secondary {
    background-color: transparent;
    color: var(--k88cc-primary-color);
    border: 2px solid var(--k88cc-primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__btn-secondary:hover {
    background-color: var(--k88cc-primary-color);
    color: var(--k88cc-text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-privacy-policy__cta-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 80px 20px;
    background-color: var(--k88cc-deep-green);
    color: var(--k88cc-text-main);
    text-align: center;
}

.page-privacy-policy__cta-content {
    max-width: 600px;
}

.page-privacy-policy__cta-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--k88cc-gold);
}

.page-privacy-policy__cta-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--k88cc-text-secondary);
}

.page-privacy-policy__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.page-privacy-policy__cta-image-wrapper {
    max-width: 500px;
    width: 100%;
}

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

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

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

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--k88cc-card-bg);
    color: var(--k88cc-gold);
    transition: background-color 0.3s ease;
    list-style: none; /* For details tag */
}

.page-privacy-policy__faq-question:hover {
    background-color: var(--k88cc-deep-green);
}

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

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

.page-privacy-policy__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--k88cc-primary-color);
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg);
}

.page-privacy-policy__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--k88cc-text-secondary);
    max-height: 0;
    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 */
    padding-top: 15px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-privacy-policy__hero-section {
        padding: 40px 15px;
    }

    .page-privacy-policy__hero-content {
        max-width: 700px;
    }

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

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

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

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

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

    .page-privacy-policy__cta-section {
        flex-direction: column;
        padding: 60px 15px;
        gap: 30px;
    }
}

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

    .page-privacy-policy__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* Ensure minimal top padding on mobile */
    }

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

    .page-privacy-policy__hero-description,
    .page-privacy-policy__paragraph,
    .page-privacy-policy__list li,
    .page-privacy-policy__contact-list li {
        font-size: 0.95rem;
    }

    .page-privacy-policy__content-area,
    .page-privacy-policy__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Images responsive adaptation */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__cta-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Buttons responsive adaptation */
    .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 15px;
    }

    .page-privacy-policy__hero-cta-buttons,
    .page-privacy-policy__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* FAQ responsive adaptation */
    .page-privacy-policy__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

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