/* style/privacy-policy.css */

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

/* Base styles for the page content, assuming body has dark background from shared.css */
.page-privacy-policy {
    background-color: var(--page-privacy-policy-background);
    color: var(--page-privacy-policy-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom for content */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-privacy-policy__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop hero image */
    overflow: hidden;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-privacy-policy__hero-content {
    position: relative;
    max-width: 900px;
    margin-top: 40px; /* Space between image and content */
    padding: 0 20px;
}

.page-privacy-policy__main-title {
    color: var(--page-privacy-policy-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
    max-width: 100%; /* Ensure H1 doesn't overflow */
    /* No fixed font-size for H1, relying on responsive design for scaling */
}

.page-privacy-policy__hero-description {
    color: var(--page-privacy-policy-text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* CTA Buttons Container */
.page-privacy-policy__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Button Styles */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-privacy-policy__btn-primary {
    background: var(--page-privacy-policy-btn-gradient);
    color: var(--page-privacy-policy-text-main);
    border: 2px solid transparent;
}

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

.page-privacy-policy__btn-secondary {
    background: transparent;
    color: var(--page-privacy-policy-primary-color);
    border: 2px solid var(--page-privacy-policy-primary-color);
}

.page-privacy-policy__btn-secondary:hover {
    background: rgba(var(--page-privacy-policy-primary-color), 0.1);
    color: var(--page-privacy-policy-text-main);
}

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--page-privacy-policy-background);
    color: var(--page-privacy-policy-text-main);
}

.page-privacy-policy__section-title {
    color: var(--page-privacy-policy-text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: bold;
    border-bottom: 2px solid var(--page-privacy-policy-divider);
    padding-bottom: 10px;
}

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

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

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

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

/* Images within content */
.page-privacy-policy__image-wrapper {
    margin: 30px 0;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-privacy-policy__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

/* Call to Action at the end of content */
.page-privacy-policy__cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background-color: var(--page-privacy-policy-card-bg);
    border-radius: 10px;
    border: 1px solid var(--page-privacy-policy-border);
}

.page-privacy-policy__cta-text {
    color: var(--page-privacy-policy-text-main);
    font-size: 1.3em;
    margin-bottom: 25px;
    font-weight: bold;
}

/* FAQ Section */
.page-privacy-policy__faq-list {
    margin-top: 30px;
    border-top: 1px solid var(--page-privacy-policy-divider);
}

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

.page-privacy-policy__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--page-privacy-policy-text-main);
    font-weight: bold;
    font-size: 1.1em;
    background-color: var(--page-privacy-policy-deep-green);
    border-bottom: 1px solid var(--page-privacy-policy-border);
}

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

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

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

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    content: "−";
}

.page-privacy-policy__faq-answer {
    padding: 15px 25px 20px;
    color: var(--page-privacy-policy-text-secondary);
    font-size: 0.95em;
    background-color: var(--page-privacy-policy-card-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
}

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

    .page-privacy-policy__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-privacy-policy__hero-image-wrapper {
        height: 300px; /* Adjust hero image height for mobile */
    }

    .page-privacy-policy__hero-content {
        margin-top: 20px;
        padding: 0 15px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-privacy-policy__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-privacy-policy__section-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-privacy-policy__text-block,
    .page-privacy-policy__list-item,
    .page-privacy-policy__faq-answer p {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-privacy-policy__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }

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

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

    .page-privacy-policy__cta-section {
        padding: 20px;
        margin-top: 40px;
    }

    .page-privacy-policy__cta-text {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
}