/* style/privacy-policy.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không được viết lại */

/* --- Base Styles --- */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for dark body background */
    background-color: var(--background-color, #08160F); /* Ensure consistency with body background */
}

.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Enforce image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    box-sizing: border-box;
    background-color: var(--card-bg, #11271B); /* Dark background for hero */
    color: var(--text-main, #F2FFF6);
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

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

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold, #F2C14E); /* Using gold for main title */
}

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

.page-privacy-policy__content-area {
    max-width: 1200px;
    width: 100%; /* Ensure width: 100% for desktop */
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: var(--background-color, #08160F); /* Consistent with body */
    color: var(--text-main, #F2FFF6);
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    font-weight: 600;
    color: var(--gold, #F2C14E);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--divider, #1E3A2A);
    padding-bottom: 10px;
}

.page-privacy-policy h3 {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.page-privacy-policy a {
    color: var(--glow, #57E38D); /* Link color */
    text-decoration: none;
}

.page-privacy-policy a:hover {
    text-decoration: underline;
}

.page-privacy-policy__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary, #A7D9B8);
}

.page-privacy-policy__list-item {
    margin-bottom: 8px;
}

.page-privacy-policy__image-content-wrapper {
    display: flex;
    flex-direction: column; /* Default column for mobile first */
    gap: 20px;
    margin-bottom: 30px;
}

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

/* --- Buttons --- */
.page-privacy-policy__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.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-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure responsiveness */
}

.page-privacy-policy__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-privacy-policy__btn-secondary {
    background: transparent;
    color: var(--glow, #57E38D);
    border: 2px solid var(--glow, #57E38D);
}

.page-privacy-policy__btn-secondary:hover {
    background: var(--glow, #57E38D);
    color: var(--deep-green, #0A4B2C); /* Dark text on light background */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(87, 227, 141, 0.4);
}

/* --- FAQ Section --- */
.page-privacy-policy__faq-section {
    max-width: 1200px;
    width: 100%; /* Ensure width: 100% for desktop */
    margin: 40px auto;
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: var(--card-bg, #11271B); /* Dark background for FAQ section */
    color: var(--text-main, #F2FFF6);
    border-radius: 12px;
}

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

.page-privacy-policy__faq-item {
    background-color: var(--deep-green, #0A4B2C);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--divider, #1E3A2A);
    color: var(--text-main, #F2FFF6);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-main, #F2FFF6);
    background-color: var(--deep-green, #0A4B2C);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-privacy-policy__faq-question:hover {
    background-color: var(--divider, #1E3A2A);
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold, #F2C14E);
}

.page-privacy-policy__faq-answer {
    padding: 0 25px 18px;
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.95em;
    max-height: 0; /* For JS-controlled FAQ */
    overflow: hidden; /* For JS-controlled FAQ */
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* For JS-controlled FAQ */
}

/* Style for details open state */
.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}

/* For JS-controlled FAQ (if details/summary not used, or as fallback) */
.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 500px !important; /* Adjust as needed for content */
    padding-top: 10px;
}


/* --- Responsive Styles --- */
@media (min-width: 769px) {
    .page-privacy-policy__image-content-wrapper {
        flex-direction: row; /* Row layout for desktop */
        align-items: flex-start;
    }
    .page-privacy-policy__image-content-wrapper .page-privacy-policy__content-image {
        flex: 1;
        max-width: 45%;
    }
    .page-privacy-policy__image-content-wrapper .page-privacy-policy__list {
        flex: 1;
        max-width: 55%;
        margin-left: 0;
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-privacy-policy__main-title {
        font-size: 2em;
    }

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

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

    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }

    .page-privacy-policy h3 {
        font-size: 1.5em;
    }

    /* Images responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__image-content-wrapper,
    .page-privacy-policy__content-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden !important;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        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: 1em;
    }

    .page-privacy-policy__faq-answer {
        padding: 0 20px 15px;
    }
}