/* style/gdpr.css */

/* Base Styles for GDPR Page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Assuming body background is light */
}

/* Sections */
.page-gdpr__section {
    padding: 60px 20px;
    text-align: center;
}

.page-gdpr__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-gdpr__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF;
}

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
    box-sizing: border-box;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 120px 20px 60px; /* Adjusted padding-top for header offset */
    background-color: #017439;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* For image positioning */
    min-height: 500px;
}

.page-gdpr__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

.page-gdpr__hero-section .page-gdpr__container {
    position: relative;
    z-index: 1;
}

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.8;
    color: #f0f0f0;
}

/* General Titles and Text */
.page-gdpr__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #017439;
}

.page-gdpr__section-title--light {
    color: #FFFFFF;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.page-gdpr__text-block--light {
    color: #f0f0f0;
}

/* Images within content */
.page-gdpr__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px;
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-gdpr__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom color for Register/Login font */
    border: 2px solid #C30808;
}

.page-gdpr__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    color: #FFFFFF;
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-gdpr__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

/* Commitment Section Features */
.page-gdpr__features {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-gdpr__feature-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-gdpr__feature-title--light {
    color: #FFFFFF;
}

.page-gdpr__feature-description--light {
    color: #f0f0f0;
}

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

.page-gdpr__right-item {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #017439;
}

.page-gdpr__right-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439;
}

.page-gdpr__right-description {
    font-size: 1em;
    color: #555555;
}

/* Data Processing Details */
.page-gdpr__processing-details {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-gdpr__detail-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-gdpr__detail-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-gdpr__detail-description {
    font-size: 1em;
    color: #555555;
}

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

.page-gdpr__faq-item {
    background: #FFFFFF;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #e0e0e0;
}

.page-gdpr__faq-title {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
}

.page-gdpr__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Or just change text to '-' */
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it expands */
    padding: 15px 25px;
}

.page-gdpr__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Footer CTA */
.page-gdpr__contact-us {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF;
    padding: 80px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        padding-bottom: 40px;
        min-height: auto;
    }

    .page-gdpr__hero-title {
        font-size: 2.2em;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
    }

    .page-gdpr__section {
        padding: 40px 15px;
    }

    .page-gdpr__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
    }

    .page-gdpr__text-block,
    .page-gdpr__hero-description,
    .page-gdpr__feature-description,
    .page-gdpr__right-description,
    .page-gdpr__detail-description,
    .page-gdpr__faq-answer p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Images responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size for content images on mobile */
        min-height: 200px !important;
    }

    /* Button responsive */
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__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;
        font-size: 1em;
    }

    /* Feature items and rights grid */
    .page-gdpr__features,
    .page-gdpr__rights-grid,
    .page-gdpr__processing-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-gdpr__feature-item,
    .page-gdpr__detail-item {
        max-width: 100%;
        min-width: unset;
    }

    .page-gdpr__faq-question {
        padding: 15px 20px;
    }

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

    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px 20px;
    }

    .page-gdpr__contact-us {
        padding: 60px 15px;
    }
}