/* style/privacy-policy.css */

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

.page-privacy-policy {
    color: var(--rc88-text-main); /* Ensure text is visible on potentially dark body background */
    background-color: var(--rc88-background);
}

.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--rc88-background);
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 300px; /* Ensure hero image is not too small */
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
    margin-top: -100px; /* Overlap with image slightly for visual effect */
    background-color: var(--rc88-card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--rc88-border-color);
}

.page-privacy-policy__main-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--rc88-gold-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-privacy-policy__description {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: var(--rc88-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    background: var(--rc88-button-gradient);
    color: var(--rc88-text-main);
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-privacy-policy__cta-button--secondary {
    background: none;
    border: 2px solid var(--rc88-primary-color);
    color: var(--rc88-primary-color);
    box-shadow: none;
}

.page-privacy-policy__cta-button--secondary:hover {
    background: var(--rc88-primary-color);
    color: var(--rc88-text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--rc88-background);
}

.page-privacy-policy__section {
    margin-bottom: 50px;
    padding: 30px;
    border-radius: 12px;
    background-color: var(--rc88-card-bg);
    border: 1px solid var(--rc88-border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__dark-section {
    background-color: var(--rc88-deep-green);
}

.page-privacy-policy__section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--rc88-gold-color);
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rc88-divider-color);
}

.page-privacy-policy__section-intro .page-privacy-policy__section-title {
    color: var(--rc88-primary-color);
}

.page-privacy-policy__text-block {
    font-size: 17px;
    line-height: 1.7;
    color: var(--rc88-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-privacy-policy__card {
    background-color: var(--rc88-deep-green);
    border: 1px solid var(--rc88-border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-privacy-policy__card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--rc88-primary-color);
    margin-bottom: 15px;
}

.page-privacy-policy__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--rc88-text-secondary);
}

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

.page-privacy-policy__list-item {
    font-size: 17px;
    line-height: 1.7;
    color: var(--rc88-text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-privacy-policy__list-item::before {
    content: '•';
    color: var(--rc88-primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
    top: 0;
}

.page-privacy-policy__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--rc88-border-color);
}

.page-privacy-policy__faq-section {
    margin-top: 60px;
}

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

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

.page-privacy-policy__faq-item[open] {
    background-color: var(--rc88-card-bg);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--rc88-primary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: all 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: rgba(var(--rc88-primary-color), 0.1);
}

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

.page-privacy-policy__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-privacy-policy__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: var(--rc88-gold-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 25px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--rc88-text-secondary);
    animation: fadein 0.5s ease-in-out;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(24px, 5vw, 40px);
    }

    .page-privacy-policy__description {
        font-size: clamp(15px, 2.5vw, 18px);
    }

    .page-privacy-policy__section-title {
        font-size: clamp(20px, 4vw, 30px);
    }

    .page-privacy-policy__card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-content {
        margin-top: -40px;
        padding: 20px 10px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(22px, 6vw, 36px);
    }

    .page-privacy-policy__description {
        font-size: clamp(14px, 3vw, 16px);
    }

    .page-privacy-policy__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-privacy-policy__section-title {
        font-size: clamp(18px, 5vw, 28px);
        margin-bottom: 20px;
    }

    .page-privacy-policy__text-block, 
    .page-privacy-policy__card-text, 
    .page-privacy-policy__list-item, 
    .page-privacy-policy__faq-answer {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .page-privacy-policy__card-title {
        font-size: 20px;
    }

    .page-privacy-policy__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    /* Mobile image responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__content-area,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__faq-list,
    .page-privacy-policy__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    /* Ensure button containers also adapt */
    .page-privacy-policy__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-privacy-policy__cta-button {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__hero-content {
        margin-top: -30px;
        border-radius: 8px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(20px, 7vw, 30px);
    }
    .page-privacy-policy__description {
        font-size: clamp(13px, 3.5vw, 15px);
    }
    .page-privacy-policy__section {
        padding: 15px;
    }
    .page-privacy-policy__section-title {
        font-size: clamp(16px, 6vw, 24px);
    }
    .page-privacy-policy__card-title {
        font-size: 18px;
    }
    .page-privacy-policy__list-item, 
    .page-privacy-policy__text-block, 
    .page-privacy-policy__card-text, 
    .page-privacy-policy__faq-answer {
        font-size: 15px !important;
    }
    .page-privacy-policy__faq-question {
        font-size: 15px;
        padding: 12px 15px;
    }
}