/* style/gdpr.css */

/* Base Styles */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text for light body background */
    line-height: 1.6;
    background-color: #ffffff; /* Default background */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjusted for better visual impact, but responsive */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-gdpr__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-gdpr__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 169, 224, 0.7); /* Main color with transparency */
    z-index: 2;
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.page-gdpr__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-gdpr__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* General Section Styling */
.page-gdpr__content-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.page-gdpr__dark-section {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
}

.page-gdpr__dark-bg {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
}

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-gdpr__section-title {
    font-size: 2.2em;
    color: inherit; /* Inherit color from parent section */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-gdpr__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: inherit; /* Inherit color from parent section */
}

/* Principles Section */
.page-gdpr__principles-section .page-gdpr__grid-item {
    background-color: #f9f9f9;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-gdpr__principles-section .page-gdpr__grid-title {
    font-size: 1.5em;
    color: #26A9E0; /* Main brand color */
    margin-bottom: 15px;
}

.page-gdpr__principles-section .page-gdpr__grid-text {
    color: #333333;
}

/* Rights Section */
.page-gdpr__rights-section .page-gdpr__section-title,
.page-gdpr__rights-section .page-gdpr__section-intro {
    color: #ffffff; /* White text on dark section */
}

.page-gdpr__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-gdpr__right-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.page-gdpr__right-title {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-gdpr__right-text {
    color: #f0f0f0;
    font-size: 0.95em;
}

/* Security Section */
.page-gdpr__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-gdpr__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-gdpr__feature-text {
    color: #333333;
}

/* Contact Section */
.page-gdpr__contact-info {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-gdpr__contact-info p {
    margin-bottom: 10px;
}

.page-gdpr__contact-link {
    color: #ffffff; /* White link on dark background */
    text-decoration: underline;
    font-weight: bold;
}

.page-gdpr__contact-link:hover {
    color: #f0f0f0;
}

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

.page-gdpr__faq-item {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.page-gdpr__faq-item summary {
    list-style: none; /* Remove default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #333333;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
    color: #26A9E0; /* Brand color for question text */
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-gdpr__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #fdfdfd;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin-top: 20px;
}

.page-gdpr__btn-primary:hover {
    background-color: #1e87b3; /* Slightly darker main color */
    border-color: #1e87b3;
}

.page-gdpr__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-top: 20px;
}

.page-gdpr__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Specific button color for Login (if used) */
.page-gdpr__login-button {
    background-color: #EA7C07; /* Login specific color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-gdpr__login-button:hover {
    background-color: #c76a06;
    border-color: #c76a06;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.4em;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__principles-section .page-gdpr__grid-item,
    .page-gdpr__rights-grid,
    .page-gdpr__security-features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Fixed header spacing */
    }
    .page-gdpr__hero-title {
        font-size: 2em;
    }
    .page-gdpr__hero-description {
        font-size: 1em;
    }
    .page-gdpr__section-title {
        font-size: 1.6em;
    }
    .page-gdpr__section-intro {
        font-size: 1em;
    }
    .page-gdpr__content-section {
        padding: 40px 15px;
    }
    .page-gdpr__container {
        padding: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to images to prevent overflow */
    }
    .page-gdpr__hero-image {
        padding: 0 !important; /* Hero image fills full width */
    }

    /* Buttons responsiveness */
    .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: 15px 20px !important; /* Adjust padding for smaller screens */
        margin-left: auto;
        margin-right: auto;
    }

    /* Button containers */
    .page-gdpr__hero-content .page-gdpr__btn-primary,
    .page-gdpr__contact-section .page-gdpr__btn-secondary {
        max-width: 300px !important; /* Limit width for single buttons if desired */
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    .page-gdpr__rights-grid,
    .page-gdpr__security-features {
        grid-template-columns: 1fr; /* Stack items vertically */
    }

    .page-gdpr__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-gdpr__faq-answer {
        padding: 15px 20px;
    }

    /* Ensure all content sections have padding to prevent overflow */
    .page-gdpr__content-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    .page-gdpr__principles-section .page-gdpr__grid-item,
    .page-gdpr__right-item,
    .page-gdpr__feature-item,
    .page-gdpr__faq-item {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.4em;
    }
}

/* Color Contrast Fixes (as per instructions) */
/* If body is dark, use light text. Here body is light (default white), so dark text. */
.page-gdpr__dark-bg {
  color: #ffffff; /* Dark background with white text */
}

.page-gdpr__light-bg {
  color: #333333; /* Light background with dark text */
}

.page-gdpr__medium-bg {
  color: #000000; /* Default dark text */
}

/* Ensure critical text areas have good contrast */
.page-gdpr__content-area p,
.page-gdpr p,
.page-gdpr li {
  color: #333333; /* Ensure readability on light backgrounds */
}

.page-gdpr__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-gdpr__dark-section {
  background: #26A9E0;
  color: #ffffff; /* Force white text on brand color background */
}

.page-gdpr__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

/* FAQ specific contrast */
.page-gdpr__faq-item summary {
    background-color: #ffffff;
    color: #333333;
}
.page-gdpr__faq-qtext, .page-gdpr__faq-toggle {
    color: #26A9E0; /* Brand color for question/toggle, good contrast on white summary background */
}
.page-gdpr__faq-answer {
    background-color: #fdfdfd;
    color: #555555;
}