/* style/terms-conditions.css */

/* Root variables for colors */
:root {
    --sg777-primary: #F2C14E;
    --sg777-secondary: #FFD36B;
    --sg777-card-bg: #111111;
    --sg777-background: #0A0A0A;
    --sg777-text-main: #FFF6D6;
    --sg777-border: #3A2A12;
    --sg777-glow: #FFD36B;
    --sg777-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    /* Header offset is handled by shared.css on body */
}

.page-terms-conditions {
    font-family: Arial, sans-serif;
    color: var(--sg777-text-main); /* Light text for dark background */
    background-color: var(--sg777-background);
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

/* Fixed Header Spacing: Only add a small top padding to the first section */
.page-terms-conditions__hero-section {
    padding-top: 10px; /* Small padding, body handles --header-offset */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    background: var(--sg777-btn-gradient); /* Use a gradient for hero background */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Max height for hero image */
    object-fit: cover;
    display: block;
    margin-top: 20px; /* Space between text and image */
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    color: #000000; /* Dark text for gradient background */
}

.page-terms-conditions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #000000; /* Dark text for readability on bright gradient */
    letter-spacing: -0.02em;
}

.page-terms-conditions__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #333333; /* Slightly darker for better contrast */
}

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

.page-terms-conditions__section-header {
    margin-bottom: 25px;
    padding-top: 30px; /* Spacing between sections */
    border-bottom: 1px solid var(--sg777-border);
    padding-bottom: 15px;
}

.page-terms-conditions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--sg777-primary);
    margin-bottom: 0;
    font-weight: 600;
}

.page-terms-conditions__text-block {
    margin-bottom: 30px;
}

.page-terms-conditions__text-block p {
    margin-bottom: 15px;
    color: var(--sg777-text-main);
}

.page-terms-conditions__text-block a {
    color: var(--sg777-secondary);
    text-decoration: underline;
}

.page-terms-conditions__text-block a:hover {
    color: var(--sg777-primary);
    text-decoration: none;
}

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

.page-terms-conditions__contact-list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-terms-conditions__contact-list li {
    margin-bottom: 10px;
    color: var(--sg777-text-main);
}

.page-terms-conditions__contact-list li a {
    color: var(--sg777-secondary);
    text-decoration: underline;
}

.page-terms-conditions__contact-list li a:hover {
    color: var(--sg777-primary);
}

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-terms-conditions__btn-primary {
    background: var(--sg777-btn-gradient);
    color: #000000; /* Black text for bright gradient */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.3);
}

.page-terms-conditions__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    box-shadow: 0 8px 20px rgba(255, 211, 107, 0.5);
    transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
    background: transparent;
    color: var(--sg777-secondary);
    border: 2px solid var(--sg777-secondary);
}

.page-terms-conditions__btn-secondary:hover {
    background: var(--sg777-secondary);
    color: #000000;
    border-color: var(--sg777-primary);
    transform: translateY(-2px);
}

/* Call to Action Section */
.page-terms-conditions__call-to-action-section {
    background-color: var(--sg777-card-bg); /* Dark background for CTA */
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
}

.page-terms-conditions__cta-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--sg777-border);
}

.page-terms-conditions__cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--sg777-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-terms-conditions__cta-text {
    font-size: 1.1rem;
    color: var(--sg777-text-main);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    margin-top: 60px;
    padding: 0 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__faq-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--sg777-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-terms-conditions__faq-item {
    background-color: var(--sg777-card-bg);
    border: 1px solid var(--sg777-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px 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-color: #1a1a1a; /* Slightly lighter dark for question header */
    color: var(--sg777-text-main);
    font-weight: 600;
    font-size: 1.15rem;
    transition: background-color 0.3s ease;
}

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

.page-terms-conditions__faq-question h3 {
    margin: 0;
    color: var(--sg777-text-main);
    font-size: inherit;
    font-weight: inherit;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--sg777-secondary);
    margin-left: 15px;
}

.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: #cccccc; /* Slightly lighter text for answer */
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Ensure it expands fully */
    padding: 15px 25px 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-content {
        padding: 15px;
    }
    .page-terms-conditions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-terms-conditions__description {
        font-size: 1rem;
    }
    .page-terms-conditions__content-area {
        margin: 30px auto;
        padding: 0 15px;
    }
    .page-terms-conditions__section-title {
        font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    }
    .page-terms-conditions__cta-card {
        padding: 30px;
    }
}