/* style/gdpr.css */

/* Variables and general styling */
:root {
    --primary-color: #0A192F; /* Dark Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f8f8f8;
    --background-dark: #0A192F;
    --border-color: #e0e0e0;
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background */
    background: var(--background-light); /* Default light background */
}

/* Header offset for fixed header */
.page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

.page-gdpr__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-gdpr__description-text {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--text-color-dark);
}

/* Hero Section */
.page-gdpr__hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2a44 100%);
    color: var(--text-color-light);
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-gdpr__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-gdpr__main-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-gdpr__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #e0e0e0;
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__cta-button--primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-gdpr__cta-button--primary:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-button--secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-gdpr__cta-button--secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-gdpr__intro-section {
    padding: 80px 0;
    background: var(--background-dark);
    color: var(--text-color-light);
}

.page-gdpr__intro-section .page-gdpr__section-title {
    color: var(--secondary-color);
}

.page-gdpr__intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-gdpr__intro-image {
    flex: 1;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-gdpr__intro-text {
    flex: 1.5;
    font-size: 17px;
    line-height: 1.7;
    color: #e0e0e0;
}

.page-gdpr__intro-text p {
    margin-bottom: 20px;
}

/* Principles Section */
.page-gdpr__principles-section {
    padding: 80px 0;
    background: var(--background-light);
}

.page-gdpr__principles-section .page-gdpr__section-title {
    color: var(--primary-color);
}

.page-gdpr__principles-section .page-gdpr__description-text {
    color: var(--text-color-dark);
}

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

.page-gdpr__grid-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-gdpr__grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-gdpr__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-gdpr__card-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-gdpr__grid-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Rights Section */
.page-gdpr__rights-section {
    padding: 80px 0;
    background: var(--background-dark);
    color: var(--text-color-light);
}

.page-gdpr__rights-section .page-gdpr__section-title {
    color: var(--secondary-color);
}

.page-gdpr__rights-section .page-gdpr__description-text {
    color: #e0e0e0;
}

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

.page-gdpr__right-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-gdpr__right-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-gdpr__right-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-gdpr__right-item p {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.6;
}

.page-gdpr__cta-center {
    text-align: center;
    margin-top: 60px;
}

/* Data Processing Section */
.page-gdpr__data-processing-section {
    padding: 80px 0;
    background: var(--background-light);
}

.page-gdpr__data-processing-section .page-gdpr__section-title {
    color: var(--primary-color);
}

.page-gdpr__data-processing-section .page-gdpr__description-text {
    color: var(--text-color-dark);
}

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

.page-gdpr__process-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-gdpr__process-item .page-gdpr__card-title {
    margin-bottom: 10px;
}

.page-gdpr__process-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-gdpr__process-image {
    width: 100%;
    max-width: 250px; /* Adjust max-width for smaller images */
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 80px 0;
    background: var(--background-light);
}

.page-gdpr__faq-section .page-gdpr__section-title {
    color: var(--primary-color);
}

.page-gdpr__faq-section .page-gdpr__description-text {
    color: var(--text-color-dark);
}

.page-gdpr__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-gdpr__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-gdpr__faq-question:active {
    background: #eeeeee;
}

.page-gdpr__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-gdpr__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Change to X or rotate for active state */
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--border-color);
    border-top: none;
}

.page-gdpr__faq-answer p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Contact Section */
.page-gdpr__contact-section {
    padding: 80px 0;
    background: var(--background-dark);
    color: var(--text-color-light);
    text-align: center;
}

.page-gdpr__contact-section .page-gdpr__section-title {
    color: var(--secondary-color);
}

.page-gdpr__contact-section .page-gdpr__description-text {
    color: #e0e0e0;
}

.page-gdpr__contact-info {
    font-size: 18px;
    margin-top: 40px;
    margin-bottom: 50px;
    color: #cccccc;
}

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

.page-gdpr__contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-gdpr__contact-info a:hover {
    color: #e6c200;
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 44px;
    }
    .page-gdpr__hero-description {
        font-size: 18px;
    }
    .page-gdpr__section-title {
        font-size: 32px;
    }
    .page-gdpr__description-text {
        font-size: 16px;
    }
    .page-gdpr__intro-content {
        flex-direction: column;
    }
    .page-gdpr__intro-image {
        margin-bottom: 30px;
        width: 80%; /* Adjust for better stacking */
    }
    .page-gdpr__rights-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__main-title {
        font-size: 36px;
        line-height: 1.3;
    }
    .page-gdpr__hero-description {
        font-size: 16px;
    }
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-gdpr__cta-button {
        width: 100%;
        max-width: 300px; /* Limit button width on mobile */
        margin: 0 auto;
        padding: 12px 25px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__container {
        padding: 0 15px;
    }
    .page-gdpr__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-top: 40px;
    }
    .page-gdpr__description-text {
        font-size: 15px;
        margin-bottom: 40px;
    }
    .page-gdpr__intro-section,
    .page-gdpr__principles-section,
    .page-gdpr__rights-section,
    .page-gdpr__data-processing-section,
    .page-gdpr__faq-section,
    .page-gdpr__contact-section {
        padding: 60px 0;
    }

    /* Images responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__intro-image {
        width: 100%;
        max-width: 100%;
        min-width: 200px;
        min-height: 200px;
        height: auto;
    }
    .page-gdpr__card-image {
        width: 100%;
        height: auto;
        max-height: 250px; /* Adjust max height for cards on mobile */
        object-fit: cover;
        min-width: 200px;
        min-height: 200px;
    }
    .page-gdpr__process-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }

    /* FAQ responsive */
    .page-gdpr__faq-question {
        padding: 15px 20px;
    }
    .page-gdpr__faq-question h3 {
        font-size: 16px;
    }
    .page-gdpr__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure all content containers are responsive */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__grid,
    .page-gdpr__rights-list,
    .page-gdpr__process-grid,
    .page-gdpr__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Remove padding from container, apply to sections */
        padding-right: 0 !important;
        overflow: hidden !important;
    }
    .page-gdpr__grid-item,
    .page-gdpr__right-item,
    .page-gdpr__process-item,
    .page-gdpr__faq-item {
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px); /* Adjust for section padding */
        box-sizing: border-box !important;
    }
    .page-gdpr__intro-content {
        gap: 20px;
    }
    .page-gdpr__intro-text {
        padding: 0 15px;
    }
    .page-gdpr__contact-info {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: 30px;
    }
    .page-gdpr__section-title {
        font-size: 24px;
    }
    .page-gdpr__cta-button {
        font-size: 15px;
        padding: 10px 20px;
    }
    .page-gdpr__grid {
        grid-template-columns: 1fr;
    }
    .page-gdpr__rights-list {
        grid-template-columns: 1fr;
    }
    .page-gdpr__process-grid {
        grid-template-columns: 1fr;
    }
    .page-gdpr__faq-question h3 {
        font-size: 15px;
    }
    .page-gdpr__faq-answer p {
        font-size: 15px;
    }
}