/* Variables for colors */
:root {
    --haybet-primary: #E53935;
    --haybet-secondary: #FF5A4F;
    --haybet-card-bg: #FFFFFF;
    --haybet-background: #F5F7FA;
    --haybet-text-main: #333333;
    --haybet-border: #E0E0E0;
}

.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--haybet-text-main); /* Default text color, assuming light body background */
    background-color: var(--haybet-background); /* Page specific background */
}

/* Hero Section */
.page-gdpr__hero-section {
    padding-top: 10px; /* As per fixed header rule */
    padding-bottom: 40px;
    background-color: var(--haybet-background);
    text-align: center;
}

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for H1 */
    color: var(--haybet-primary);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-gdpr__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--haybet-text-main);
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    max-width: 800px;
    margin: 0 auto;
}

.page-gdpr__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Important for mobile responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-gdpr__btn--primary {
    background: linear-gradient(180deg, var(--haybet-secondary) 0%, var(--haybet-primary) 100%);
    color: #ffffff;
    border: none;
}

.page-gdpr__btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-gdpr__btn--secondary {
    background: var(--haybet-card-bg);
    color: var(--haybet-primary);
    border: 2px solid var(--haybet-primary);
}

.page-gdpr__btn--secondary:hover {
    background: var(--haybet-primary);
    color: #ffffff;
}

/* General Section Styling */
.page-gdpr__section {
    padding: 60px 0;
    background-color: var(--haybet-background);
}

.page-gdpr__section:nth-of-type(even) {
    background-color: #f0f2f5; /* Slightly different background for alternating sections */
}

.page-gdpr__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-gdpr__section-title {
    font-size: 2.5em;
    color: var(--haybet-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    color: var(--haybet-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--haybet-text-main);
}

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

.page-gdpr__info-card {
    background-color: var(--haybet-card-bg);
    border: 1px solid var(--haybet-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__info-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: var(--haybet-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-gdpr__card-text {
    font-size: 0.95em;
    color: var(--haybet-text-main);
}

/* User Rights List */
.page-gdpr__rights-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-gdpr__rights-list .page-gdpr__list-item {
    background-color: var(--haybet-card-bg);
    border: 1px solid var(--haybet-border);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-gdpr__list-item-title {
    font-size: 1.3em;
    color: var(--haybet-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.page-gdpr__list-item-text {
    font-size: 1em;
    color: var(--haybet-text-main);
}

/* Bullet List */
.page-gdpr__bullet-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--haybet-text-main);
}

.page-gdpr__bullet-list .page-gdpr__list-item {
    margin-bottom: 10px;
    background-color: transparent; /* Override card styling */
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Figure and Images */
.page-gdpr__figure {
    margin: 40px auto;
    max-width: 680px; /* Match image placeholder width */
    text-align: center;
    background-color: var(--haybet-card-bg);
    border: 1px solid var(--haybet-border);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-gdpr__figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    margin: 0 auto 10px auto;
}

.page-gdpr__figcaption {
    font-size: 0.9em;
    color: #666;
    padding: 5px 0;
}

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

.page-gdpr__faq-item {
    background-color: var(--haybet-card-bg);
    border: 1px solid var(--haybet-border);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--haybet-primary);
    cursor: pointer;
    list-style: none; /* Remove default marker for summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--haybet-text-main);
}

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

/* Contact CTA Section */
.page-gdpr__contact-cta-section .page-gdpr__article-wrap {
    background: linear-gradient(180deg, var(--haybet-secondary) 0%, var(--haybet-primary) 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.page-gdpr__contact-cta-section .page-gdpr__section-title,
.page-gdpr__contact-cta-section .page-gdpr__text-block {
    color: #ffffff;
}

.page-gdpr__contact-cta-section .page-gdpr__section-title {
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__article-wrap {
        padding: 0 15px;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__cta-buttons {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* 1. Top section title + dual CTA */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Fixed header rule */
        padding-bottom: 30px;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
        padding: 0 15px;
    }
    .page-gdpr__description {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__btn {
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 2. Single column long text container */
    .page-gdpr__section {
        padding: 40px 0;
    }
    .page-gdpr__article-wrap {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    .page-gdpr__sub-title {
        font-size: 1.5em;
    }
    .page-gdpr__text-block {
        font-size: 0.95em;
        padding: 0 10px;
    }
    .page-gdpr__info-card-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }
    .page-gdpr__info-card,
    .page-gdpr__rights-list .page-gdpr__list-item {
        padding: 20px;
    }
    .page-gdpr__card-title,
    .page-gdpr__list-item-title {
        font-size: 1.2em;
    }

    /* 3. Generic images and figure */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-gdpr__figure {
        max-width: 100% !important;
        width: 100% !important;
        margin: 30px auto;
        padding: 10px;
        box-sizing: border-box !important;
    }
    .page-gdpr__figcaption {
        font-size: 0.85em;
    }

    /* 4. Buttons and button containers */
    .page-gdpr__btn-container,
    .page-gdpr__button-group { /* Example for other button groups if they existed */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Stack if multiple buttons */
    }

    /* 5. FAQ blocks */
    .page-gdpr__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }
    .page-gdpr__contact-cta-section .page-gdpr__article-wrap {
        padding: 30px 20px;
    }
}