/* style/privacy-policy.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #FFF5E1); /* Default to Text Main color */
    background-color: var(--page-bg-color, #B71C1C); /* Default to Background color */
    padding-bottom: 40px; /* Ensure space above footer */
}

/* Section styling */
.page-privacy-policy__section {
    padding: 40px 0;
    margin-bottom: 20px;
    background-color: var(--section-bg-color, transparent); /* Flexible background */
}

/* Container for content width limitation */
.page-privacy-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly darken image for text readability if needed, but not changing color */
}

.page-privacy-policy__hero-content {
    position: relative; /* Ensure content is in normal flow below image */
    z-index: 1;
    max-width: 800px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 3.5vw, 2.8em); /* Responsive font size */
    font-weight: bold;
    color: var(--text-main-color, #FFF5E1);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-privacy-policy__description {
    font-size: 1.1em;
    color: var(--text-main-color, #FFF5E1);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons fit mobile screens */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
}

.page-privacy-policy__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #7A0E0E; /* Deep Red for contrast on gold button */
    border: 2px solid #F2B544; /* Gold border */
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-privacy-policy__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
    transform: translateY(-2px);
}

.page-privacy-policy__btn-secondary {
    background-color: transparent;
    color: var(--text-main-color, #FFF5E1);
    border: 2px solid #F2B544; /* Gold border */
}

.page-privacy-policy__btn-secondary:hover {
    background-color: rgba(244, 211, 77, 0.1); /* Light gold hover */
    color: #F4D34D; /* Gold text */
    transform: translateY(-2px);
}

/* General text styles */
.page-privacy-policy__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--gold-color, #F4D34D);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* Card Grid */
.page-privacy-policy__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-privacy-policy__card {
    background-color: var(--card-bg-color, #D32F2F);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color, #FFF5E1);
    border: 1px solid var(--border-color, #F2B544);
    transition: transform 0.3s ease;
}

.page-privacy-policy__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-privacy-policy__card-title {
    font-size: 1.4em;
    color: var(--gold-color, #F4D34D);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-privacy-policy__card-text {
    font-size: 0.95em;
    line-height: 1.5;
}

/* Lists */
.page-privacy-policy__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-main-color, #FFF5E1);
}

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

.page-privacy-policy__list-item strong {
    color: var(--gold-color, #F4D34D);
}

/* Images in content */
.page-privacy-policy__image-wrapper {
    margin: 30px auto;
    max-width: 1000px;
    text-align: center;
}

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element for max-width */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-privacy-policy__faq-item {
    background-color: var(--card-bg-color, #D32F2F);
    border: 1px solid var(--border-color, #F2B544);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color, #FFF5E1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.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.1em;
    color: var(--gold-color, #F4D34D);
    background-color: var(--deep-red-color, #7A0E0E); /* Deep Red for contrast */
    border-bottom: 1px solid transparent; /* No border initially */
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-question {
    border-bottom: 1px solid var(--border-color, #F2B544);
}

.page-privacy-policy__faq-question:hover {
    background-color: rgba(122, 14, 14, 0.8); /* Slightly lighter deep red */
}

.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[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

.page-privacy-policy__faq-answer {
    padding: 20px 25px;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-main-color, #FFF5E1);
}

/* Contact Section */
.page-privacy-policy__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: center;
}

.page-privacy-policy__contact-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-main-color, #FFF5E1);
}

.page-privacy-policy__contact-item a {
    color: var(--gold-color, #F4D34D);
    text-decoration: none;
    font-weight: bold;
}

.page-privacy-policy__contact-item a:hover {
    text-decoration: underline;
}

/* Global variables for custom colors */
:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg-color: #D32F2F;
    --page-bg-color: #B71C1C;
    --text-main-color: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-content {
        margin-top: 20px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }
    .page-privacy-policy__description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding-bottom: 40px;
    }
    .page-privacy-policy__hero-content {
        margin-top: 20px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.6em, 5vw, 2.2em);
    }
    .page-privacy-policy__description {
        font-size: 0.95em;
    }
    .page-privacy-policy__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px; /* Adjust padding for smaller screens */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-privacy-policy__container {
        padding: 0 15px;
    }
    .page-privacy-policy__section {
        padding: 30px 0;
    }
    .page-privacy-policy__section-title {
        font-size: clamp(1.5em, 4.5vw, 2em);
        margin-bottom: 25px;
    }
    .page-privacy-policy__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-privacy-policy__card {
        padding: 25px;
    }
    .page-privacy-policy__card-title {
        font-size: 1.2em;
    }
    .page-privacy-policy__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-privacy-policy__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image 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__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Video responsiveness (if any, though not explicitly in this page) */
    .page-privacy-policy video,
    .page-privacy-policy__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-privacy-policy__video-section,
    .page-privacy-policy__video-container,
    .page-privacy-policy__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-privacy-policy__video-section {
        padding-top: 10px !important;
    }
    .page-privacy-policy__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Ensure default details marker is hidden */
.page-privacy-policy__faq-item summary {
    list-style: none;
}

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