/* terms.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Global Styles */
body {
    background: linear-gradient(180deg, #f8fafc 0%, #e8f2ff 100%);
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e293b;
    line-height: 1.7;
    min-height: 100vh;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.06), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.06), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Terms Wrapper */
.terms-wrapper {
    min-height: 100vh;
    padding-top: 80px;
}

/* Header Section */
.terms-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(30, 64, 175, 0.2);
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08), transparent 50%);
    pointer-events: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem 0;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.8s ease-out 0.1s backwards;
}

.subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    margin: 0 0 2rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

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

/* Main Content */
.main-content {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    padding: 0 1rem;
}

/* Terms Grid */
.terms-grid {
    display: grid;
    gap: 2rem;
}

/* Terms Card */
.terms-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.terms-card[data-section="1"] { animation-delay: 0.1s; }
.terms-card[data-section="2"] { animation-delay: 0.2s; }
.terms-card[data-section="3"] { animation-delay: 0.3s; }
.terms-card[data-section="4"] { animation-delay: 0.4s; }
.terms-card[data-section="5"] { animation-delay: 0.5s; }
.terms-card[data-section="6"] { animation-delay: 0.6s; }
.terms-card[data-section="7"] { animation-delay: 0.7s; }
.terms-card[data-section="8"] { animation-delay: 0.8s; }

.terms-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Card Header */
.card-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2ff 100%);
    padding: 2rem 2.5rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Card Body */
.card-body {
    padding: 2.5rem;
}

.card-body p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin: 0 0 1.25rem 0;
}

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

.subsection-title {
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.5rem;
}

/* Terms List */
.terms-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.terms-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(37, 99, 235, 0.04) 100%);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.terms-list li:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
    transform: translateX(8px);
    border-left-color: #1e40af;
}

.terms-list li:last-child {
    margin-bottom: 0;
}

.list-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    color: #ffffff;
}

.list-content {
    flex: 1;
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.9s backwards;
    border: none;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 50%);
    pointer-events: none;
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.contact-icon {
    font-size: 2.5rem;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2rem 0;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.item-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
}

.item-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: opacity 0.3s ease;
}

.item-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.item-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Contact Button */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background: #ffffff;
    color: #1e40af;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    margin-top: 1rem;
}

.contact-btn:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.contact-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .main-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .terms-wrapper {
        padding-top: 60px;
    }

    .terms-header {
        padding: 3rem 1.5rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .card-header {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .card-body p {
        font-size: 1rem;
    }

    .terms-list li {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
}

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

    .card-header {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-body p {
        font-size: 0.95rem;
    }

    .list-content {
        font-size: 0.95rem;
    }

    .contact-card {
        padding: 1.5rem 1rem;
    }

    .contact-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }
}

/* Selection styling */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1e293b;
}