/* =================================
   Terms and Conditions Styles
   ================================= */

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary-orange: #F0A763;
    --primary-orange-dark: #D89552;
    --secondary-green: #9FBBA1;
    --secondary-green-dark: #8AAA8C;

    /* Background Colors */
    --bg-dark-1: #1A1A1A;
    --bg-dark-2: #2A2A2A;
    --bg-dark-3: #333333;
    --bg-dark-4: #3A3A3A;
    --bg-badge: #4E4E4E;

    /* Text Colors */
    --text-white: #FFFFFF;
    --text-gray: #BEBEBE;
    --text-orange: #F0A763;
    --text-green: #9FBBA1;
}

/* =================================
   Base Styles
   ================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark-4);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =================================
   Hero Section
   ================================= */

/* Dark overlay for hero background */
.hero-overlay {
    position: relative;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-section {
    background-color: var(--bg-dark-1);
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
}

.hero-section .hero-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-section .hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero-section .last-updated {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 400;
}

/* =================================
   Content Section
   ================================= */

.content-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.section {
    margin-bottom: 48px;
}

.section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-orange);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 28px;
    margin-bottom: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.section ul,
.section ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.section ul li,
.section ol li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.section ul li {
    list-style-type: disc;
}

.section ol li {
    list-style-type: decimal;
}

.section a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.section a:hover {
    color: var(--primary-orange-dark);
    text-decoration: underline;
}

.section strong {
    color: var(--text-white);
    font-weight: 600;
}

/* Contact Details Box */
.contact-details {
    background-color: var(--bg-dark-3);
    padding: 24px;
    border-radius: 12px;
    margin-top: 16px;
    border-left: 4px solid var(--primary-orange);
}

.contact-details p {
    margin-bottom: 8px;
}

/* Acknowledgment Section */
.acknowledgment-section {
    background-color: var(--bg-dark-3);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-orange);
    margin-top: 24px;
}

.acknowledgment-section h2 {
    border-bottom: none;
    padding-bottom: 12px;
}

.acknowledgment-section p {
    font-weight: 500;
}

/* =================================
   Mobile Menu Toggle Animation
   ================================= */

/* Hamburger menu animation */
#mobileMenuToggle.active span:nth-child(1) {
    position: absolute;
    transform: rotate(45deg);
}

#mobileMenuToggle.active span:nth-child(2) {
    opacity: 0;
}

#mobileMenuToggle.active span:nth-child(3) {
    position: absolute;
    transform: rotate(-45deg);
}

/* Mobile navigation - below lg breakpoint (1024px) */
@media (max-width: 1023px) {
    #mainNav {
        display: flex;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 72px);
        background-color: #333333;
        flex-direction: column;
        gap: 11.5px;
        padding: 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        overflow-y: auto;
    }

    #mainNav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    #mainNav a {
        width: 100%;
        text-align: center;
        text-decoration: none;
        padding: 10px 0;
        font-size: 20px;
        line-height: 100%;
        font-weight: 600;
    }

    #mainNav a:hover {
        text-decoration: underline;
    }

    #mainNav button {
        width: 100%;
        margin-top: 48px;
    }
}

/* =================================
   Responsive Design - Desktop
   ================================= */

@media (min-width: 1024px) {
    .hero-section {
        padding-top: 160px;
        padding-bottom: 80px;
    }

    .hero-section .hero-title {
        font-size: 56px;
    }

    .hero-section .hero-subtitle {
        font-size: 18px;
    }

    .hero-section .last-updated {
        font-size: 18px;
    }

    .content-section {
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .section h2 {
        font-size: 32px;
    }

    .section h3 {
        font-size: 22px;
    }
}

/* =================================
   Tablet Breakpoints
   ================================= */

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        padding-top: 150px;
        padding-bottom: 70px;
    }

    .hero-section .hero-title {
        font-size: 48px;
    }

    .hero-section .hero-subtitle {
        font-size: 17px;
    }
}

/* =================================
   Mobile Optimizations
   ================================= */

@media (max-width: 767px) {
    .hero-section {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .hero-section .hero-title {
        font-size: 32px;
    }

    .hero-section .hero-subtitle {
        font-size: 15px;
    }

    .section h2 {
        font-size: 24px;
    }

    .section h3 {
        font-size: 18px;
    }

    .section ul,
    .section ol {
        margin-left: 20px;
    }

    .contact-details {
        padding: 20px;
    }
}