/* Terms of Service Page Specific Styles */

/* Terms Hero Section */
.terms-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.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="termsPattern" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23termsPattern)"/></svg>') repeat;
    opacity: 0.4;
}

.terms-hero .container {
    position: relative;
    z-index: 2;
}

.terms-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.terms-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
}

.last-updated {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 500;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
}

/* Terms Content */
.terms-content {
    padding: 80px 0;
    background: #f8f9fa;
}

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

/* Table of Contents */
.terms-toc {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.terms-toc h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

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

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    display: block;
    border-radius: 5px;
    padding-left: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.toc-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    transition: height 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding-left: 1.5rem;
}

.toc-list a:hover::before,
.toc-list a.active::before {
    height: 100%;
}

/* Terms Main Content */
.terms-main {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.terms-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 15px 15px 0 0;
}

.terms-section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.terms-section.animated {
    opacity: 1;
    transform: translateY(0);
}

.terms-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 0.5rem;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.terms-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.terms-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #495057;
}

.terms-section p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.terms-section ul,
.terms-section ol {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
}

/* Important Notice Boxes */
.important-notice {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(255, 193, 7, 0.1));
    border-left: 4px solid #dc3545;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.important-notice::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1.5rem;
    left: -12px;
    background: #dc3545;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.important-notice h4 {
    color: #dc3545;
    margin-top: 0;
}

.important-notice p {
    margin-bottom: 0;
    color: #495057;
    font-weight: 500;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.info-box::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1.5rem;
    left: -12px;
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.info-box h4 {
    color: #667eea;
    margin-top: 0;
}

.info-box p {
    margin-bottom: 0;
    color: #495057;
}

/* Contact Info Box */
.contact-info-box {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    border-color: #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
    transform: translateY(-5px);
}

.contact-info-box h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-info-box p {
    margin-bottom: 1rem;
}

.contact-info-box a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info-box a:hover {
    color: #764ba2;
}

/* Service Terms Grid */
.service-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-term-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-term-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-term-card:hover::before {
    transform: scaleX(1);
}

.service-term-card:hover {
    border-color: #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
    transform: translateY(-5px);
}

.service-term-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-term-card h4 i {
    color: #667eea;
    font-size: 1.1rem;
}

.service-term-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Liability Table */
.liability-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.liability-table th,
.liability-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.liability-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.liability-table tr:hover {
    background: #f8f9fa;
}

.liability-table td {
    color: #6c757d;
    font-size: 0.9rem;
}

.liability-table .status-allowed {
    color: #28a745;
    font-weight: 600;
}

.liability-table .status-prohibited {
    color: #dc3545;
    font-weight: 600;
}

.liability-table .status-limited {
    color: #ffc107;
    font-weight: 600;
}

/* Termination Process */
.termination-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.termination-step {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.termination-step::before {
    content: attr(data-step);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.termination-step:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
}

.termination-step h4 {
    color: #2c3e50;
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.termination-step p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-hero h1 {
        font-size: 2.5rem;
    }
    
    .terms-hero p {
        font-size: 1.1rem;
    }
    
    .terms-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .terms-toc {
        position: static;
        order: 2;
    }
    
    .terms-main {
        padding: 2rem;
        order: 1;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .service-terms-grid,
    .termination-steps {
        grid-template-columns: 1fr;
    }
    
    .liability-table {
        font-size: 0.8rem;
    }
    
    .liability-table th,
    .liability-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .terms-hero {
        padding: 100px 0 60px;
    }
    
    .terms-hero h1 {
        font-size: 2rem;
    }
    
    .terms-content {
        padding: 60px 0;
    }
    
    .terms-main {
        padding: 1.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.3rem;
    }
    
    .important-notice,
    .info-box,
    .contact-info-box {
        padding: 1rem;
    }
    
    .service-term-card {
        padding: 1.5rem;
    }
}

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

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Print Styles */
@media print {
    .terms-hero,
    .terms-toc {
        display: none;
    }
    
    .terms-container {
        grid-template-columns: 1fr;
    }
    
    .terms-main {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .terms-section {
        page-break-inside: avoid;
    }
    
    .terms-section h2 {
        page-break-after: avoid;
    }
}