/* style/privacy-policy.css */

/* Base Styles for Privacy Policy Page */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--secondary-color); /* Matches body background from shared.css */
}

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

.page-privacy-policy__section:nth-of-type(odd) {
    background-color: #f9f9f9; /* Slightly off-white for visual separation */
}

.page-privacy-policy__section:nth-of-type(even) {
    background-color: #ffffff;
}

.page-privacy-policy h1,
.page-privacy-policy h2,
.page-privacy-policy h3 {
    color: #26A9E0; /* Primary brand color for headings */
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-privacy-policy h1 {
    font-size: 38px;
    text-align: center;
    color: #ffffff; /* White text for hero section */
}

.page-privacy-policy h2 {
    font-size: 28px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 40px;
}

.page-privacy-policy h3 {
    font-size: 22px;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    font-size: 16px;
}

.page-privacy-policy ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-privacy-policy ul li {
    margin-bottom: 8px;
    font-size: 16px;
}

.page-privacy-policy a {
    color: #26A9E0; /* Primary brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: #1a7bb0; /* Slightly darker primary color on hover */
    text-decoration: underline;
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Gradient using brand colors */
    color: #ffffff;
    overflow: hidden;
}

.page-privacy-policy__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 1;
}

.page-privacy-policy__hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.page-privacy-policy__hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: left;
}

.page-privacy-policy__hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: left;
}

.page-privacy-policy__hero-image {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.page-privacy-policy__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-privacy-policy__cta-button:hover {
    background: #d46b00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Image with Text Blocks */
.page-privacy-policy__image-text-block {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-privacy-policy__image-text-block img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.page-privacy-policy__image-text-block ul {
    flex: 1;
    min-width: 300px;
    list-style: disc;
    margin-left: 20px;
}

.page-privacy-policy__image-text-block--right {
    flex-direction: row-reverse;
}

/* Contact List */
.page-privacy-policy__contact-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.page-privacy-policy__contact-list li {
    margin-bottom: 10px;
    font-size: 17px;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    background-color: #f0f8ff;
}

.page-privacy-policy__faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0;
    border-bottom: none;
}

.page-privacy-policy__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ container style */
.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-privacy-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #f9f9f9;
    color: #333333;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* Question style */
.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

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

/* Question title style */
.page-privacy-policy__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333;
}

/* Toggle icon */
.page-privacy-policy__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    color: #1a7bb0;
    transform: rotate(45deg);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-container {
        flex-direction: column;
        gap: 30px;
    }

    .page-privacy-policy__hero-content,
    .page-privacy-policy__hero-image {
        max-width: 100%;
        text-align: center;
    }

    .page-privacy-policy__hero-content h1,
    .page-privacy-policy__hero-content p {
        text-align: center;
    }

    .page-privacy-policy__hero-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-privacy-policy__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__section {
        padding: 40px 15px;
    }

    .page-privacy-policy h1 {
        font-size: 32px;
    }

    .page-privacy-policy h2 {
        font-size: 24px;
    }

    .page-privacy-policy h3 {
        font-size: 20px;
    }

    .page-privacy-policy p,
    .page-privacy-policy ul li {
        font-size: 15px;
    }

    /* Mobile image responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__image-text-block {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      margin-left: 0;
      margin-right: 0;
    }

    /* Mobile button responsiveness */
    .page-privacy-policy__cta-button,
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary,
    .page-privacy-policy a[class*="button"],
    .page-privacy-policy 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-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__cta-buttons,
    .page-privacy-policy__button-group,
    .page-privacy-policy__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column;
        gap: 15px;
    }

    /* FAQ mobile adjustments */
    .page-privacy-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-privacy-policy__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-privacy-policy__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-privacy-policy__faq-answer {
        padding: 0 15px;
    }
    
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 15px !important;
    }
}