/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: #051421; /* Body background from shared */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 80px 0;
    background-color: #0A2239; /* Primary brand color */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for emphasis */
    line-height: 1.2;
}

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

.page-gdpr__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15; /* Subtly blend background image */
}

.page-gdpr__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image slightly for text readability */
}

/* General Section Styles */
.page-gdpr__content-section {
    padding: 60px 0;
    background-color: #051421; /* Dark background */
    color: #f0f0f0; /* Light text */
}

.page-gdpr__content-section:nth-of-type(even) {
    background-color: #0A2239; /* Alternate dark blue */
    color: #ffffff;
}

.page-gdpr__dark-section {
    background-color: #0A2239;
    color: #ffffff;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-gdpr__section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-gdpr__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    line-height: 1.8;
    opacity: 0.9;
}

.page-gdpr__text-block {
    margin-bottom: 40px;
    font-size: 1.05em;
    line-height: 1.7;
    text-align: justify;
}

.page-gdpr__text-block p {
    margin-bottom: 15px;
}

.page-gdpr__text-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-gdpr__text-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-gdpr__image-container {
    text-align: center;
    margin: 40px 0;
}

.page-gdpr__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for contrast */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-gdpr__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-gdpr__card p {
    font-size: 1em;
    line-height: 1.7;
    opacity: 0.85;
}

/* Rights List */
.page-gdpr__rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-gdpr__right-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__right-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
}

/* Implementation Features */
.page-gdpr__implementation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-gdpr__feature-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Contact Section */
.page-gdpr__contact-section {
    text-align: center;
    padding: 80px 0;
    background-color: #0A2239; /* Primary brand color */
    color: #ffffff;
}

.page-gdpr__contact-info {
    font-size: 1.1em;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

/* Buttons */
.page-gdpr__btn-primary {
    display: inline-block;
    background-color: #FFD700;
    color: #0A2239; /* Dark text on gold button for contrast */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

.page-gdpr__btn-primary:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    color: #000000;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
    background-color: #051421;
    color: #f0f0f0;
}

.page-gdpr__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFD700;
}

.page-gdpr__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg);
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    font-size: 1em;
    line-height: 1.7;
    opacity: 0.8;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }

    .page-gdpr__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-gdpr__hero-title {
        font-size: 2em;
    }

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

    .page-gdpr__section-title {
        font-size: 1.8em;
    }

    .page-gdpr__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-gdpr__text-block, 
    .page-gdpr__card p, 
    .page-gdpr__right-item p, 
    .page-gdpr__feature-card p, 
    .page-gdpr__contact-info p, 
    .page-gdpr__faq-answer p {
        font-size: 0.95em;
    }

    .page-gdpr__principles-grid,
    .page-gdpr__rights-list,
    .page-gdpr__implementation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__container {
        padding: 0 15px;
    }

    .page-gdpr__card,
    .page-gdpr__right-item,
    .page-gdpr__feature-card {
        padding: 20px;
    }

    .page-gdpr__card-title,
    .page-gdpr__right-title,
    .page-gdpr__feature-title {
        font-size: 1.3em;
    }

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

    /* Image responsiveness */
    .page-gdpr img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-gdpr__image-container,
    .page-gdpr__hero-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }

    /* Ensure all content containers are responsive and prevent overflow */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__content-section,
    .page-gdpr__contact-section,
    .page-gdpr__faq-section,
    .page-gdpr__principles-grid,
    .page-gdpr__rights-list,
    .page-gdpr__implementation-grid,
    .page-gdpr__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-gdpr__hero-section .page-gdpr__container,
    .page-gdpr__content-section .page-gdpr__container,
    .page-gdpr__contact-section .page-gdpr__container,
    .page-gdpr__faq-section .page-gdpr__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}