/* style/privacy-policy.css */

/* Custom Colors */
:root {
    --f8ber-primary-color: #11A84E;
    --f8ber-secondary-color: #22C768;
    --f8ber-background-dark: #08160F; /* Background */
    --f8ber-card-background: #11271B; /* Card BG */
    --f8ber-text-main: #F2FFF6; /* Text Main */
    --f8ber-text-secondary: #A7D9B8; /* Text Secondary */
    --f8ber-border-color: #2E7A4E; /* Border */
    --f8ber-glow-color: #57E38D; /* Glow */
    --f8ber-gold-color: #F2C14E; /* Gold */
    --f8ber-divider-color: #1E3A2A; /* Divider */
    --f8ber-deep-green: #0A4B2C; /* Deep Green */
    --f8ber-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    color: var(--f8ber-text-main); /* Default text color for the main content area */
    background-color: var(--f8ber-background-dark); /* Default background for the main content area, inherited from body in shared.css but set explicitly for safety */
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure space above footer */
}

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

/* HERO Section */
.page-privacy-policy__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    background-color: var(--f8ber-background-dark);
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.page-privacy-policy__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if necessary */
    display: block;
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 50px;
    position: relative;
    z-index: 1;
}

.page-privacy-policy__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--f8ber-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-privacy-policy__hero-description {
    font-size: 1.1rem;
    color: var(--f8ber-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-privacy-policy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

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

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

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

/* Generic Section Styling */
.page-privacy-policy__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: var(--f8ber-background-dark);
}

.page-privacy-policy__section:nth-of-type(odd) {
    background-color: var(--f8ber-background-dark); /* Consistent dark background */
}

.page-privacy-policy__dark-section {
    background-color: var(--f8ber-card-background); /* Slightly different dark background for contrast */
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--f8ber-primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-privacy-policy__content-area {
    font-size: 1rem;
    color: var(--f8ber-text-secondary);
    max-width: 900px;
    margin: 0 auto;
}

.page-privacy-policy__content-area p {
    margin-bottom: 15px;
    color: var(--f8ber-text-secondary);
}

.page-privacy-policy__content-area strong {
    color: var(--f8ber-text-main);
}

.page-privacy-policy__content-area a {
    color: var(--f8ber-primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--f8ber-primary-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-privacy-policy__content-area a:hover {
    color: var(--f8ber-secondary-color);
    border-color: var(--f8ber-secondary-color);
}

.page-privacy-policy__list,
.page-privacy-policy__numbered-list {
    list-style-type: disc;
    margin: 0 0 20px 25px;
    padding: 0;
    color: var(--f8ber-text-secondary);
}

.page-privacy-policy__numbered-list {
    list-style-type: decimal;
}

.page-privacy-policy__list li,
.page-privacy-policy__numbered-list li {
    margin-bottom: 10px;
    color: var(--f8ber-text-secondary);
}

/* Images within content */
.page-privacy-policy__image-inline {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--f8ber-text-main);
    font-weight: 600;
}

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

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question:hover {
    background: var(--f8ber-deep-green);
}

.page-privacy-policy__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
}

.page-privacy-policy__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--f8ber-primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
    padding: 0 25px 25px;
    background: var(--f8ber-background-dark);
    border-top: 1px solid var(--f8ber-border-color);
    border-radius: 0 0 8px 8px;
    color: var(--f8ber-text-secondary);
}

.page-privacy-policy__faq-answer p {
    margin: 0;
    padding-top: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-image {
        height: 500px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }
    .page-privacy-policy__hero-description {
        font-size: 1rem;
    }
    .page-privacy-policy__section-title {
        font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    }
    .page-privacy-policy__content-area {
        font-size: 0.95rem;
    }
    .page-privacy-policy__faq-qtext {
        font-size: 1rem;
    }
    .page-privacy-policy__faq-question {
        padding: 15px 20px;
    }
    .page-privacy-policy__faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-privacy-policy__hero-section {
        padding-top: 10px; /* Still small top padding */
        margin-bottom: 30px;
    }
    .page-privacy-policy__hero-image {
        height: 300px; /* Shorter hero image on mobile */
        margin-bottom: 15px;
    }
    .page-privacy-policy__hero-image img {
        object-fit: contain !important; /* Mobile: contain to show full image, not crop */
        aspect-ratio: unset !important; /* Remove aspect ratio if set */
    }
    .page-privacy-policy__hero-content {
        padding: 15px 0 30px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust clamp for mobile */
        margin-bottom: 15px;
    }
    .page-privacy-policy__hero-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
        padding: 0 15px; /* Add padding to description on mobile */
    }

    /* CTA Buttons (Mobile specific) */
    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* General Sections */
    .page-privacy-policy__section {
        padding: 40px 0;
        margin-bottom: 15px;
    }
    .page-privacy-policy__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-privacy-policy__container {
        padding: 0 15px; /* Adjust container padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-privacy-policy__content-area {
        font-size: 0.9rem;
        padding: 0 15px; /* Ensure content area has padding */
        max-width: 100% !important; /* Ensure content area doesn't overflow */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-privacy-policy__content-area p {
        margin-bottom: 10px;
    }
    .page-privacy-policy__list,
    .page-privacy-policy__numbered-list {
        margin-left: 20px;
        padding-right: 15px;
    }
    .page-privacy-policy__list li,
    .page-privacy-policy__numbered-list li {
        margin-bottom: 8px;
    }

    /* Images within content (Generic image rule for content area) */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 20px auto !important;
        box-sizing: border-box !important;
    }

    /* FAQ Section (Mobile specific) */
    details.page-privacy-policy__faq-item {
        margin-bottom: 10px;
        border-radius: 5px;
    }
    details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-privacy-policy__faq-qtext {
        font-size: 1rem;
    }
    .page-privacy-policy__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
        padding: 0 20px 20px;
    }
    .page-privacy-policy__faq-answer p {
        padding-top: 10px;
        font-size: 0.9rem;
    }
}