/* style/terms-conditions.css */

/* Variables for consistency */
:root {
    --primary-color: #0A2463; /* Dark blue */
    --secondary-color: #FFD700; /* Gold */
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --bg-dark: #000;
    --bg-light: #ffffff;
    --border-color: #333; /* Darker border for dark theme */
    --card-bg-dark-theme: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
    --button-hover-dark: #0056b3;
}

/* Base styles for the page content, accounting for fixed header */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Ensure body background is respected */
    padding-top: 120px; /* Desktop: Adjust based on shared header height */
}

/* Main container for content sections */
.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-terms-conditions__hero-section {
    background: var(--primary-color); /* Use primary color for hero */
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color); /* Gold accent */
    position: relative; /* For image positioning */
    overflow: hidden;
}

.page-terms-conditions__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Gold title */
    font-weight: bold;
    line-height: 1.2;
}

.page-terms-conditions__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    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 wrapping on small screens */
    margin-bottom: 40px; /* Space before image */
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--secondary-color); /* Gold button */
    color: var(--primary-color); /* Dark blue text on gold */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-terms-conditions__cta-button:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-button--secondary {
    background: var(--text-light); /* White button */
    color: var(--primary-color); /* Dark blue text on white */
}

.page-terms-conditions__cta-button--secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Content Section (Terms and Conditions details) */
.page-terms-conditions__content-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark background for content */
    color: var(--text-light); /* Light text for readability */
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: var(--secondary-color); /* Gold titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3); /* Subtle gold underline */
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 1.6em;
    color: var(--text-light);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions__content-section p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-light);
}

.page-terms-conditions__content-section ul {
    list-style-type: disc;
    margin-left: 30px;
    margin-bottom: 20px;
}

.page-terms-conditions__content-section li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: var(--text-light);
}

.page-terms-conditions__content-section strong {
    color: var(--secondary-color); /* Highlight important terms in gold */
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 60px 0;
    background-color: var(--bg-light); /* Light background for contrast */
    color: var(--text-dark); /* Dark text on light background */
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
    color: var(--primary-color); /* Dark blue title on light background */
    border-bottom-color: rgba(10, 36, 99, 0.3);
    text-align: center;
    margin-bottom: 40px;
}

.page-terms-conditions__faq-list {
    margin-top: 30px;
}

/* FAQ item styles */
.page-terms-conditions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #f5f5f5;
    border-color: #d0d0d0;
}

.page-terms-conditions__faq-question:hover {
    background: #f9f9f9;
    border-color: #d0d0d0;
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--primary-color); /* Dark blue for question text */
}

.page-terms-conditions__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: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
    color: var(--secondary-color); /* Gold when active */
}

.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 25px;
    opacity: 0;
    background: #fcfcfc; /* Slightly off-white for answer background */
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-terms-conditions__faq-answer p {
    margin: 0;
    color: var(--text-dark); /* Dark text for answer content */
}

/* Contact Section */
.page-terms-conditions__contact-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.page-terms-conditions__contact-section .page-terms-conditions__section-title {
    color: var(--secondary-color);
    border-bottom-color: rgba(255, 215, 0, 0.3);
    margin-bottom: 30px;
}

.page-terms-conditions__contact-section p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.page-terms-conditions__contact-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
}

.page-terms-conditions__contact-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-terms-conditions__contact-list li a {
    color: var(--secondary-color); /* Gold links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-terms-conditions__contact-list li a:hover {
    color: #e6c200; /* Darker gold on hover */
    text-decoration: underline;
}

/* General Link Styling for content */
.page-terms-conditions a {
    color: var(--secondary-color); /* Gold for general links on dark background */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions {
        padding-top: 100px !important; /* Mobile: Adjust based on mobile shared header height */
        font-size: 15px;
    }

    .page-terms-conditions__hero-section {
        padding: 60px 0;
    }

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

    .page-terms-conditions__description {
        font-size: 1em;
    }

    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    }

    /* Ensure buttons fill width on mobile */
    .page-terms-conditions__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-terms-conditions__content-section,
    .page-terms-conditions__faq-section,
    .page-terms-conditions__contact-section {
        padding: 40px 0;
    }

    .page-terms-conditions__container {
        padding: 0 15px;
    }

    .page-terms-conditions__section-title {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.2em;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .page-terms-conditions__content-section ul {
        margin-left: 20px;
    }

    /* FAQ Mobile adjustments */
    .page-terms-conditions__faq-item {
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    }
    .page-terms-conditions__faq-question {
        padding: 15px 20px;
    }
    .page-terms-conditions__faq-question h3 {
        font-size: 1em;
    }
    .page-terms-conditions__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 20px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px 20px !important;
    }

    /* Image responsive handling */
    .page-terms-conditions__hero-image,
    .page-terms-conditions__content-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Ensure all container elements for images are also responsive */
    .page-terms-conditions__hero-section,
    .page-terms-conditions__content-section .page-terms-conditions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
}

/* No CSS filter for images */
.page-terms-conditions__hero-image,
.page-terms-conditions__content-image {
    filter: none;
}