/* style/gdpr.css */

/* Global styles for the page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--secondary-color); /* Matches body background: #FFFFFF */
}

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

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

.page-gdpr__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

.page-gdpr__section-title {
    font-size: 32px;
    color: #26A9E0; /* Primary color for titles */
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.page-gdpr__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #26A9E0;
}

.page-gdpr__paragraph {
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-gdpr__paragraph a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
}

.page-gdpr__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-gdpr__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-gdpr__main-title {
    font-size: 42px;
    color: #000000; /* Dark text for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-gdpr__intro-text {
    font-size: 18px;
    color: #444444;
    max-width: 900px;
    margin: 0 auto 30px;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

.page-gdpr__cta-button:hover {
    background: #1e87c2; /* Slightly darker primary color */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(38, 169, 224, 0.4);
}

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

.page-gdpr__grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

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

.page-gdpr__card p {
    font-size: 15px;
    color: #555555;
}

/* Dark Section Card */
.page-gdpr__dark-section {
    background: #26A9E0; /* Primary brand color as background */
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

.page-gdpr__dark-section .page-gdpr__card-title {
    color: #ffffff;
}

.page-gdpr__dark-section p {
    color: #f0f0f0;
}

.page-gdpr__dark-section a {
    color: #ffffff;
    text-decoration: underline;
}

/* Image with Content Flex */
.page-gdpr__image-content-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-gdpr__image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

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

.page-gdpr__list {
    flex: 2;
    list-style: none;
    padding: 0;
    margin: 0;
    color: #555555;
}

.page-gdpr__list li {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%2326A9E0'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat left 8px center;
    background-size: 16px 16px;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
}

.page-gdpr__list strong {
    color: #26A9E0;
}

/* Callout Box */
.page-gdpr__callout {
    background-color: #e0f2f7; /* Light blue background */
    border-left: 5px solid #26A9E0;
    padding: 25px;
    margin-top: 40px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-gdpr__callout p {
    margin: 0;
    color: #333333;
    font-size: 16px;
}

.page-gdpr__callout strong {
    color: #26A9E0;
}

/* Buttons for contact CTA */
.page-gdpr__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 17px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__btn-primary {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

.page-gdpr__btn-primary:hover {
    background: #1e87c2;
    border-color: #1e87c2;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(38, 169, 224, 0.4);
}

.page-gdpr__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__btn-secondary:hover {
    background: #f0f8ff; /* Very light blue */
    color: #1e87c2;
    border-color: #1e87c2;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-gdpr__faq {
    padding-bottom: 80px;
}

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

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

/* FAQ default state - answer hidden */
.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px; /* Adjusted padding */
    opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to contain any content */
    padding: 20px !important; /* Adjusted padding */
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    text-align: left;
    color: #555555;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer p {
    margin-bottom: 0;
}


/* Question style */
.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333;
}

.page-gdpr__faq-item.active .page-gdpr__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #d0d0d0;
    background-color: #f5f5f5;
}

.page-gdpr__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-gdpr__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.page-gdpr__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevents h3 from blocking click event */
    color: #26A9E0; /* Primary color for FAQ questions */
}

/* Toggle icon */
.page-gdpr__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevents icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    color: #333;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-gdpr__section-title {
        font-size: 28px;
    }
    .page-gdpr__hero-image img {
        border-radius: 6px;
    }
    .page-gdpr__main-title {
        font-size: 36px;
    }
    .page-gdpr__intro-text {
        font-size: 17px;
    }
    .page-gdpr__image-content-flex {
        flex-direction: column;
        align-items: center;
    }
    .page-gdpr__image-wrapper {
        max-width: 100%;
    }
    .page-gdpr__list {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__main-title {
        font-size: 28px;
    }
    .page-gdpr__intro-text {
        font-size: 16px;
    }
    .page-gdpr__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-gdpr__section {
        padding: 40px 0;
    }
    .page-gdpr__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .page-gdpr__paragraph {
        font-size: 15px;
    }
    .page-gdpr__grid-3, .page-gdpr__grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__card {
        padding: 20px;
    }
    .page-gdpr__card-title {
        font-size: 18px;
    }
    .page-gdpr__image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
    }
    .page-gdpr__list li {
        font-size: 15px;
        margin-bottom: 10px;
        padding-left: 25px;
        background-size: 14px 14px;
    }
    .page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-gdpr__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-gdpr__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 15px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px !important;
    }
    .page-gdpr__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button group container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important; /* Full width for mobile buttons */
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure all images and their containers are responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__callout,
    .page-gdpr__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__hero-container {
        padding-left: 0;
        padding-right: 0;
    }
}