/* style/privacy-policy.css */

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

/* Base styles for the page */
.page-privacy-policy {
    background-color: var(--xanh9-bg-main);
    color: var(--xanh9-text-main); /* Text Main for overall page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Sections */
.page-privacy-policy__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
    background-color: var(--xanh9-bg-main);
}

.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;
    object-fit: cover;
    display: block;
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    color: var(--xanh9-text-main);
}

.page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--xanh9-text-main);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.page-privacy-policy__description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    color: var(--xanh9-text-secondary);
}

.page-privacy-policy__cta-button {
    display: inline-block;
    background: var(--xanh9-btn-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Text elements */
.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--xanh9-primary);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-privacy-policy__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--xanh9-gold);
    border-radius: 2px;
}

.page-privacy-policy__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--xanh9-secondary);
}

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

.page-privacy-policy__link {
    color: var(--xanh9-gold);
    text-decoration: none;
    border-bottom: 1px solid var(--xanh9-gold);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-privacy-policy__link:hover {
    color: #ffffff;
    border-color: #ffffff;
}

/* Card styles */
.page-privacy-policy__card-bg {
    background-color: var(--xanh9-card-bg);
}

.page-privacy-policy__dark-section {
    color: var(--xanh9-text-main);
}

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

.page-privacy-policy__card {
    background-color: var(--xanh9-deep-green);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--xanh9-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--xanh9-text-main);
}

.page-privacy-policy__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-privacy-policy__card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--xanh9-gold);
}

.page-privacy-policy__card-text {
    font-size: 0.95rem;
    color: var(--xanh9-text-secondary);
}

/* Images */
.page-privacy-policy img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    object-fit: cover;
}

.page-privacy-policy__image-full-width {
    width: 100%;
    max-width: 100%;
}

/* Contact Section */
.page-privacy-policy__contact-section {
    text-align: center;
}

.page-privacy-policy__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

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

.page-privacy-policy__contact-item a {
    color: var(--xanh9-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-privacy-policy__contact-item a:hover {
    color: #ffffff;
}

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

.page-privacy-policy__faq-list {
    margin-top: 40px;
    border-top: 1px solid var(--xanh9-divider);
}

.page-privacy-policy__faq-item {
    background-color: var(--xanh9-card-bg);
    border: 1px solid var(--xanh9-border);
    border-top: none;
    margin-bottom: 10px;
    border-radius: 0 0 12px 12px; /* For the last item */
    overflow: hidden;
}

.page-privacy-policy__faq-item:first-of-type {
    border-top: 1px solid var(--xanh9-border);
    border-radius: 12px 12px 0 0;
}
.page-privacy-policy__faq-item:last-of-type {
    border-radius: 0 0 12px 12px;
}
.page-privacy-policy__faq-item:first-of-type:last-of-type {
    border-radius: 12px;
}


.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: var(--xanh9-deep-green);
    color: var(--xanh9-text-main);
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: var(--xanh9-primary);
}

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

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

.page-privacy-policy__faq-answer {
    padding: 0 30px 20px;
    background-color: var(--xanh9-card-bg);
    color: var(--xanh9-text-secondary);
    font-size: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For <details> tag, native open state */
.page-privacy-policy__faq-item[open] > .page-privacy-policy__faq-question {
    background-color: var(--xanh9-primary);
}
.page-privacy-policy__faq-item[open] > .page-privacy-policy__faq-answer {
    max-height: 2000px; /* Sufficiently large for content */
    padding-top: 15px;
}
.page-privacy-policy__faq-item summary {
    list-style: none;
}
.page-privacy-policy__faq-item summary::-webkit-details-marker {
    display: none;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-content {
        margin: 30px auto;
    }
    .page-privacy-policy__section {
        padding: 40px 15px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-privacy-policy__description {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    .page-privacy-policy__section-title {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }
    .page-privacy-policy__sub-title {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
    .page-privacy-policy__grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__section {
        padding: 30px 15px;
    }
    .page-privacy-policy__content-area {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-section,
    .page-privacy-policy__hero-content,
    .page-privacy-policy__grid-container,
    .page-privacy-policy__contact-section,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__faq-item,
    .page-privacy-policy__faq-question,
    .page-privacy-policy__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is for visual top space */
    }

    .page-privacy-policy__cta-button {
        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;
    }

    .page-privacy-policy__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-privacy-policy__faq-answer {
        padding: 0 20px 15px;
    }
    .page-privacy-policy__faq-toggle {
        font-size: 1.3rem;
    }
}