/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-gdpr__section {
    padding: 60px 0;
    text-align: center;
}

.page-gdpr__section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-gdpr__section-title {
    font-size: 2.5em;
    color: #FFFFFF; /* White for dark background */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    padding-bottom: 80px;
    overflow: hidden;
    background-color: #017439; /* Brand primary for hero background */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    color: #ffffff;
}

.page-gdpr__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gdpr__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-gdpr__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-gdpr__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    filter: brightness(0.6); /* Darken image to ensure text contrast without changing original colors */
}

/* Buttons */
.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, transform 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Ensure text breaks */
}

.page-gdpr__btn-primary {
    background-color: #017439; /* Brand primary for contrast compliance */
    color: #ffffff; /* White text for contrast compliance */
    border: 2px solid #017439;
    margin-top: 20px;
}

.page-gdpr__btn-primary:hover {
    background-color: #005a2d;
    transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary for text */
    border: 2px solid #017439;
    margin-top: 20px;
}

.page-gdpr__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

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

/* Card Styles */
.page-gdpr__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark body */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text */
    height: 100%; /* Ensure cards in a row have equal height */
    display: flex;
    flex-direction: column;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-gdpr__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__card-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* Alt card style for Protection section */
.page-gdpr__card--alt {
    background: #017439; /* Brand primary for alt cards */
    color: #ffffff;
}

.page-gdpr__card--alt .page-gdpr__card-title {
    color: #FFFF00;
}

.page-gdpr__card--alt .page-gdpr__card-text {
    color: #f0f0f0;
}

/* List Styles (Your Rights) */
.page-gdpr__list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-gdpr__list-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly different background for list items */
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    height: 100%;
}

.page-gdpr__list-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-gdpr__list-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Data Protection Grid */
.page-gdpr__protection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Contact Details */
.page-gdpr__contact-details {
    margin-top: 30px;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-gdpr__contact-item a {
    color: #FFFF00; /* Yellow for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__contact-item a:hover {
    color: #017439; /* Brand primary on hover */
    text-decoration: underline;
}

/* Images within content */
.page-gdpr__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-gdpr__faq-question h3 {
    margin: 0;
    color: #FFFF00; /* Yellow for FAQ questions */
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 25px; /* Initial padding for collapsed state */
    color: #f0f0f0;
    font-size: 1em;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px; /* Padding for expanded state */
}

.page-gdpr__faq-answer p {
    margin: 0;
    padding-top: 10px;
}

.page-gdpr__faq-answer a {
    color: #FFFF00;
    text-decoration: none;
}

.page-gdpr__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 3em;
    }
    .page-gdpr__hero-description {
        font-size: 1.2em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__card-title,
    .page-gdpr__list-title {
        font-size: 1.3em;
    }
}

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

    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
        flex-direction: column;
        text-align: center;
    }

    .page-gdpr__hero-content {
        order: 2; /* Content below image on mobile */
        padding: 20px 15px;
    }

    .page-gdpr__hero-image-wrapper {
        position: relative;
        height: 300px; /* Adjust height for mobile */
        order: 1;
    }

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

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

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

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

    .page-gdpr__text-block {
        font-size: 1em;
        padding: 0 15px;
    }

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

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Image containers responsiveness */
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__grid-container,
    .page-gdpr__list,
    .page-gdpr__protection-grid,
    .page-gdpr__contact-details,
    .page-gdpr__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .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-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    /* If multiple buttons in a row, stack them or wrap */
    .page-gdpr__hero-content > a {
        display: block;
        margin-bottom: 15px;
    }

    .page-gdpr__card,
    .page-gdpr__list-item {
        padding: 20px;
    }

    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

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

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.5em;
    }
    .page-gdpr__card-title,
    .page-gdpr__list-title {
        font-size: 1.2em;
    }
}

/* Ensure all links within content are visible */
.page-gdpr a {
    color: #FFFF00; /* Yellow for general links */
    text-decoration: underline;
}

.page-gdpr a:hover {
    color: #017439; /* Brand primary on hover */
}