/* style/gdpr.css */

/* Variables for colors based on the provided scheme */
:root {
    --primary-color: #E53935; /* Main: Red */
    --secondary-color: #FF5A4F; /* Accent: Lighter Red/Orange */
    --text-main-color: #333333;
    --background-color: #F5F7FA;
    --card-bg-color: #FFFFFF;
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color); /* Default background for main content area */
    line-height: 1.6;
    font-size: 16px;
}

/* HERO Section - Main Title and Description */
.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: 10px; /* Small top padding, body handles --header-offset */
    background: var(--primary-color); /* Using primary color as background for hero */
    color: #ffffff; /* White text on primary background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure it takes full width within its max-width */
}

.page-gdpr__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 font size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff; /* White text for H1 */
}

.page-gdpr__intro-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto 30px;
    color: #f0f0f0; /* Slightly off-white for description */
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__cta-button--secondary {
    background: var(--card-bg-color); /* White background */
    color: var(--primary-color); /* Primary color text */
    border: 2px solid var(--primary-color);
}

.page-gdpr__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}
.page-gdpr__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--card-bg-color);
    border-color: var(--primary-color);
}

/* Content Sections */
.page-gdpr__content-section {
    padding: 60px 20px;
    margin-bottom: 20px;
    background-color: var(--card-bg-color); /* Default light background for content sections */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-gdpr__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-gdpr__content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.page-gdpr__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__text-block {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.page-gdpr__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-gdpr__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* No filter to change color */
}

.page-gdpr__image-block--full-width {
    flex: none;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
}
.page-gdpr__image-block--full-width img {
    width: 100%;
    max-height: 500px; /* Limit height for large images */
    object-fit: cover;
}

.page-gdpr__text-block p {
    margin-bottom: 15px;
    color: var(--text-main-color);
}

.page-gdpr__text-block .text-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.page-gdpr__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-gdpr__list li {
    margin-bottom: 10px;
    color: var(--text-main-color);
}

.page-gdpr__card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    color: var(--text-main-color);
}

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

.page-gdpr__card-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-gdpr__cookie-policy .page-gdpr__link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}
.page-gdpr__cookie-policy .page-gdpr__link:hover {
    color: var(--secondary-color);
}

.page-gdpr__contact-info {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    margin: 30px auto 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-gdpr__contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-main-color);
}

.page-gdpr__contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.page-gdpr__contact-info a:hover {
    text-decoration: underline;
}


/* FAQ Section */
.page-gdpr__faq-section {
    background-color: var(--background-color);
    padding: 60px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

details.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none; /* Hide default marker */
    transition: background-color 0.3s ease;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
    background: #fcfcfc;
}
.page-gdpr__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}
.page-gdpr__faq-toggle {
    font-size: 28px; /* Larger for better visibility */
    font-weight: bold;
    color: var(--primary-color); /* Use primary color for toggle */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
    line-height: 1; /* Ensure vertical alignment */
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9; /* Slightly different background for answer */
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    color: var(--text-main-color);
}
.page-gdpr__faq-answer p {
    margin-bottom: 10px;
}


/* Responsive Design - Mobile First adjustments */
@media (max-width: 992px) {
    .page-gdpr__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-gdpr__content-wrapper--reverse {
        flex-direction: column; /* Stacks normally on smaller screens */
    }
    .page-gdpr__hero-section {
        padding: 40px 15px;
    }
    .page-gdpr__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .page-gdpr__intro-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-gdpr__cta-button {
        width: 100%;
        max-width: 300px; /* Limit button width on mobile */
        margin-left: auto;
        margin-right: auto;
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-gdpr__content-section {
        padding: 40px 15px;
    }
    .page-gdpr__section-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
        margin-bottom: 30px;
    }
    .page-gdpr__rights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__card-title {
        font-size: 1.2rem;
    }
    .page-gdpr__image-block--full-width img {
        max-height: 300px;
    }
    .page-gdpr__contact-info {
        padding: 20px;
    }
    .page-gdpr__contact-info p {
        font-size: 1rem;
    }
    details.page-gdpr__faq-item summary.page-gdpr__faq-question {
        padding: 15px;
    }
    .page-gdpr__faq-qtext {
        font-size: 1rem;
    }
    .page-gdpr__faq-toggle {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    details.page-gdpr__faq-item .page-gdpr__faq-answer {
        padding: 0 15px 15px;
    }
}

/* Mobile specific overrides (max-width: 768px) */
@media (max-width: 768px) {
    .page-gdpr {
        font-size: 15px;
        line-height: 1.5;
    }
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Ensure small top padding, not header-offset */
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__hero-image img {
        border-radius: 4px;
    }
    .page-gdpr__cta-button {
        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;
    }
    .page-gdpr__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-gdpr__content-section,
    .page-gdpr__card,
    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-gdpr__faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Text highlight color for dark background sections */
.page-gdpr__hero-section .text-highlight {
    color: var(--secondary-color); /* Highlight with accent color on dark background */
}