/* style/privacy-policy.css */

/* Custom properties for colors */
:root {
    --keowin-primary: #11A84E; /* Main color */
    --keowin-secondary: #22C768; /* Auxiliary color */
    --keowin-bg-dark: #08160F; /* Background */
    --keowin-card-bg: #11271B; /* Card Background */
    --keowin-text-main: #F2FFF6; /* Main text color on dark background */
    --keowin-text-secondary: #A7D9B8; /* Secondary text color */
    --keowin-border: #2E7A4E; /* Border color */
    --keowin-glow: #57E38D;
    --keowin-gold: #F2C14E;
    --keowin-divider: #1E3A2A;
    --keowin-deep-green: #0A4B2C;
    --keowin-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-privacy-policy {
    background-color: var(--keowin-bg-dark); /* Apply body background color */
    color: var(--keowin-text-main); /* Main text color for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--keowin-bg-dark);
    text-align: center;
}

.page-privacy-policy__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for hero image */
    height: auto;
    display: block;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 10px;
    object-fit: cover;
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto 40px auto; /* Space below content before next section */
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--keowin-gold); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.4); /* Subtle glow */
}

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

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--keowin-bg-dark); /* Ensure consistent background */
    border-bottom: 1px solid var(--keowin-divider); /* Subtle divider */
}

.page-privacy-policy__content-area:last-of-type {
    border-bottom: none; /* No border for the last content area */
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--keowin-primary); /* Primary color for section titles */
    margin-bottom: 25px;
    font-weight: 600;
    text-align: left;
    border-left: 5px solid var(--keowin-gold); /* Decorative border */
    padding-left: 15px;
}

.page-privacy-policy__text-block {
    font-size: 1rem;
    color: var(--keowin-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-privacy-policy__list {
    list-style: none; /* Remove default list style */
    padding: 0;
    margin-bottom: 20px;
}

.page-privacy-policy__list-item {
    font-size: 1rem;
    color: var(--keowin-text-main);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    text-align: justify;
}

.page-privacy-policy__list-item::before {
    content: '•'; /* Custom bullet point */
    color: var(--keowin-gold);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.page-privacy-policy__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Links */
.page-privacy-policy__link {
    color: var(--keowin-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
    color: var(--keowin-gold);
}

/* Buttons */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-privacy-policy__btn-primary {
    background: var(--keowin-btn-gradient);
    color: var(--keowin-text-main); /* White-ish text on green button */
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

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

/* FAQ Section */
.page-privacy-policy__faq-section {
    background-color: var(--keowin-deep-green); /* Darker background for FAQ */
    padding: 60px 20px;
    text-align: center;
}

.page-privacy-policy__faq-section .page-privacy-policy__section-title {
    color: var(--keowin-text-main);
    border-left-color: var(--keowin-gold);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-privacy-policy__faq-item {
    background-color: var(--keowin-card-bg); /* Card background for each FAQ item */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--keowin-border);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--keowin-text-main);
    cursor: pointer;
    background-color: var(--keowin-deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--keowin-divider);
}

.page-privacy-policy__faq-question:hover {
    background-color: var(--keowin-primary);
    color: var(--keowin-text-main);
}

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

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

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

.page-privacy-policy__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--keowin-gold);
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
    color: var(--keowin-text-main);
}

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

/* CTA Section */
.page-privacy-policy__cta-section {
    background-color: var(--keowin-primary); /* Primary color background */
    padding: 60px 20px;
    text-align: center;
    color: var(--keowin-text-main);
}

.page-privacy-policy__cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--keowin-text-main);
}

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

.page-privacy-policy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-image {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, small decorative padding */
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-privacy-policy__description {
        font-size: 1rem;
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        text-align: center;
        border-left: none;
        padding-left: 0;
        border-bottom: 3px solid var(--keowin-gold);
        padding-bottom: 10px;
    }

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

    /* Images responsiveness */
    .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__content-area,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Button responsiveness */
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Reset margin for single column */
        margin-bottom: 15px; /* Space between stacked buttons */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

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

@media (max-width: 480px) {
    .page-privacy-policy__main-title {
        font-size: clamp(1.6rem, 10vw, 2.2rem);
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.3rem, 8vw, 1.8rem);
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        font-size: 1rem;
        padding: 12px 20px;
    }
}