/* style/terms-conditions.css */

/* Base styles for the terms-conditions page */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: #121212; /* Inherited from body, but good to be explicit for context */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
    background: linear-gradient(135deg, var(--primary-color, #007bff), #0056b3); /* Primary brand color gradient */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-terms-conditions__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-terms-conditions__btn-primary {
    background: var(--secondary-color, #ffc107); /* Auxiliary color for primary action */
    color: #121212; /* Dark text for bright background */
    border: 2px solid var(--secondary-color, #ffc107);
}

.page-terms-conditions__btn-primary:hover {
    background: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-terms-conditions__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Content Section */
.page-terms-conditions__content-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for content */
    padding: 60px 20px;
    color: #f0f0f0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-terms-conditions__text-block {
    background-color: #2a2a2a; /* Card-like background for text blocks */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-terms-conditions__section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--secondary-color, #ffc107); /* Auxiliary color for section titles */
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

.page-terms-conditions__inline-link {
    color: var(--primary-color, #007bff);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-terms-conditions__inline-link:hover {
    color: #0056b3;
}

.page-terms-conditions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}


/* FAQ Section */
.page-terms-conditions__faq-section {
    background-color: #121212; /* Dark background */
    padding: 60px 20px;
    color: #ffffff;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-terms-conditions__faq-list {
    margin-top: 30px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-terms-conditions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #2a2a2a; /* Darker background for FAQ items */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #3a3a3a; /* Slightly lighter dark for question header */
    border: 1px solid #4a4a4a;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #ffffff; /* White text for question */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-terms-conditions__faq-question:hover {
    background: #4a4a4a;
    border-color: #5a5a5a;
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #ffffff;
}

.page-terms-conditions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color, #ffc107); /* Auxiliary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transform: rotate(0deg); /* Initial state for plus icon */
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    color: var(--primary-color, #007bff); /* Primary color when active */
    transform: rotate(45deg); /* Rotate for minus icon */
}

.page-terms-conditions__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 20px;
    opacity: 0;
    color: #e0e0e0; /* Light text for answer */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important; /* Use !important and large value for expansion */
    padding: 20px !important;
    opacity: 1;
    background: #2a2a2a; /* Background for expanded answer */
    border-radius: 0 0 5px 5px;
}

/* Call to Action Section */
.page-terms-conditions__call-to-action {
    background: linear-gradient(45deg, var(--primary-color, #007bff), #0056b3); /* Primary brand color gradient */
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-terms-conditions {
        padding-top: var(--header-offset, 120px) !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-terms-conditions__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-terms-conditions__hero-section,
    .page-terms-conditions__content-section,
    .page-terms-conditions__faq-section,
    .page-terms-conditions__call-to-action {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-terms-conditions__main-title {
        font-size: 30px;
    }

    .page-terms-conditions__description {
        font-size: 16px;
    }

    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-terms-conditions__cta-button {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__text-block {
        padding: 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__sub-title {
        font-size: 20px;
        margin-top: 25px;
    }

    .page-terms-conditions p {
        font-size: 15px;
    }

    .page-terms-conditions__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain; /* Ensure images fit within container */
        margin: 20px auto;
    }

    .page-terms-conditions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-terms-conditions__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-terms-conditions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-terms-conditions__faq-answer {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px !important;
    }
}