/* style/privacy-policy.css */

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

/* Base styles for the page content, inherits body padding-top from shared.css */
.page-privacy-policy {
    background-color: var(--do99-ios-background);
    color: var(--do99-ios-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding for aesthetic spacing, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    margin-top: -150px; /* Overlap slightly for visual effect, text is below image wrapper in DOM */
    background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid var(--do99-ios-border);
}

.page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Use clamp for H1 */
    color: var(--do99-ios-gold);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5); /* Glow */
}

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

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

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

.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-privacy-policy__text-block {
    background-color: var(--do99-ios-card-bg);
    border: 1px solid var(--do99-ios-border);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--do99-ios-gold);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--do99-ios-divider);
    padding-bottom: 10px;
    text-shadow: 0 0 5px rgba(87, 227, 141, 0.3);
}

.page-privacy-policy__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--do99-ios-primary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-privacy-policy ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--do99-ios-text-main);
}

.page-privacy-policy li {
    margin-bottom: 8px;
    color: var(--do99-ios-text-main);
}

.page-privacy-policy a {
    color: var(--do99-ios-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-privacy-policy__text-link {
    color: var(--do99-ios-secondary);
    text-decoration: underline;
}

.page-privacy-policy__text-link:hover {
    color: var(--do99-ios-gold);
}

.page-privacy-policy__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-privacy-policy__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-privacy-policy__faq-item {
    background-color: var(--do99-ios-card-bg);
    border: 1px solid var(--do99-ios-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: var(--do99-ios-text-main);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--do99-ios-primary);
    background-color: var(--do99-ios-deep-green);
    transition: background-color 0.3s ease;
}

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

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

.page-privacy-policy__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--do99-ios-gold);
}

/* Details element specific styles */
.page-privacy-policy__faq-item summary {
    list-style: none; /* Hide default marker */
}
.page-privacy-policy__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-question {
    background-color: var(--do99-ios-primary);
    color: var(--do99-ios-text-main);
    border-bottom: 1px solid var(--do99-ios-border);
}

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

/* CTA Section at the bottom */
.page-privacy-policy__cta-section {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--do99-ios-deep-green);
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--do99-ios-border);
}

.page-privacy-policy__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--do99-ios-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

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

.page-privacy-policy__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure responsive */
    box-sizing: border-box; /* Ensure responsive */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-privacy-policy__btn-primary {
    background: var(--do99-ios-button-gradient);
    color: var(--do99-ios-text-main);
    border: none;
}

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

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

.page-privacy-policy__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: var(--do99-ios-secondary);
    color: var(--do99-ios-text-main);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-content {
        margin-top: -100px;
    }
}

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

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

    .page-privacy-policy__hero-content {
        margin-top: -80px;
        padding: 15px;
    }

    .page-privacy-policy__main-title {
        font-size: 2rem;
    }

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

    .page-privacy-policy__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

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

    .page-privacy-policy__text-block {
        padding: 20px;
        margin-bottom: 20px;
    }

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

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

    /* Mobile image responsive */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important; /* Added for strict compliance */
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile containers responsive */
    .page-privacy-policy__hero-section,
    .page-privacy-policy__content-area,
    .page-privacy-policy__text-block,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__faq-list,
    .page-privacy-policy__faq-item,
    .page-privacy-policy__cta-section,
    .page-privacy-policy__cta-buttons,
    .page-privacy-policy__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific adjustment for hero section padding for mobile */
    .page-privacy-policy__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    /* Hero content needs its own padding */
    .page-privacy-policy__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button responsive */
    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary,
    .page-privacy-policy__cta-button {
        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; /* Add padding to buttons themselves */
    }

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

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

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

    .page-privacy-policy__cta-title {
        font-size: 2.2rem;
    }

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

@media (max-width: 480px) {
    .page-privacy-policy__main-title {
        font-size: 1.8rem;
    }
    .page-privacy-policy__section-title {
        font-size: 1.6rem;
    }
    .page-privacy-policy__cta-title {
        font-size: 1.8rem;
    }
}