/* Modern Terms of Service Styles */
:root {
    --primary-color: #003366;
    --accent-color: #4fc3f7;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Hero Section */
.terms-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="terms-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23terms-pattern)"/></svg>');
    opacity: 0.3;
}

.terms-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.terms-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white !important;
}

.terms-hero .lead {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.terms-last-updated {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.terms-last-updated i {
    margin-right: 0.5rem;
    color: white;
}

/* Main Content */
.terms-content {
    padding: 80px 0;
    background: var(--bg-light);
}

.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    padding: 0 2rem;
}

/* Navigation Sidebar */
.terms-nav {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
}

.terms-nav h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-nav-item {
    margin-bottom: 0.5rem;
}

.terms-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terms-nav-link i {
    width: 16px;
    text-align: center;
    color: var(--accent-color);
}

.terms-nav-link:hover {
    background: rgba(79, 195, 247, 0.1);
    color: var(--accent-color);
    text-decoration: none;
    border-left-color: var(--accent-color);
    transform: translateX(3px);
}

.terms-nav-link.active {
    background: var(--accent-color);
    color: white;
    border-left-color: var(--primary-color);
}

.terms-nav-link.active i {
    color: white;
}

/* Progress Indicator */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* Content Sections */
.terms-main {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.terms-section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px;
}

.terms-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.terms-section h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terms-section h3 i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-card.success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), white);
}

.info-card.warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), white);
}

.info-card.info {
    border-left-color: var(--info-color);
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05), white);
}

.info-card h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Data Cards */
.data-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.data-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.data-card h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-dark);
    word-wrap: break-word;
    line-height: 1.4;
}

.data-list li i {
    color: var(--accent-color);
    font-size: 0.8rem;
    width: 12px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Tables */
.modern-table {
    width: 100%;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: table;
}

.modern-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: 600;
    border: none;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modern-table tbody tr:hover {
    background: rgba(79, 195, 247, 0.05);
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Contact Section */
.contact-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-terms-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-terms-pattern)"/></svg>');
    opacity: 0.3;
}

.contact-card-content {
    position: relative;
    z-index: 1;
}

.contact-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item h6 {
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .terms-nav {
        position: static;
        order: -1;
    }
    
    .terms-nav-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 60px 0 40px;
    }
    
    .terms-hero h1 {
        font-size: 2.5rem;
    }
    
    .terms-hero .lead {
        font-size: 1.2rem;
    }
    
    .terms-container {
        padding: 0;
        max-width: 100%;
    }
    
    .terms-main {
        padding: 1.5rem 1rem;
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
    }
    
    .data-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .terms-nav-list {
        grid-template-columns: 1fr;
    }
    
    .terms-nav {
        border-radius: 0;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .terms-hero {
        padding: 40px 0 30px;
    }
    
    .terms-hero h1 {
        font-size: 2rem;
    }
    
    .terms-container {
        padding: 0;
        max-width: 100%;
    }
    
    .terms-main {
        padding: 1rem 0.75rem;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .info-card,
    .data-card {
        padding: 1rem 0.75rem;
        border-radius: 0;
    }
    
    .contact-card {
        padding: 1.5rem 1rem;
        border-radius: 0;
    }
    
    .modern-table {
        font-size: 0.85rem;
        border: none;
        box-shadow: none;
    }
    
    /* Stack table as cards on mobile */
    .modern-table thead {
        display: none;
    }
    
    .modern-table tbody {
        display: block;
    }
    
    .modern-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: white;
        box-shadow: var(--shadow-sm);
        padding: 1rem;
    }
    
    .modern-table td {
        display: block;
        padding: 0.75rem 0;
        border: none;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .modern-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--primary-color);
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .modern-table td:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

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

.terms-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}