/* style/gdpr.css */

/* Variables for consistent styling */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-dark: #0A0A0A; /* Page background */
    --card-background: #111111; /* Card background */
    --text-main: #FFF6D6; /* Main text color */
    --border-color: #3A2A12; /* Border color */
    --glow-color: #FFD36B; /* Glow color */
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --text-light: #ffffff;
    --text-dark: #333333;
    --padding-sm: 15px;
    --padding-md: 20px;
    --padding-lg: 40px;
    --section-spacing: 80px;
}

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-dark); /* Page background from custom colors */
    line-height: 1.6;
    font-size: 1rem;
}

/* Ensure headings use main text color or primary color if contrast allows */
.page-gdpr h1,
.page-gdpr h2,
.page-gdpr h3,
.page-gdpr h4,
.page-gdpr h5,
.page-gdpr h6 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

/* Specific section backgrounds */
.page-gdpr__dark-section {
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-gdpr__light-bg {
    background-color: var(--text-main); /* Using text-main for light background, which is #FFF6D6 */
    color: var(--text-dark); /* Dark text for light background */
}

/* Main content container */
.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--padding-lg) var(--padding-md);
    box-sizing: border-box;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: var(--padding-lg);
    text-align: center;
    overflow: hidden;
}

.page-gdpr__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    gap: 20px;
}

.page-gdpr__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-gdpr__hero-content {
    padding: var(--padding-md);
    background: rgba(17, 17, 17, 0.8); /* Semi-transparent card background */
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

.page-gdpr__main-title {
    font-size: 2.8rem;
    color: var(--secondary-color); /* Use secondary for title glow */
    text-shadow: 0 0 8px var(--glow-color);
    margin-bottom: 15px;
}

.page-gdpr__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

/* Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for mobile adaptation */
    box-sizing: border-box;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    text-align: center;
}

.page-gdpr__btn-primary {
    background: var(--button-gradient);
    color: var(--text-light);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

.page-gdpr__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-gdpr__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* Section Titles */
.page-gdpr__section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.5);
}

.page-gdpr__section-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Grid containers for principles and rights */
.page-gdpr__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__card {
    background-color: var(--card-background);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--padding-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-gdpr__card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-gdpr__card-text {
    font-size: 1rem;
    line-height: 1.7;
}

.page-gdpr__feature-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 60px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* Contact Section */
.page-gdpr__contact-info {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--padding-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
    display: inline-block; /* Center the list items */
}

.page-gdpr__contact-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

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

.page-gdpr__contact-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

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

.page-gdpr__faq-item {
    background-color: var(--card-background); /* Dark background for FAQ items */
    color: var(--text-main); /* Light text for dark background */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: rgba(242, 193, 78, 0.05); /* Slightly lighter background for question */
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-question h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
}

.page-gdpr__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
}

.page-gdpr__faq-answer p {
    margin-top: 0;
    margin-bottom: 20px;
}

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

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

/* Links within content */
.page-gdpr p a,
.page-gdpr li a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr p a:hover,
.page-gdpr li a:hover {
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 2.5rem;
    }
    .page-gdpr__section-title {
        font-size: 2rem;
    }
    .page-gdpr__hero-description,
    .page-gdpr__section-intro {
        font-size: 1rem;
    }
}

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

    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Ensure small padding on mobile */
        padding-bottom: var(--padding-lg);
    }
    
    .page-gdpr__hero-content {
        padding: var(--padding-sm);
    }

    .page-gdpr__main-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .page-gdpr__hero-description {
        font-size: 0.95rem;
    }

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

    .page-gdpr__container {
        padding: var(--padding-md) var(--padding-sm);
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: var(--padding-sm);
        padding-right: var(--padding-sm);
    }

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

    .page-gdpr__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__card {
        padding: var(--padding-sm);
    }

    .page-gdpr__card-title {
        font-size: 1.3rem;
    }

    /* Images responsiveness */
    .page-gdpr img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-gdpr__faq-question {
        padding: 15px 20px;
    }
    .page-gdpr__faq-question h3 {
        font-size: 1.1rem;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: 1.8rem;
    }
    .page-gdpr__section-title {
        font-size: 1.6rem;
    }
    .page-gdpr__hero-description,
    .page-gdpr__section-intro {
        font-size: 0.9rem;
    }
}