/* style/privacy-policy.css */

/* Root variables for colors */
:root {
    --page-privacy-policy-primary-color: #11A84E; /* Main color */
    --page-privacy-policy-secondary-color: #22C768; /* Auxiliary color */
    --page-privacy-policy-background-color: #08160F; /* Background */
    --page-privacy-policy-card-bg: #11271B; /* Card Background */
    --page-privacy-policy-text-main: #F2FFF6; /* Main text color */
    --page-privacy-policy-text-secondary: #A7D9B8; /* Secondary text color */
    --page-privacy-policy-border-color: #2E7A4E; /* Border color */
    --page-privacy-policy-glow-color: #57E38D; /* Glow color */
    --page-privacy-policy-gold-color: #F2C14E; /* Gold color */
    --page-privacy-policy-divider-color: #1E3A2A; /* Divider color */
    --page-privacy-policy-deep-green: #0A4B2C; /* Deep Green color */

    /* Button gradient */
    --page-privacy-policy-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-privacy-policy-text-main); /* Default text color for the page */
    background-color: var(--page-privacy-policy-background-color); /* Body background color from shared.css is var(--background-color), but for content area, we use custom */
}

/* Ensure all images are responsive by default */
.page-privacy-policy img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Example style */
}

.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Enforce top-to-bottom layout */
    align-items: center;
    text-align: center;
    padding: 60px 20px; /* General padding */
    padding-top: 10px; /* Small top padding as per instruction, body handles main offset */
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    border-radius: 12px;
}

.page-privacy-policy__hero-content {
    position: relative; /* Ensure it's in normal flow */
    z-index: 1; /* Ensure text is above image if there's any overlap possibility */
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(17, 39, 27, 0.8); /* Semi-transparent background for readability */
    border-radius: 12px;
    box-sizing: border-box;
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-privacy-policy-text-main);
    margin-bottom: 20px;
    max-width: 600px; /* Constrain H1 width for better readability */
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__intro-text {
    font-size: 1.1em;
    color: var(--page-privacy-policy-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-privacy-policy__btn-primary {
    background: var(--page-privacy-policy-button-gradient);
    color: var(--page-privacy-policy-text-main);
    border: none;
}

.page-privacy-policy__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-privacy-policy__btn-secondary {
    background: var(--page-privacy-policy-card-bg); /* Use card background for secondary button */
    color: var(--page-privacy-policy-text-secondary);
    border: 2px solid var(--page-privacy-policy-border-color);
}

.page-privacy-policy__btn-secondary:hover {
    background: var(--page-privacy-policy-border-color);
    color: var(--page-privacy-policy-text-main);
    transform: translateY(-2px);
}

.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    border-radius: 12px;
    margin-bottom: 30px;
}

.page-privacy-policy__content-area.page-privacy-policy__dark-bg {
    background-color: var(--page-privacy-policy-card-bg); /* Custom dark background for sections */
    color: var(--page-privacy-policy-text-main);
}

.page-privacy-policy__content-area.page-privacy-policy__light-bg {
    background-color: var(--page-privacy-policy-background-color); /* Custom light background for sections */
    color: var(--page-privacy-policy-text-main);
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: var(--page-privacy-policy-gold-color); /* Use gold for main section titles */
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
}

.page-privacy-policy__sub-title {
    font-size: 1.6em;
    color: var(--page-privacy-policy-secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-privacy-policy__text-block {
    font-size: 1.05em;
    margin-bottom: 15px;
    color: var(--page-privacy-policy-text-secondary);
}

.page-privacy-policy__text-block a {
    color: var(--page-privacy-policy-gold-color);
    text-decoration: underline;
}

.page-privacy-policy__text-block a:hover {
    color: var(--page-privacy-policy-primary-color);
}

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

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

.page-privacy-policy__list li strong {
    color: var(--page-privacy-policy-text-main);
}

.page-privacy-policy__content-image {
    margin: 30px auto;
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it's centered */
}

.page-privacy-policy__contact-cta {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 60px 20px;
    text-align: center;
}

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

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

.page-privacy-policy__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-privacy-policy-text-main);
    background-color: var(--page-privacy-policy-deep-green); /* Darker background for summary */
}

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

.page-privacy-policy__faq-question {
    display: flex; /* Flex for question text and toggle */
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-privacy-policy__faq-qtext {
    flex-grow: 1;
    color: var(--page-privacy-policy-text-main);
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-privacy-policy-gold-color);
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-privacy-policy__faq-answer {
    padding: 20px;
    font-size: 1.05em;
    color: var(--page-privacy-policy-text-secondary);
    border-top: 1px solid var(--page-privacy-policy-divider-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__sub-title {
        font-size: 1.4em;
    }
}

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

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

    .page-privacy-policy__main-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

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

    .page-privacy-policy__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-privacy-policy__content-area,
    .page-privacy-policy__faq-section {
        padding: 30px 15px;
    }

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

    .page-privacy-policy__sub-title {
        font-size: 1.2em;
    }

    .page-privacy-policy__text-block,
    .page-privacy-policy__list li,
    .page-privacy-policy__faq-answer p {
        font-size: 0.95em;
    }
    
    /* Mobile image responsive adaptation */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-section,
    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__hero-content,
    .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;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-privacy-policy__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-privacy-policy__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-privacy-policy__hero-content {
        padding: 20px 15px !important;
    }
    .page-privacy-policy__faq-item summary {
        padding: 15px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__main-title {
        font-size: clamp(1.2em, 7vw, 1.8em);
    }
    .page-privacy-policy__section-title {
        font-size: 1.4em;
    }
    .page-privacy-policy__sub-title {
        font-size: 1.1em;
    }
    .page-privacy-policy__faq-item summary {
        font-size: 1em;
    }
}