/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main */
    background: #B71C1C; /* Background */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: #7A0E0E; /* Deep Red */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no image overflow */
}

.page-gdpr__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for hero image */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-gdpr__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size for H1 */
    color: #FFD86A; /* Gold-like for title */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.page-gdpr__description {
    font-size: 1.1em;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #333333; /* Dark text for light gradient button */
    border: none;
}

.page-gdpr__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-gdpr__btn-secondary {
    background: transparent;
    color: #FFD86A; /* Gold-like for secondary button text */
    border: 2px solid #FFD86A; /* Gold-like border */
}

.page-gdpr__btn-secondary:hover {
    background: #FFD86A;
    color: #7A0E0E; /* Deep Red for text on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* General Section Styles */
.page-gdpr__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

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

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: #FFD86A; /* Gold for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-gdpr__text-block {
    font-size: 1.05em;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 20px;
    text-align: justify;
}

.page-gdpr__text-block strong {
    color: #FFD86A; /* Gold for strong text */
}

/* Image styles within content sections */
.page-gdpr__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum image width */
    min-height: 200px; /* Minimum image height */
}

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

.page-gdpr__grid-item {
    background-color: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #FFF5E1; /* Text Main */
}

.page-gdpr__grid-title {
    font-size: 1.4em;
    color: #FFD86A; /* Gold for grid titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__grid-text {
    font-size: 1em;
    color: #FFF5E1; /* Text Main */
}

/* List Styles */
.page-gdpr__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-gdpr__list-item {
    background-color: #D32F2F; /* Card BG */
    color: #FFF5E1; /* Text Main */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #FFD86A; /* Gold border */
    border-radius: 5px;
    font-size: 1.05em;
    line-height: 1.5;
}

.page-gdpr__list-item strong {
    color: #FFD86A; /* Gold for strong text in list items */
}

/* Dark Section Specifics */
.page-gdpr__dark-section {
    background-color: #C91F17; /* Main Color */
    color: #ffffff; /* White text for dark background */
}

.page-gdpr__dark-section .page-gdpr__section-title {
    color: #FFD86A; /* Gold title on dark background */
}

.page-gdpr__dark-section .page-gdpr__text-block,
.page-gdpr__dark-section .page-gdpr__list-item {
    color: #ffffff; /* White text */
}

.page-gdpr__dark-section .page-gdpr__text-block strong,
.page-gdpr__dark-section .page-gdpr__list-item strong {
    color: #FFD86A; /* Gold strong text */
}

.page-gdpr__dark-section .page-gdpr__image {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Contact Section Links */
.page-gdpr__contact-section a {
    color: #FFD86A; /* Gold for links */
    text-decoration: underline;
}

.page-gdpr__contact-section a:hover {
    color: #FFF5E1; /* Lighter gold on hover */
}

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

.page-gdpr__faq-item {
    background-color: #D32F2F; /* Card BG */
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #FFD86A; /* Gold for FAQ question */
    cursor: pointer;
    outline: none;
    position: relative;
    list-style: none; /* Hide default marker */
}

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

.page-gdpr__faq-qtext {
    flex-grow: 1;
    color: #FFD86A; /* Gold for question text */
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFD86A; /* Gold for toggle icon */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: "−";
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #FFF5E1; /* Text Main */
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}

.page-gdpr__faq-answer p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-image {
        max-width: 100%;
        height: auto;
    }

    .page-gdpr__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }

    .page-gdpr__description {
        font-size: 1em;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.8em, 3.5vw, 2.2em);
    }

    .page-gdpr__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px !important;
    }

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

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em) !important;
        line-height: 1.3 !important;
    }

    .page-gdpr__description {
        font-size: 0.95em !important;
        margin-bottom: 25px !important;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Section & Container */
    .page-gdpr__section {
        padding: 40px 0 !important;
    }

    .page-gdpr__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.5em, 5vw, 2em) !important;
        margin-bottom: 30px !important;
    }

    .page-gdpr__text-block {
        font-size: 1em !important;
        text-align: left !important; /* Align text left on mobile */
    }

    /* Images within content sections */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; /* Allow smaller images if needed for layout, but still scale */
        min-height: unset !important;
        margin: 20px auto !important;
        box-sizing: border-box !important;
    }

    /* Grid for Principles Section */
    .page-gdpr__grid {
        grid-template-columns: 1fr !important; /* Single column for grid */
        gap: 20px !important;
    }

    .page-gdpr__grid-item {
        padding: 20px !important;
    }

    .page-gdpr__grid-title {
        font-size: 1.2em !important;
        margin-bottom: 10px !important;
    }

    /* List Styles */
    .page-gdpr__list-item {
        padding: 12px 15px !important;
        font-size: 1em !important;
    }

    /* FAQ Section */
    .page-gdpr__faq-item summary {
        padding: 15px 20px !important;
        font-size: 1.05em !important;
    }

    .page-gdpr__faq-toggle {
        font-size: 1.3em !important;
    }

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