/* style/privacy-policy.css */

/* Variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --background-color-dark: #0a0a0a; /* From body background */
    --link-color: #26A9E0;
    --button-login-color: #EA7C07;
}

/* Base styles for the page content */
.page-privacy-policy {
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background-color: var(--background-color-dark); /* Ensure main content area has same bg as body */
    font-size: 1rem;
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
}

.page-privacy-policy__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

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

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: var(--text-color-dark-bg);
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text */
    border-radius: 8px;
}

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

.page-privacy-policy__description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

/* Content Area */
.page-privacy-policy__content-area {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for content sections */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-privacy-policy__sub-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--text-color-dark-bg);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 500;
}

.page-privacy-policy__text-block {
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
}

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

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    color: var(--text-color-dark-bg);
}

.page-privacy-policy__nested-list {
    list-style: circle;
    margin-left: 20px;
    margin-top: 10px;
}

/* Image styling */
.page-privacy-policy__image-wrapper {
    margin: 30px 0;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.page-privacy-policy__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

/* FAQ Section (using details/summary) */
.page-privacy-policy__faq-section {
    padding: 60px 0;
    background-color: var(--background-color-dark);
}

.page-privacy-policy__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-dark-bg);
}

.page-privacy-policy__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15rem;
    color: var(--text-color-dark-bg);
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-privacy-policy__faq-question {
    flex-grow: 1;
    color: var(--text-color-dark-bg);
}

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

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* For '-' icon */
}

.page-privacy-policy__faq-answer {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color-dark-bg);
}

/* Links */
.page-privacy-policy a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Buttons (example, if any CTA buttons are added) */
.page-privacy-policy__btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.page-privacy-policy__btn-primary:hover {
    background-color: #1a8cc7; /* Darken primary color */
    transform: translateY(-2px);
}

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

    .page-privacy-policy__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

    .page-privacy-policy__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-privacy-policy__description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 20px;
    }

    .page-privacy-policy__content-area {
        padding: 30px 0;
    }

    .page-privacy-policy__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 20px;
    }

    .page-privacy-policy__sub-title {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-privacy-policy__text-block,
    .page-privacy-policy__list-item,
    .page-privacy-policy__faq-answer {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Images responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important; /* Explicitly set width to 100% for images */
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

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

    .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;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-privacy-policy__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}

/* Specific contrast fixes if needed, though default dark-bg to light-text should be good */
.page-privacy-policy__dark-bg {
    color: var(--text-color-dark-bg);
    background: var(--background-color-dark);
}

/* FAQ toggle icon adjustment for open state */
.page-privacy-policy__faq-item[open] summary .page-privacy-policy__faq-toggle {
    transform: rotate(45deg);
}