/* ========== Terms of Service Page Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --white: #ffffff;
    --border-light: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: white;
}

/* ========== New Modern Navigation ========== */
.navbar {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    text-decoration: none;
    transition: var(--transition);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: var(--transition);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.brand-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.navbar-brand:hover .brand-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

/* Modern Hamburger Menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-toggler span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Links */
.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    left: 0;
}

.nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-link .material-icons {
    font-size: 1.1rem;
}

/* ========== Terms Header ========== */
.terms-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    position: relative;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234f46e5' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.terms-header .container {
    position: relative;
    z-index: 1;
}

.header-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    box-shadow: var(--shadow-medium);
}

.header-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.header-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.last-updated {
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

/* ========== Table of Contents ========== */
.toc-section {
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.toc-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-light);
}

.toc-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.toc-title .material-icons {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.toc-list li {
    margin: 0;
}

.toc-list a {
    display: block;
    padding: 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toc-list a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2);
}

/* ========== Terms Content ========== */
.terms-content {
    background: white;
}

.content-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.content-section:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.section-intro {
    background: linear-gradient(135deg, var(--bg-light), #e2e8f0);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.section-intro::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.section-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.section-content {
    font-size: 1rem;
    line-height: 1.7;
}

.section-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.section-content h4::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.section-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.section-content ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.section-content li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-light);
}

.section-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
}

.section-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.section-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.section-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* ========== Alert Boxes ========== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.alert-info {
    border-color: #bee3f8;
    background: #ebf8ff;
}

.alert-info::before {
    background: #3182ce;
}

.alert-info .material-icons {
    color: #3182ce;
}

.alert-info strong {
    color: #2c5282;
}

.alert-warning {
    border-color: #fed7aa;
    background: #fffbeb;
}

.alert-warning::before {
    background: #f59e0b;
}

.alert-warning .material-icons {
    color: #f59e0b;
}

.alert-warning strong {
    color: #92400e;
}

.alert .material-icons {
    margin-top: 0.125rem;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* ========== Contact Info ========== */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--bg-light), #e2e8f0);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.contact-item .material-icons {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

/* ========== Back to Top Button ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* ========== Modern Footer ========== */
.modern-footer {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.footer-background {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
}

.footer-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.footer-main {
    position: relative;
    z-index: 1;
}

.footer-brand .brand-wrapper {
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    border-radius: 15px;
}

.footer-brand .brand-name {
    font-size: 1.6rem;
    color: white;
}

.footer-brand .brand-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.footer-links a:hover::before {
    width: 4px;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    padding: 0.5rem 0;
    border: none;
    margin-bottom: 0.75rem;
}

.contact-info .contact-item .material-icons {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    width: 30px;
    height: 30px;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info .contact-item span:not(.material-icons) {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    flex: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.footer-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer-badges .badge:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-badges .badge .material-icons {
    font-size: 1rem;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .header-title {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .section-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .footer-badges {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .brand-wrapper {
        gap: 0.5rem;
    }
    
    .brand-name {
        font-size: 1.2rem !important;
    }
    
    .nav-link span:last-child {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-title {
        font-size: 2rem;
    }
    
    .terms-header {
        padding: 120px 0 60px;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .section-content h4 {
        font-size: 1.1rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .last-updated {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .footer-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ========== Smooth Scrolling ========== */
html {
    scroll-behavior: smooth;
}

/* ========== Loading Animation ========== */
.content-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.content-section.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Text Selection ========== */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: var(--text-dark);
} 