/* style/gdpr.css */

/* Custom colors from requirements */
:root {
    --page-gdpr-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --page-gdpr-card-bg: #D32F2F;
    --page-gdpr-background: #B71C1C;
    --page-gdpr-text-main: #FFF5E1;
    --page-gdpr-border: #F2B544;
    --page-gdpr-glow: #FFCC66;
    --page-gdpr-gold: #F4D34D;
    --page-gdpr-deep-red: #7A0E0E;
    --color-primary: #C91F17; /* Main brand color */
    --color-secondary: #E53935; /* Auxiliary brand color */
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
    --color-border-light: #e0e0e0;
}

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark); /* Default text color for light backgrounds */
    background-color: transparent; /* body handles background color */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Enforce image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    max-height: 500px; /* Limit height for hero image */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
}

.page-gdpr__hero-content {
    position: relative; /* Not absolute, to flow below image */
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
    color: var(--color-text-light); /* Assuming hero image background is dark enough for light text */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Enhance readability */
}

.page-gdpr__main-title {
    font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

/* General Section Styling */
.page-gdpr__section {
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for content */
    box-sizing: border-box;
}

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

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: justify;
    color: var(--color-text-dark); /* Default text color */
}

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

.page-gdpr__card {
    background: var(--page-gdpr-card-bg); /* Custom Card BG */
    color: var(--page-gdpr-text-main); /* Custom Text Main */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--page-gdpr-border); /* Custom Border */
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
}

.page-gdpr__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-gdpr-gold); /* Using custom Gold for titles */
}

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

/* Dark Section Styling */
.page-gdpr__dark-section {
    background: var(--color-primary); /* Using main brand color for dark section */
    color: var(--color-text-light); /* White text for dark background */
}

.page-gdpr__dark-section .page-gdpr__section-title {
    color: var(--page-gdpr-gold); /* Gold title on dark background */
}

.page-gdpr__dark-section .page-gdpr__text-block {
    color: var(--color-text-light);
}

.page-gdpr__light-bg { /* For cards within dark section to ensure contrast */
    background: #ffffff; /* White background for light cards */
    color: var(--color-text-dark); /* Dark text on white cards */
    border: 1px solid var(--color-border-light);
}

.page-gdpr__light-bg .page-gdpr__card-title {
    color: var(--color-primary); /* Brand color for titles on light cards */
}

.page-gdpr__light-bg .page-gdpr__card-text {
    color: var(--color-text-dark);
}

/* Feature List Styling */
.page-gdpr__feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.page-gdpr__feature-item {
    flex: 1 1 calc(33% - 20px); /* Three items per row on desktop */
    max-width: calc(33% - 20px);
    text-align: center;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border-light);
    box-sizing: border-box;
}

.page-gdpr__feature-image {
    width: 100%;
    height: auto;
    min-height: 200px; /* Min size requirement */
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensures no extra space below image */
}

.page-gdpr__feature-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.page-gdpr__feature-description {
    font-size: 1em;
    color: var(--color-text-dark);
}

/* Call to Action Group */
.page-gdpr__cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
}

.page-gdpr__btn-primary {
    background: var(--page-gdpr-button-gradient); /* Custom Button Gradient */
    color: var(--color-text-light);
    border: 2px solid var(--page-gdpr-gold); /* Custom Gold border for primary button */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-gdpr__btn-secondary {
    background: #ffffff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-gdpr__btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Contact Section (using promo-dark for consistency with index, but for GDPR page it's a contact section) */
.page-gdpr__promo-dark {
    background-color: var(--page-gdpr-background); /* Custom Background color */
    color: var(--page-gdpr-text-main); /* Custom Text Main */
    padding: 80px 20px;
    text-align: center;
    border-top: 5px solid var(--page-gdpr-deep-red); /* Custom Deep Red border */
}

.page-gdpr__promo-dark .page-gdpr__section-title {
    color: var(--page-gdpr-gold); /* Gold title */
}

.page-gdpr__promo-dark .page-gdpr__text-block {
    color: var(--page-gdpr-text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__copyright {
    font-size: 0.9em;
    margin-top: 50px;
    color: var(--page-gdpr-text-main);
}

/* --- Responsive Design --- */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .page-gdpr__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-gdpr__hero-image {
        max-height: 400px;
    }

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

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

    .page-gdpr__section {
        padding: 40px 15px;
    }

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

    .page-gdpr__feature-item {
        flex: 1 1 calc(50% - 15px); /* Two items per row */
        max-width: calc(50% - 15px);
    }
}

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

    .page-gdpr__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is just decorative */
    }

    .page-gdpr__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        max-height: 300px;
        margin-bottom: 20px;
    }

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

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

    .page-gdpr__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-gdpr__section {
        padding: 30px 15px;
    }

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

    .page-gdpr__text-block {
        font-size: 1em;
    }

    .page-gdpr__card-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__card-title {
        font-size: 1.2em;
    }

    .page-gdpr__feature-item {
        flex: 1 1 100%; /* Single item per row */
        max-width: 100%;
        padding: 20px;
    }

    .page-gdpr__feature-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px; /* Enforce min size even on mobile */
    }

    .page-gdpr__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .page-gdpr a[class*="button"],
    .page-gdpr a[class*="btn"] {
        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,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        overflow: hidden !important;
    }

    .page-gdpr__promo-dark {
        padding: 50px 15px;
    }

    /* General image/video container responsiveness */
    .page-gdpr img,
    .page-gdpr video,
    .page-gdpr__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__video-section,
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper,
    .page-gdpr__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}