/* ===== CSS Custom Properties ===== */
:root {
    --bg-primary: rgba(24, 135, 30, 0.10);
    --bg-secondary: rgba(24, 135, 30, 1.0);
    --bg-card: rgba(24, 135, 30, 0.40);
    --bg-card-hover: #263548;
    --text-primary: black;
    --text-secondary: black;
    --text-muted: #64748b;
    --accent-primary: #6366f1;
    --accent-secondary: #818cf8;
    --border-color: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(99, 102, 241, 0.3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --max-width: 800px;
    --nav-height: 72px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: #004500;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 40px;
    color: white;
    letter-spacing: -1.5px;
}

.logo-surca {
    font-family: "Albert Sans", sans-serif;
    font-weight: 800;
}

.logo-menu {
    font-family: "Instrument Serif", serif;
    font-weight: 500;
    font-style: italic;
    transform: translateY(1px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width var(--transition-normal);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    text-decoration: none;
    background: white;
    color: var(--bg-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    background: #004500;;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    text-decoration: none;
    padding: 12px 0;
    color: white;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: color var(--transition-fast);
}

.mobile-btn {
    text-decoration: none;
    padding: 12px 0;
    font-weight: 500;
    transition: color var(--transition-fast);
}


.mobile-btn {
    margin-top: 8px;
    text-align: center;
    background: white;
    color: #004500;
    border-radius: var(--radius-sm);
    padding: 12px;
    border: none;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 60px) 24px 80px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===== Main Content ===== */
.main-content {
    padding: 40px 24px 80px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ===== Last Updated ===== */
.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.last-updated strong {
    color: var(--text-primary);
}

.update-icon {
    font-size: 1.1rem;
}

/* ===== Terms Cards ===== */
.terms-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.terms-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-secondary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

/* .terms-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
} */

.terms-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.card-content p:last-child {
    margin-bottom: 0;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.card-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bg-secondary);
}

/* ===== Sidebar Layout ===== */
.container-with-sidebar {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    position: relative;
}

.content-area {
    max-width: var(--max-width);
}



/* ===== Subsection Titles ===== */
.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 2px;
}


/* ===== Footer ===== */
.footer {
    position: relative;
    background: #004500;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    padding: 60px 24px 32px;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand .logo-icon {
    display: inline;
}

.footer-brand .logo-text {
    display: inline;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-tagline {
    color: white;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-link {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width var(--transition-normal);
}

.footer-link:hover {
    color: var(--accent-secondary);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-bottom {
    max-width: 800px;
    margin: 24px auto 0;
    text-align: center;
    color: white;
    font-size: 0.85rem;
}

/* ===== Animations ===== */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-in:nth-child(2) { animation-delay: 0.3s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: 40vh;
        padding: calc(var(--nav-height) + 40px) 20px 60px;
    }

    .hero-wave svg {
        height: 50px;
    }

    .main-content {
        padding: 24px 16px 60px;
    }

    .terms-card {
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }

    .card-header {
        gap: 12px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: var(--radius-sm);
    }

    .card-header h2 {
        font-size: 1.1rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-wave svg {
        height: 50px;
    }

    .footer-wave {
        top: -49px;
    }

    .last-updated {
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .terms-card {
        padding: 20px 16px;
    }

    .card-header h2 {
        font-size: 1rem;
    }

    .contact-item {
        padding: 12px;
    }
}
