/* style/terms-conditions.css */

/* --- Base Styles --- */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Default text color from custom palette */
    background-color: #0A0A0A; /* Default background from custom palette */
    min-height: 100vh;
}

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

/* --- Hero Section --- */
.page-terms-conditions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Desktop padding-top */
    padding-bottom: 60px;
    background: #0A0A0A; /* Use the overall background, image is separate */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-terms-conditions__hero-image-container {
    width: 100%;
    max-height: 675px; /* Fixed height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6); /* Slightly darken image for text readability if needed */
}

.page-terms-conditions__hero-content {
    position: relative; /* Ensure content is above the image */
    z-index: 1;
    padding-top: 40px; /* Space between image and content */
    padding-bottom: 40px;
    max-width: 900px;
}

.page-terms-conditions__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #FFF6D6; /* Use main text color */
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__hero-description {
    font-size: 1.15rem;
    color: #FFF6D6; /* Lighter text for hero description */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Darker text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-terms-conditions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-terms-conditions__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Auxiliary color for secondary button text */
    border: 2px solid #FFD36B;
}

.page-terms-conditions__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-3px);
}

/* --- General Section Styles --- */
.page-terms-conditions__section {
    padding: 60px 0;
    border-bottom: 1px solid #3A2A12; /* Border from custom palette */
}

.page-terms-conditions__section:last-of-type {
    border-bottom: none;
}

.page-terms-conditions__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: #FFD36B; /* Use auxiliary color for headings for contrast and branding */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.page-terms-conditions__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FFD86A, #DDA11D);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-terms-conditions__sub-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #FFD36B; /* Use auxiliary color for headings for contrast and branding */
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions__text-block {
    font-size: 1.05rem;
    color: #FFF6D6; /* Main text color from custom palette */
    margin-bottom: 20px;
}

.page-terms-conditions__card {
    background: #111111; /* Card background from custom palette */
    border: 1px solid #3A2A12; /* Border from custom palette */
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #FFF6D6; /* Text color for card content */
}

.page-terms-conditions__card-title {
    font-size: 1.6rem;
    color: #FFD36B; /* Use auxiliary color for card title */
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.page-terms-conditions__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-terms-conditions__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #FFF6D6; /* Main text color for list items */
    font-size: 1.05rem;
}

.page-terms-conditions__list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    line-height: 1.6;
}

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

.page-terms-conditions__contact-btn {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* --- FAQ Section --- */
.page-terms-conditions__faq-section {
    padding-bottom: 80px;
}

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

.page-terms-conditions__faq-item {
    background: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: #1A1A1A; /* Slightly darker background for question */
    color: #FFF6D6;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: #2A2A2A;
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFF6D6;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: #FFD36B; /* Auxiliary color for toggle */
}

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

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Main text color for answers */
    font-size: 1.05rem;
}

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

.page-terms-conditions__faq-answer p {
    margin: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
        padding-bottom: 40px;
    }

    .page-terms-conditions__main-title {
        font-size: 2.2rem;
    }

    .page-terms-conditions__hero-description {
        font-size: 1rem;
    }

    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-terms-conditions__section {
        padding: 40px 0;
    }

    .page-terms-conditions__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

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

    .page-terms-conditions__text-block,
    .page-terms-conditions__list li,
    .page-terms-conditions__faq-answer p {
        font-size: 0.95rem;
    }

    .page-terms-conditions__card {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__card-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .page-terms-conditions__faq-question {
        padding: 15px 20px;
    }

    .page-terms-conditions__faq-question h3 {
        font-size: 1.1rem;
    }

    .page-terms-conditions__faq-toggle {
        font-size: 1.5rem;
    }

    .page-terms-conditions__faq-answer {
        padding: 0 20px;
    }

    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Mobile image responsiveness */
    .page-terms-conditions img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__main-title {
        font-size: 1.8rem;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8rem;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.2rem;
    }
}