/* 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; /* Explicitly setting body background as per shared.css default */
}

/* 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); /* Ensure header offset */
    background-color: #f8f8f8; /* Light background for hero section */
}

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

.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 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-gdpr__hero-title {
    font-size: 3.2em;
    color: #26A9E0; /* Primary brand color */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.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;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-gdpr__cta-button:hover {
    background: #1e87b7; /* Slightly darker primary color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Area */
.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* Light background for content */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.page-gdpr__container {
    padding: 20px;
}

.page-gdpr__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Primary brand color */
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__subsection-title {
    font-size: 1.8em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #444444;
}

.page-gdpr a {
    color: #26A9E0; /* Primary brand color for links */
    text-decoration: none;
    font-weight: 600;
}

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

.page-gdpr__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444444;
}

.page-gdpr__list li {
    margin-bottom: 8px;
}

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

.page-gdpr__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Ensure contrast on white background */
}

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

.page-gdpr__card-title {
    font-size: 1.4em;
    color: #26A9E0; /* Primary brand color */
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Rights List */
.page-gdpr__rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.page-gdpr__right-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03);
    color: #333333;
}

.page-gdpr__right-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Security Measures */
.page-gdpr__security-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-gdpr__security-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    color: #333333;
}

.page-gdpr__security-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 400px; /* Display width */
    height: 300px; /* Display height */
    object-fit: cover;
}

.page-gdpr__security-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Contact List */
.page-gdpr__contact-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #444444;
}

.page-gdpr__contact-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-gdpr__contact-list li strong {
    color: #333333;
}

.page-gdpr__contact-list li::before {
    content: '•';
    color: #26A9E0;
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1.6;
}

/* FAQ Section */
.page-gdpr__faq-container {
    margin-top: 30px;
}

.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

/* 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 15px;
    opacity: 0;
}

/* FAQ active state - ⚠️ Use !important and sufficiently large max-height to ensure it expands */
.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 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #444444;
}

/* 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;
}

.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: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #333333;
}

/* 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; /* Prevent 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: #26A9E0; /* Primary brand color */
    transform: rotate(45deg); /* Rotate for 'x' effect, if '+' is used initially */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }
    .page-gdpr__hero-description {
        font-size: 1.1em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__subsection-title {
        font-size: 1.6em;
    }
    .page-gdpr p, .page-gdpr__list li {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-gdpr__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important; /* Mobile button width */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-gdpr__content-area {
        padding: 20px 15px;
        margin-top: 20px;
    }

    .page-gdpr__container {
        padding: 10px;
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-gdpr__subsection-title {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-gdpr p, .page-gdpr__list li {
        font-size: 0.95em;
    }

    .page-gdpr__principles-grid,
    .page-gdpr__rights-list,
    .page-gdpr__security-measures {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .page-gdpr__security-item img {
        max-width: 100% !important; /* Mobile image width */
        width: 100% !important;
        height: auto !important;
    }

    .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;
    }

    /* Enforce image responsiveness for all images within .page-gdpr */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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