/* style/gdpr.css */

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

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark background */
    background-color: var(--background-color); /* Dark background from shared */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding for hero section as per instructions */
    text-align: center;
    background-color: var(--background-color);
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width on larger screens */
    margin-bottom: 30px; /* Space between image and content */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-gdpr__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-gdpr__description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient); /* Custom button gradient */
    color: var(--text-main); /* Light text for button */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
    transform: translateY(-2px);
}

/* General Section Styles */
.page-gdpr__section {
    padding: 80px 0;
    text-align: center;
}

.page-gdpr__section--intro {
    background-color: var(--background-color); /* Matches body background */
    color: var(--text-main);
}

.page-gdpr__section--principles,
.page-gdpr__section--security,
.page-gdpr__section--faq {
    background-color: var(--card-bg); /* Darker background for these sections */
    color: var(--text-main);
}

.page-gdpr__section--rights,
.page-gdpr__section--contact,
.page-gdpr__section--conclusion {
    background-color: var(--background-color); /* Matches body background */
    color: var(--text-main);
}

.page-gdpr__heading {
    font-size: 2.5em;
    color: var(--text-main);
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__heading--light {
    color: var(--text-main); /* Already light, but explicitly for dark sections */
}

.page-gdpr__sub-heading {
    font-size: 1.5em;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__sub-heading--light {
    color: var(--text-main);
}

.page-gdpr__text {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-gdpr__text--light {
    color: var(--text-secondary); /* Already light */
}

/* Grid for Principles */
.page-gdpr__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-gdpr__grid-item {
    background-color: var(--deep-green); /* Slightly different dark background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

/* Lists */
.page-gdpr__rights-list,
.page-gdpr__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__rights-item,
.page-gdpr__security-item {
    background-color: var(--card-bg); /* Dark background for list items */
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-gdpr__rights-item p,
.page-gdpr__security-item p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Image Wrappers within sections */
.page-gdpr__image-wrapper {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Contact Info */
.page-gdpr__contact-info {
    margin-top: 30px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

.page-gdpr__contact-item {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-gdpr__contact-item:last-child {
    margin-bottom: 0;
}

.page-gdpr__link {
    color: var(--glow); /* Use glow color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: var(--gold); /* Gold on hover for links */
    text-decoration: underline;
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-gdpr__faq-item {
    background-color: var(--deep-green); /* Darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg); /* Use card-bg for summary */
    border-bottom: 1px solid var(--divider);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
    background-color: var(--primary-color); /* Highlight open FAQ */
    border-bottom: 1px solid var(--primary-color);
}

.page-gdpr__faq-question::-webkit-details-marker {
    display: none;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: "−"; /* Change to minus when open */
    color: var(--text-main);
}

.page-gdpr__faq-answer {
    padding: 20px 25px;
    font-size: 1.05em;
    color: var(--text-secondary);
    background-color: var(--deep-green); /* Answer background */
}

.page-gdpr__faq-answer p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Conclusion Section */
.page-gdpr__section--conclusion {
    padding-bottom: 80px;
}

.page-gdpr__cta-button--large {
    font-size: 1.3em;
    padding: 18px 35px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__heading {
        font-size: 2em;
    }
    .page-gdpr__sub-heading {
        font-size: 1.3em;
    }
    .page-gdpr__text {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-gdpr__container {
        padding: 0 15px;
    }

    .page-gdpr__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* Small top padding for hero section */
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 for mobile */
    }

    .page-gdpr__description {
        font-size: 1em;
    }

    .page-gdpr__cta-button,
    .page-gdpr__cta-button--large {
        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-gdpr__section {
        padding: 40px 0;
    }

    .page-gdpr__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-gdpr__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__rights-item,
    .page-gdpr__security-item,
    .page-gdpr__faq-item,
    .page-gdpr__contact-info {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* All images must be responsive on mobile */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All image containers must be responsive on mobile */
    .page-gdpr__image-wrapper,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__grid-item,
    .page-gdpr__rights-item,
    .page-gdpr__security-item,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow from images/content */
    }

    /* Ensure content sections also handle padding for mobile */
    .page-gdpr__section,
    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific mobile adjustment for section padding if needed */
    .page-gdpr__section--intro .page-gdpr__container,
    .page-gdpr__section--principles .page-gdpr__container,
    .page-gdpr__section--rights .page-gdpr__container,
    .page-gdpr__section--security .page-gdpr__container,
    .page-gdpr__section--contact .page-gdpr__container,
    .page-gdpr__section--faq .page-gdpr__container,
    .page-gdpr__section--conclusion .page-gdpr__container {
        padding-left: 0;
        padding-right: 0;
    }
}