/* style/privacy-policy.css */

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

/* Base styles for the page content, considering dark body background */
.page-privacy-policy {
    color: var(--text-main); /* Light text for dark background */
    background-color: var(--background-color); /* Ensure consistency if shared.css doesn't apply directly */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure content doesn't overflow */
    background-color: var(--card-bg); /* Use a darker background for the hero section */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure wrapper is full width */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-privacy-policy__hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%; /* Ensure content block is full width */
    box-sizing: border-box;
    padding: 0 20px;
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: var(--gold-color); /* Gold color for main title */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-privacy-policy__description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none; /* Remove default button border */
    max-width: 100%; /* Ensure button is responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-privacy-policy__cta-button:hover {
    transform: translateY(-3px);
    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: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-privacy-policy__container {
    background-color: var(--card-bg); /* Darker green background for main content container */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-privacy-policy__text-block {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 20px;
}

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

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

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

.page-privacy-policy__text-link {
    color: var(--gold-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__text-link:hover {
    color: var(--glow-color);
}

.page-privacy-policy__image-text-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-privacy-policy__image-text-block--reversed {
    flex-direction: row-reverse;
}

.page-privacy-policy__image-text-block .page-privacy-policy__content-image {
    flex: 1;
    min-width: 300px; /* Minimum width for image before wrapping */
    max-width: 50%; /* Max width for image in a row */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__image-text-block .page-privacy-policy__text-content {
    flex: 1;
    min-width: 300px; /* Minimum width for text before wrapping */
    max-width: 50%; /* Max width for text in a row */
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-privacy-policy__faq-item {
    background-color: var(--deep-green); /* Darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__faq-item details {
    border-radius: 8px;
}

.page-privacy-policy__faq-item details summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    background-color: var(--primary-color); /* Primary color for summary */
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.15em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.page-privacy-policy__faq-item details summary:hover {
    background-color: var(--secondary-color);
}

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

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

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

.page-privacy-policy__faq-answer {
    padding: 20px 25px;
    background-color: var(--deep-green); /* Deep green for answer background */
    color: var(--text-secondary);
    font-size: 1em;
}

.page-privacy-policy__faq-answer p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Keyword styling */
.page-privacy-policy .keyword {
    color: var(--gold-color);
    font-weight: bold;
}

/* CTA Buttons group */
.page-privacy-policy__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-privacy-policy__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-privacy-policy__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    padding: 13px 28px; /* Slightly smaller padding to account for border */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--background-color); /* Dark text on gold background */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-privacy-policy__description {
        font-size: 1.1em;
    }

    .page-privacy-policy__container {
        padding: 30px;
    }

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

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

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

    .page-privacy-policy__hero-section {
        padding: 10px 15px 40px;
    }

    .page-privacy-policy__hero-image-wrapper {
        margin-bottom: 15px;
    }

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

    .page-privacy-policy__main-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
        margin-bottom: 15px;
    }

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

    .page-privacy-policy__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-privacy-policy__content-area {
        margin: 20px auto;
        padding: 0 15px;
    }

    .page-privacy-policy__container {
        padding: 20px;
        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__sub-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-privacy-policy__text-block {
        font-size: 1em;
    }

    .page-privacy-policy__list {
        margin-left: 20px;
    }

    .page-privacy-policy__list-item {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__image-text-block,
    .page-privacy-policy__image-text-block--reversed {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0px; /* Adjust padding for inner elements if needed */
        padding-right: 0px; /* Adjust padding for inner elements if needed */
    }
    
    .page-privacy-policy__image-text-block,
    .page-privacy-policy__image-text-block--reversed {
        flex-direction: column; /* Stack image and text vertically */
        gap: 20px;
    }
    
    .page-privacy-policy__image-text-block .page-privacy-policy__content-image,
    .page-privacy-policy__image-text-block .page-privacy-policy__text-content {
        max-width: 100%; /* Full width for stacked elements */
        min-width: unset;
    }

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

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

    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 30px;
    }

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

/* Ensure no filter on images */
.page-privacy-policy img {
    filter: none !important;
}

/* Content area images minimum size */
.page-privacy-policy__content-area img {
    min-width: 200px;
    min-height: 200px;
}