/* style/privacy-policy.css */

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

/* Base styles for the page content, ensuring contrast with body background */
.page-privacy-policy {
    background-color: var(--nova88-background); /* #08160F (dark) */
    color: var(--nova88-text-main); /* #F2FFF6 (light) */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure space above footer */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--nova88-deep-green); /* A slightly different dark green for hero background */
    overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-privacy-policy__hero-content {
    position: relative; /* Ensure content is above image filter */
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    margin-top: -150px; /* Pull content up over the image */
    color: var(--nova88-text-main);
}

.page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    color: var(--nova88-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.page-privacy-policy__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--nova88-btn-gradient);
    color: #ffffff; /* White text for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--nova88-background); /* Ensure consistent background */
    color: var(--nova88-text-main); /* Ensure consistent text color */
}

.page-privacy-policy__dark-section {
    background-color: var(--nova88-background); /* #08160F */
    color: var(--nova88-text-main); /* #F2FFF6 */
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--nova88-green-secondary); /* #22C768 */
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--nova88-divider); /* #1E3A2A */
    padding-bottom: 15px;
    margin-top: 40px;
}

.page-privacy-policy__subsection-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--nova88-green-primary); /* #11A84E */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-privacy-policy__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--nova88-text-secondary); /* #A7D9B8 */
}

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

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    font-size: 1rem;
}

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

.page-privacy-policy a {
    color: var(--nova88-green-secondary); /* #22C768 */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: var(--nova88-gold); /* #F2C14E */
}

/* Highlight text */
.page-privacy-policy .highlight {
    color: var(--nova88-gold); /* #F2C14E */
    font-weight: bold;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: var(--nova88-card-bg); /* #11271B */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--nova88-text-main);
}

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

.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--nova88-border); /* #2E7A4E */
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--nova88-background); /* Lighter background for items */
}

.page-privacy-policy__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--nova88-text-main);
    cursor: pointer;
    background-color: var(--nova88-card-bg); /* Match FAQ section background */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker */
}

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

.page-privacy-policy__faq-item summary:hover {
    background-color: var(--nova88-deep-green); /* Darker on hover */
}

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

.page-privacy-policy__faq-toggle {
    font-size: 1.5rem;
    font-weight: normal;
    margin-left: 15px;
    color: var(--nova88-green-secondary);
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    content: "−"; /* Change to minus when open, handled by JS fallback or native */
}

.page-privacy-policy__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--nova88-text-secondary);
    background-color: var(--nova88-background); /* Match FAQ section background */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-content {
        margin-top: -100px; /* Adjust for smaller screens */
    }
    .page-privacy-policy__content-area,
    .page-privacy-policy__faq-section {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding-bottom: 40px;
    }
    .page-privacy-policy__hero-image-wrapper {
        max-height: 300px;
    }
    .page-privacy-policy__hero-content {
        margin-top: -80px; /* Further adjust for smaller screens */
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* More aggressive clamp for mobile */
    }
    .page-privacy-policy__description {
        font-size: 1rem;
    }
    .page-privacy-policy__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-privacy-policy__subsection-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }
    .page-privacy-policy__text-block,
    .page-privacy-policy__list-item,
    .page-privacy-policy__faq-item summary,
    .page-privacy-policy__faq-answer {
        font-size: 0.95rem;
    }

    /* Mobile image, video, button overflow fixes */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-privacy-policy video,
    .page-privacy-policy__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-privacy-policy__hero-section,
    .page-privacy-policy__content-area,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__video-section,
    .page-privacy-policy__video-container,
    .page-privacy-policy__video-wrapper,
    .page-privacy-policy__cta-buttons,
    .page-privacy-policy__button-group,
    .page-privacy-policy__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Important for preventing horizontal scroll */
    }
    
    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-privacy-policy__cta-button,
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary,
    .page-privacy-policy a[class*="button"],
    .page-privacy-policy a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    
    .page-privacy-policy__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 10px;
    }
}