/* style/gdpr.css */

/* General page styling */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text for light sections */
}

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

.page-gdpr__section {
    padding: 60px 0;
}

.page-gdpr__section--dark {
    background: #B71C1C; /* Custom background color */
    color: #FFF5E1; /* Custom text color for dark sections */
}

.page-gdpr__section--dark .page-gdpr__section-title,
.page-gdpr__section--dark .page-gdpr__sub-title {
    color: #FFD86A; /* Gold color for titles on dark background */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding as required, assuming body handles main header offset */
    background-color: #7A0E0E; /* Deep Red as a base */
    display: flex; /* For image-content layout */
    flex-direction: column; /* Default vertical stack */
    align-items: center;
    text-align: center;
}

.page-gdpr__hero-image {
    width: 100%;
    max-height: 600px; /* Limit height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1; /* Image first */
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Cover for desktop, will change to contain for mobile */
    display: block;
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px 60px;
    color: #FFF5E1; /* Text Main */
    max-width: 900px;
    order: 2; /* Content second */
}

.page-gdpr__main-title {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFD86A; /* Gold color for main title */
}

.page-gdpr__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

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

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

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

.page-gdpr__btn-secondary:hover {
    background: rgba(255, 216, 106, 0.1);
    transform: translateY(-2px);
}

.page-gdpr__cta-buttons--center {
    margin-top: 40px;
}

/* Section Titles */
.page-gdpr__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #C91F17; /* Main color for titles on light background */
}

.page-gdpr__sub-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #E53935; /* Auxiliary color for sub titles */
}

/* Text Block */
.page-gdpr__text-block {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
}

.page-gdpr__text-block p {
    margin-bottom: 1em;
}

.page-gdpr__text-block ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

.page-gdpr__text-block li {
    margin-bottom: 0.5em;
}

/* Image Sidebar Layout */
.page-gdpr__container--flex {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.page-gdpr__content-area {
    flex: 2;
}

.page-gdpr__image-sidebar {
    flex: 1;
    min-width: 300px; /* Ensure image sidebar has a minimum width */
    max-width: 500px; /* Max width for image sidebar */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px; /* Align image with content */
}

.page-gdpr__image-sidebar img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
  transition: background-color 0.3s ease;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: #f5f5f5;
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure contrast */
}
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Ensure contrast */
}


/* --- Responsive Styles --- */

/* Mobile Hero Image object-fit */
@media (max-width: 849px) {
    .page-gdpr__hero-image img {
        object-fit: contain !important; /* Prevent cropping on smaller screens */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
    }
}

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

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

    /* Hero Section */
    .page-gdpr__hero-section {
        padding-top: 10px; /* Maintain small top padding */
    }

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

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

    .page-gdpr__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Use clamp for H1 */
        margin-bottom: 15px;
    }

    .page-gdpr__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        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;
    }

    /* Section Titles */
    .page-gdpr__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-gdpr__sub-title {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    /* Text Block */
    .page-gdpr__text-block {
        font-size: 1em;
    }

    /* Image Sidebar Layout */
    .page-gdpr__container--flex {
        flex-direction: column; /* Stack flex items vertically */
        gap: 30px;
    }

    .page-gdpr__container--reverse-mobile {
        flex-direction: column-reverse; /* Reverse order for some sections */
    }

    .page-gdpr__image-sidebar {
        min-width: unset;
        max-width: 100%;
        padding-top: 0;
    }

    .page-gdpr__image-sidebar img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Generic image rules for content area */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* FAQ Section */
    details.page-gdpr__faq-item summary.page-gdpr__faq-question { padding: 15px; }
    .page-gdpr__faq-qtext { font-size: 15px; }
    details.page-gdpr__faq-item .page-gdpr__faq-answer { padding: 0 15px 15px; }

    /* Ensure content area images and containers don't cause overflow */
    .page-gdpr__content-area,
    .page-gdpr__text-block,
    .page-gdpr__faq-list {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}

/* WCAG AA contrast for text, using custom colors */
.page-gdpr {
    color: #333333; /* Default text for light sections */
}
.page-gdpr__section--dark {
    background: #B71C1C;
    color: #FFF5E1; /* Light text on dark background */
}
.page-gdpr__section--dark .page-gdpr__section-title,
.page-gdpr__section--dark .page-gdpr__sub-title {
    color: #FFD86A; /* Gold on dark background */
}
.page-gdpr__faq-qtext {
    color: #333333; /* Dark text on white FAQ item */
}
.page-gdpr__faq-answer p {
    color: #555555; /* Slightly lighter dark text for answer */
}
.page-gdpr__btn-primary {
    color: #7A0E0E; /* Deep Red text on gold button */
}
.page-gdpr__btn-secondary {
    color: #FFD86A; /* Gold text on transparent/dark background */
}