/* style/privacy-policy.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

.page-privacy-policy__dark-section {
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
}

.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 40px; /* Small top padding, then more bottom padding */
    overflow: hidden;
    background-color: #08160F; /* Ensure hero background matches site background */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the image wrapper */
    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;
    padding: 20px;
    margin-top: 20px; /* Space between image and content */
    z-index: 1; /* Ensure content is above any background elements */
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 15px;
    color: #F2FFF6; /* Text Main */
    line-height: 1.2;
}

.page-privacy-policy__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4); /* Glow color shadow */
}

.page-privacy-policy__section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
}

.page-privacy-policy__section:nth-child(even) {
    background-color: #11271B; /* Card BG for alternating sections */
}

.page-privacy-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #57E38D; /* Glow color for titles */
    margin-bottom: 30px;
    text-align: center;
}

.page-privacy-policy__subsection-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #2AD16F; /* A lighter green from button gradient */
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-privacy-policy p {
    margin-bottom: 1em;
    color: #A7D9B8; /* Text Secondary */
}

.page-privacy-policy__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1em;
}

.page-privacy-policy__list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #A7D9B8; /* Text Secondary */
}

.page-privacy-policy__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2AD16F; /* A lighter green */
    font-weight: bold;
}

.page-privacy-policy__image-wrapper {
    margin: 40px auto;
    text-align: center;
    width: 100%;
    max-width: 800px; /* Limit image width in content */
}

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

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 60px 0;
    background-color: #11271B; /* Card BG */
}

.page-privacy-policy__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-privacy-policy__faq-item {
    background-color: #0A4B2C; /* Deep Green */
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #2E7A4E; /* Border color */
    overflow: hidden;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #0A4B2C; /* Deep Green */
    user-select: none;
    list-style: none; /* For details/summary */
    position: relative;
}

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

.page-privacy-policy__faq-question:hover {
    background-color: #1E3A2A; /* Divider color for subtle hover */
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #57E38D; /* Glow color */
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-privacy-policy__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
    max-height: 1000px; /* Sufficiently large to show content */
    transition: max-height 0.5s ease-in;
}

.page-privacy-policy__faq-answer p {
    margin-bottom: 0;
}

/* Links within content */
.page-privacy-policy a {
    color: #57E38D; /* Glow color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: #2AD16F; /* Lighter green */
    text-decoration: underline;
}


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

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

    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 8vw, 2.2em);
        padding: 0 10px;
    }

    .page-privacy-policy__description {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-privacy-policy__cta-button {
        padding: 10px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto;
        display: block;
    }

    .page-privacy-policy__section {
        padding: 40px 0;
    }

    .page-privacy-policy__container {
        padding: 0 15px;
    }

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

    .page-privacy-policy__subsection-title {
        font-size: 1.3em;
        margin-top: 30px;
    }

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

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

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

    /* Mobile image adaptation */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-privacy-policy__hero-image {
        max-height: 300px;
    }

    /* Mobile container adaptation */
    .page-privacy-policy__section,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-section,
    .page-privacy-policy__data-collection-section,
    .page-privacy-policy__usage-section,
    .page-privacy-policy__sharing-section,
    .page-privacy-policy__rights-section,
    .page-privacy-policy__security-section,
    .page-privacy-policy__cookie-section,
    .page-privacy-policy__changes-section,
    .page-privacy-policy__contact-section,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    
    .page-privacy-policy__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-privacy-policy__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}