/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #08160F; /* Custom Background */
    color: #F2FFF6; /* Custom Text Main */
    padding-bottom: 40px;
}

/* Ensure body padding-top is handled by shared.css for fixed header */
/* No padding-top: var(--header-offset) here to prevent double spacing */

.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above, text below */
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #08160F; /* Ensure consistent background */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for hero image */
    margin-bottom: 30px;
    box-sizing: border-box;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-gdpr__hero-content {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-gdpr__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: #F2FFF6; /* Custom Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-gdpr__description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
    color: #F2FFF6; /* Custom Text Main */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    text-align: center;
}

.page-gdpr__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

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

.page-gdpr__section-title {
    font-size: 2.2rem;
    color: #F2FFF6; /* Custom Text Main */
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.page-gdpr__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #57E38D; /* Custom Glow */
    border-radius: 2px;
}

.page-gdpr__paragraph {
    font-size: 1.05rem;
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 25px;
    text-align: justify;
}

.page-gdpr__image-container {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    box-sizing: border-box;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

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

.page-gdpr__principle-item,
.page-gdpr__right-item,
.page-gdpr__compliance-item {
    background-color: #11271B; /* Custom Card BG */
    border: 1px solid #2E7A4E; /* Custom Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__principle-item:hover,
.page-gdpr__right-item:hover,
.page-gdpr__compliance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.page-gdpr__principle-title,
.page-gdpr__right-title,
.page-gdpr__compliance-subtitle {
    font-size: 1.4rem;
    color: #F2FFF6; /* Custom Text Main */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr__principle-text,
.page-gdpr__right-text,
.page-gdpr__compliance-text {
    font-size: 1rem;
    color: #A7D9B8; /* Custom Text Secondary */
    text-align: justify;
}

.page-gdpr__contact-info {
    background-color: #11271B; /* Custom Card BG */
    border: 1px solid #2E7A4E; /* Custom Border */
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-gdpr__contact-text {
    font-size: 1.1rem;
    color: #F2FFF6; /* Custom Text Main */
    margin-bottom: 20px;
}

.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-gdpr__contact-item {
    font-size: 1rem;
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 10px;
}

.page-gdpr__contact-link {
    color: #57E38D; /* Custom Glow for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-gdpr__contact-link:hover {
    color: #2AD16F;
    text-decoration: underline;
}

.page-gdpr__contact-note {
    font-size: 0.95rem;
    color: #A7D9B8; /* Custom Text Secondary */
    font-style: italic;
}

.page-gdpr__faq-list {
    margin-top: 30px;
}

.page-gdpr__faq-item {
    background-color: #11271B; /* Custom Card BG */
    border: 1px solid #2E7A4E; /* Custom Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F2FFF6; /* Custom Text Main */
    cursor: pointer;
    background-color: #11271B; /* Custom Card BG */
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #1E3A2A; /* Slightly darker Deep Green */
}

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Custom Glow */
    transition: transform 0.3s ease;
}

/* For <details> tag, hide default marker */
.page-gdpr__faq-item > summary {
    list-style: none;
}
.page-gdpr__faq-item > summary::-webkit-details-marker {
    display: none;
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Custom Text Secondary */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    text-align: justify;
}

/* For details tag, the answer is shown naturally, so max-height doesn't apply directly */
.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    max-height: 2000px; /* Large enough to show content */
    padding-top: 10px;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or just rotate for visual */
}

.page-gdpr__commitment-section {
    text-align: center;
    padding-top: 60px;
}

.page-gdpr__cta-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: row; /* Default horizontal for desktop */
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.page-gdpr__cta-link {
    color: #57E38D; /* Custom Glow */
    text-decoration: underline;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.page-gdpr__cta-link:hover {
    color: #2AD16F;
}

/* --- Responsive styles --- */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-gdpr__section-title {
        font-size: 2rem;
    }
    .page-gdpr__principles-list,
    .page-gdpr__rights-list,
    .page-gdpr__compliance-list {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-gdpr__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-gdpr__hero-content {
        padding: 0 15px;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-gdpr__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-gdpr__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-gdpr__content-area {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .page-gdpr__paragraph {
        font-size: 0.95rem;
    }

    /* Image responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-gdpr__image-container,
    .page-gdpr__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-gdpr__principles-list,
    .page-gdpr__rights-list,
    .page-gdpr__compliance-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__principle-item,
    .page-gdpr__right-item,
    .page-gdpr__compliance-item {
        padding: 20px;
    }

    .page-gdpr__principle-title,
    .page-gdpr__right-title,
    .page-gdpr__compliance-subtitle {
        font-size: 1.3rem;
    }

    .page-gdpr__faq-question {
        font-size: 1.05rem;
        padding: 15px 20px;
    }

    .page-gdpr__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px;
    }

    .page-gdpr__contact-info {
        padding: 25px;
    }

    .page-gdpr__cta-wrapper {
        flex-direction: column;
        gap: 15px;
    }
}