/* 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 color 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 {
    background-color: var(--background-color); /* Ensure consistency if shared.css doesn't apply directly */
    color: var(--text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom before footer */
}

/* Headings */
.page-privacy-policy h1,
.page-privacy-policy h2,
.page-privacy-policy h3,
.page-privacy-policy h4,
.page-privacy-policy h5,
.page-privacy-policy h6 {
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1, avoid fixed large size */
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gold-color); /* Use gold for main title for prominence */
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--secondary-color);
}

.page-privacy-policy__sub-title {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    color: var(--primary-color);
}

/* Paragraphs and Lists */
.page-privacy-policy p {
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-privacy-policy ul,
.page-privacy-policy ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: var(--text-main);
}

.page-privacy-policy ul li,
.page-privacy-policy ol li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

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

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

/* Sections Layout */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top margin for main content, body handles header offset */
    background-color: var(--deep-green); /* A slightly different dark green for hero background */
    border-bottom: 2px solid var(--divider-color);
}

.page-privacy-policy__hero-image {
    width: 1200px; /* HTML width attribute is 1200 */
    height: 675px; /* HTML height attribute is 675 */
    max-width: 100%;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-privacy-policy__hero-description {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.page-privacy-policy__introduction-section,
.page-privacy-policy__data-collection-section,
.page-privacy-policy__data-usage-section,
.page-privacy-policy__data-sharing-section,
.page-privacy-policy__data-security-section,
.page-privacy-policy__your-rights-section,
.page-privacy-policy__cookie-policy-section,
.page-privacy-policy__changes-section,
.page-privacy-policy__contact-section,
.page-privacy-policy__cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--divider-color);
}

/* Image styles */
.page-privacy-policy img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* No filter properties allowed */
}

/* Specific image for data security */
.page-privacy-policy__data-security-image {
    width: 800px; /* HTML width attribute is 800 */
    height: 600px; /* HTML height attribute is 600 */
    max-width: 100%;
}

/* Specific image for user rights */
.page-privacy-policy__user-rights-image {
    width: 800px; /* HTML width attribute is 800 */
    height: 600px; /* HTML height attribute is 600 */
    max-width: 100%;
}

/* Specific image for cookie policy */
.page-privacy-policy__cookie-image {
    width: 400px; /* HTML width attribute is 400 */
    height: 300px; /* HTML height attribute is 300 */
    max-width: 100%;
}

/* Call to Action Buttons */
.page-privacy-policy__cta-section {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--deep-green);
}

.page-privacy-policy__btn-group {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.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;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-privacy-policy__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text for dark button */
    border: 2px solid transparent;
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-privacy-policy__btn-secondary {
    background: var(--card-bg); /* Dark background from custom colors */
    color: var(--primary-color); /* Green text for dark button */
    border: 2px solid var(--primary-color);
}

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

.page-privacy-policy__cta-note {
    margin-top: 20px;
    font-style: italic;
    color: var(--text-secondary);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 15px;
}

.page-privacy-policy__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    color: var(--glow-color);
}

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

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

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

.page-privacy-policy__faq-item details > summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-privacy-policy__faq-answer {
    padding: 10px 0 5px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

    .page-privacy-policy__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-privacy-policy__sub-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .page-privacy-policy__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is just a small decorative top padding */
    }

    .page-privacy-policy__introduction-section,
    .page-privacy-policy__data-collection-section,
    .page-privacy-policy__data-usage-section,
    .page-privacy-policy__data-sharing-section,
    .page-privacy-policy__data-security-section,
    .page-privacy-policy__your-rights-section,
    .page-privacy-policy__cookie-policy-section,
    .page-privacy-policy__changes-section,
    .page-privacy-policy__contact-section,
    .page-privacy-policy__cta-section,
    .page-privacy-policy__faq-section {
        padding: 25px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsive adaptation */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure containers holding images are also responsive */
    .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;
    }

    /* Mobile button responsive adaptation */
    .page-privacy-policy__btn-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }
    
    /* FAQ styles for mobile */
    .page-privacy-policy__faq-question {
        font-size: 1rem;
        padding: 10px 0;
    }
    .page-privacy-policy__faq-answer {
        font-size: 0.9rem;
    }
}