/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Default body background is white */
}

/* Header offset for desktop */
.page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-gdpr__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #F0F8FF; /* Light background for hero */
    padding: 60px 20px;
    gap: 40px;
}

.page-gdpr__hero-content {
    max-width: 800px;
}

.page-gdpr__hero-title {
    font-size: 2.8em;
    color: #26A9E0; /* Brand primary color for title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-gdpr__hero-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-gdpr__hero-image-container {
    max-width: 90%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

.page-gdpr__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-gdpr__section-description {
    font-size: 1.1em;
    color: #555555;
    max-width: 900px;
    margin: 0 auto 40px;
}

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Dark section styling */
.page-gdpr__dark-section {
    background-color: #26A9E0; /* Brand primary color as background */
    color: #ffffff; /* White text for dark background */
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__section-description,
.page-gdpr__dark-section .page-gdpr__text-block,
.page-gdpr__dark-section .page-gdpr__list-item,
.page-gdpr__dark-section .page-gdpr__list-item strong {
    color: #ffffff; /* Ensure all text is white */
}

.page-gdpr__dark-section a {
    color: #ffffff; /* Links in dark sections are white */
    text-decoration: underline;
}

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

.page-gdpr__grid-container--two-cols {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    align-items: center;
}

/* Card styles */
.page-gdpr__card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0; /* Added for better contrast */
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
}

.page-gdpr__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-gdpr__card-text {
    font-size: 1em;
    color: #555555;
}

/* Content blocks */
.page-gdpr__content-block {
    padding: 20px 0;
}

.page-gdpr__sub-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr__text-block {
    font-size: 1em;
    color: #333333;
    margin-bottom: 15px;
}

/* Image wrapper and image styles */
.page-gdpr__image-wrapper {
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* List styles */
.page-gdpr__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-gdpr__list-item {
    font-size: 1em;
    color: #333333;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-gdpr__list-item::before {
    content: "✓";
    color: #26A9E0;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* CTA Buttons */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin-top: 20px;
    margin-right: 15px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-gdpr__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-gdpr__btn-primary:hover {
    background-color: #1e87b6;
    border-color: #1e87b6;
}

.page-gdpr__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1e87b6;
}

/* FAQ Section */
.page-gdpr__faq {
    background-color: #f8f8f8;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    color: #26A9E0;
    font-weight: bold;
    background-color: #f0faff; /* Lighter background for question */
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #26A9E0;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg);
}

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

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 25px 20px;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-gdpr__hero-title {
        font-size: 2.2em;
    }

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

    .page-gdpr__grid-container--two-cols {
        grid-template-columns: 1fr;
    }

    .page-gdpr__image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        flex-direction: column;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

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

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

    .page-gdpr__section-description {
        font-size: 0.95em;
    }

    .page-gdpr__grid-container {
        grid-template-columns: 1fr;
    }

    .page-gdpr__card {
        padding: 25px;
    }

    .page-gdpr__card-title {
        font-size: 1.2em;
    }

    .page-gdpr__list-item {
        font-size: 0.95em;
    }

    .page-gdpr__cta-button {
        display: block; /* Stack buttons on mobile */
        margin-right: 0;
        margin-bottom: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__cta-button:last-child {
        margin-bottom: 0;
    }

    /* Mobile image responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    
    .page-gdpr__hero-image-container,
    .page-gdpr__image-wrapper,
    .page-gdpr__container,
    .page-gdpr__card,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding added to containers to prevent content from touching edges */
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto; /* Center content */
        margin-right: auto; /* Center content */
    }
    
    .page-gdpr__faq-question {
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.4em;
    }
    .page-gdpr__faq-question h3 {
        font-size: 1em;
    }
}

/* Ensure content area images are at least 200px */
.page-gdpr__content-area img,
.page-gdpr__section img,
.page-gdpr__image {
  min-width: 200px;
  min-height: 200px;
}
/* For any img within .page-gdpr, ensure it's not smaller than 200px */
.page-gdpr img:not(.shared-logo):not(.shared-icon) { /* Exclude shared small icons/logos */
  min-width: 200px;
  min-height: 200px;
}

/* No CSS filters allowed for images */
.page-gdpr img {
    filter: none;
}