/* style/privacy-policy.css */

/* Custom Properties for Colors */
:root {
    --ss777-primary-color: #F2C14E;
    --ss777-secondary-color: #FFD36B;
    --ss777-card-bg: #111111;
    --ss777-background-dark: #0A0A0A;
    --ss777-text-main: #FFF6D6;
    --ss777-border-color: #3A2A12;
    --ss777-glow-color: #FFD36B;
    --ss777-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the privacy policy page */
.page-privacy-policy {
    background-color: var(--ss777-background-dark);
    color: var(--ss777-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* 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; /* Minimal top padding, more bottom padding */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-height: 400px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
    /* Ensure no CSS filter is applied */
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above any potential background effect */
    z-index: 1;
}

.page-privacy-policy__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ss777-secondary-color); /* Use secondary color for title */
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Subtle glow */
    /* No fixed font-size for H1 as per instructions, will rely on default/browser scaling */
}

.page-privacy-policy__description {
    font-size: 1.1em;
    color: var(--ss777-text-main);
    max-width: 700px;
    margin: 0 auto;
}

/* General Section Styling */
.page-privacy-policy__section {
    padding: 40px 20px;
    border-bottom: 1px solid var(--ss777-border-color); /* Subtle border */
}

.page-privacy-policy__section:last-of-type {
    border-bottom: none;
}

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

.page-privacy-policy__heading {
    font-size: 2.2em;
    color: var(--ss777-primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-privacy-policy__sub-heading {
    font-size: 1.6em;
    color: var(--ss777-secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    color: var(--ss777-text-main);
}

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

.page-privacy-policy a:hover {
    color: var(--ss777-primary-color);
    text-decoration: none;
}

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

.page-privacy-policy__list li {
    margin-bottom: 8px;
}

.page-privacy-policy__image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Example max-width for content images */
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 200px;
    min-height: 200px;
    /* Ensure no CSS filter is applied */
}

/* CTA Section */
.page-privacy-policy__cta-section {
    background: var(--ss777-card-bg); /* Darker background for CTA */
    text-align: center;
    padding: 60px 20px;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 0 20px rgba(242, 193, 78, 0.2);
    border: 1px solid var(--ss777-border-color);
}

.page-privacy-policy__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-privacy-policy__cta-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--ss777-text-main);
}

.page-privacy-policy__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--ss777-button-gradient);
    color: var(--ss777-text-main); /* Light text on gradient button */
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
    border: none; /* Remove default border */
    cursor: pointer;
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 60px 20px;
}

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

.page-privacy-policy__faq-item {
    background: var(--ss777-card-bg);
    border: 1px solid var(--ss777-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.page-privacy-policy__faq-item.active {
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.3);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: var(--ss777-card-bg);
    color: var(--ss777-text-main);
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: rgba(255, 211, 107, 0.1); /* Subtle hover effect */
}

.page-privacy-policy__faq-title {
    margin: 0;
    color: var(--ss777-text-main);
    font-size: 1em; /* Adjust to fit within question div */
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--ss777-secondary-color);
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-privacy-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding is 0 */
    background: var(--ss777-card-bg);
    color: var(--ss777-text-main);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px; /* Padding when active */
}

/* Responsive Design */
@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__main-title {
        font-size: 1.8em;
    }

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

    .page-privacy-policy__heading {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__sub-heading {
        font-size: 1.4em;
        margin-top: 25px;
    }

    .page-privacy-policy__section {
        padding: 30px 15px;
    }

    .page-privacy-policy__container {
        padding: 0 10px;
    }

    /* Images responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    
    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__cta-section,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 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: 12px 20px !important;
        font-size: 1em !important;
    }

    .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-section .page-privacy-policy__cta-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-privacy-policy__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__main-title {
        font-size: 1.5em;
    }
    .page-privacy-policy__heading {
        font-size: 1.5em;
    }
    .page-privacy-policy__sub-heading {
        font-size: 1.2em;
    }
}