/* Terms and Conditions Page Styles */

/* Dot Flow Animation for Terms Hero */
.dot-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.dot-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    animation: dotFlow 15s linear infinite;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite alternate;
}

/* Individual dot sizes and positions */
.dot-1 {
    width: 8px;
    height: 8px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.dot-2 {
    width: 12px;
    height: 12px;
    top: 20%;
    left: 15%;
    animation-delay: -2s;
    animation-duration: 18s;
}

.dot-3 {
    width: 6px;
    height: 6px;
    top: 30%;
    left: 8%;
    animation-delay: -4s;
    animation-duration: 14s;
}

.dot-4 {
    width: 10px;
    height: 10px;
    top: 15%;
    left: 25%;
    animation-delay: -1s;
    animation-duration: 16s;
}

.dot-5 {
    width: 14px;
    height: 14px;
    top: 40%;
    left: 12%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.dot-6 {
    width: 8px;
    height: 8px;
    top: 50%;
    left: 3%;
    animation-delay: -3s;
    animation-duration: 13s;
}

.dot-7 {
    width: 16px;
    height: 16px;
    top: 60%;
    left: 18%;
    animation-delay: -8s;
    animation-duration: 22s;
}

.dot-8 {
    width: 6px;
    height: 6px;
    top: 70%;
    left: 7%;
    animation-delay: -5s;
    animation-duration: 15s;
}

.dot-9 {
    width: 12px;
    height: 12px;
    top: 80%;
    left: 20%;
    animation-delay: -7s;
    animation-duration: 17s;
}

.dot-10 {
    width: 10px;
    height: 10px;
    top: 25%;
    left: 35%;
    animation-delay: -9s;
    animation-duration: 19s;
}

.dot-11 {
    width: 8px;
    height: 8px;
    top: 45%;
    left: 30%;
    animation-delay: -2.5s;
    animation-duration: 14s;
}

.dot-12 {
    width: 14px;
    height: 14px;
    top: 65%;
    left: 40%;
    animation-delay: -4.5s;
    animation-duration: 21s;
}

.dot-13 {
    width: 6px;
    height: 6px;
    top: 85%;
    left: 32%;
    animation-delay: -6.5s;
    animation-duration: 16s;
}

.dot-14 {
    width: 12px;
    height: 12px;
    top: 35%;
    left: 45%;
    animation-delay: -1.5s;
    animation-duration: 18s;
}

.dot-15 {
    width: 10px;
    height: 10px;
    top: 55%;
    left: 50%;
    animation-delay: -3.5s;
    animation-duration: 15s;
}

.dot-16 {
    width: 8px;
    height: 8px;
    top: 75%;
    left: 48%;
    animation-delay: -5.5s;
    animation-duration: 17s;
}

.dot-17 {
    width: 16px;
    height: 16px;
    top: 20%;
    left: 60%;
    animation-delay: -7.5s;
    animation-duration: 23s;
}

.dot-18 {
    width: 6px;
    height: 6px;
    top: 40%;
    left: 65%;
    animation-delay: -9.5s;
    animation-duration: 14s;
}

.dot-19 {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 70%;
    animation-delay: -11s;
    animation-duration: 20s;
}

.dot-20 {
    width: 10px;
    height: 10px;
    top: 80%;
    left: 75%;
    animation-delay: -13s;
    animation-duration: 16s;
}

@keyframes dotFlow {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
}

/* Enhanced dot effects for different screen sizes */
@media (max-width: 768px) {
    .dot {
        animation-duration: 10s;
    }
    
    .dot-1, .dot-3, .dot-6, .dot-8, .dot-11, .dot-13, .dot-16, .dot-18 {
        width: 6px;
        height: 6px;
    }
    
    .dot-2, .dot-4, .dot-9, .dot-10, .dot-12, .dot-14, .dot-15, .dot-19, .dot-20 {
        width: 8px;
        height: 8px;
    }
    
    .dot-5, .dot-7, .dot-17 {
        width: 10px;
        height: 10px;
    }
}

/* Hero Section */
.terms-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                      url('https://images.unsplash.com/photo-1589578527966-fdac0f44566c?w=1920&h=600&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    padding: 100px 0 80px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

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

.terms-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #d4af37, #ffd700, #b8860b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.terms-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.terms-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-hero .breadcrumb-item a:hover {
    color: #ffd700;
}

.terms-hero .breadcrumb-item.active {
    color: white;
}

.terms-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Terms Content */
.terms-content {
    background: #f8fafc;
}

/* Table of Contents */
.terms-toc {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #8b5cf6;
}

.toc-nav {
    display: flex;
    flex-direction: column;
}

.toc-link {
    display: block;
    padding: 10px 16px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    background: linear-gradient(135deg, #f0f9ff, #eff6ff);
    color: #8b5cf6;
    border-left-color: #8b5cf6;
    transform: translateX(4px);
}

.toc-link.active {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: white;
    border-left-color: #fbbf24;
}

/* Main Content */
.terms-main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.terms-intro {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.terms-intro .lead {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 24px;
}

.last-updated {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.9rem;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid #8b5cf6;
}

.last-updated i {
    color: #8b5cf6;
}

/* Terms Sections */
.terms-section {
    padding: 32px;
    border-bottom: 1px solid #f3f4f6;
}

.terms-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

.section-content {
    color: #374151;
    line-height: 1.7;
}

.section-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 24px 0 12px;
}

.section-content p {
    margin-bottom: 16px;
}

.section-content ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.section-content li {
    margin-bottom: 8px;
    position: relative;
}

.section-content li::marker {
    color: #8b5cf6;
}

.definition-list {
    list-style: none;
    padding-left: 0;
}

.definition-list li {
    background: #f8fafc;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid #8b5cf6;
}

/* Contact Info */
.contact-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #374151;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #8b5cf6;
    font-size: 1.1rem;
    width: 24px;
    margin-right: 12px;
}

/* Agreement Notice */
.agreement-notice {
    margin: 32px;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
}

.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.notice-icon {
    color: #3b82f6;
    font-size: 1.5rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.notice-text h5 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 8px;
}

.notice-text p {
    color: #1e40af;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .terms-toc {
        position: static;
        margin-bottom: 30px;
        max-height: none;
    }
    
    .terms-hero-title {
        font-size: 2.5rem;
    }
    
    .terms-section {
        padding: 24px;
    }
    
    .terms-intro {
        padding: 24px;
    }
}

@media (max-width: 767.98px) {
    .terms-hero {
        padding: 80px 0 60px;
        min-height: 300px;
    }
    
    .terms-hero-title {
        font-size: 2rem;
    }
    
    .terms-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .terms-section {
        padding: 20px;
    }
    
    .terms-intro {
        padding: 20px;
    }
    
    .agreement-notice {
        margin: 20px;
        padding: 20px;
    }
    
    .notice-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .terms-hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .toc-link {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}