/* Legal Pages Enhanced Styling */
body {
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 1) 0%,
        rgba(26, 26, 46, 1) 50%,
        rgba(22, 33, 62, 1) 100%
    );
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Legal Page Section */
.legal-page {
    padding: 8rem 0 4rem;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.legal-page .container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Legal Header */
.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #b3b3b3;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #00d4ff, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
}

.legal-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #6366f1, #10b981);
    border-radius: 2px;
}

.legal-subtitle {
    font-size: 1.2rem;
    color: #b3b3b3;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Legal Content */
.legal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.03), transparent);
    transition: left 0.8s ease;
}

.legal-content:hover::before {
    left: 100%;
}

/* Legal Sections */
.legal-section {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    border-radius: 2px;
}

.legal-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #00d4ff;
    margin: 2rem 0 1rem;
    position: relative;
    padding-left: 1rem;
}

.legal-section h3::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #6366f1;
    font-size: 0.8rem;
}

.legal-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #10b981;
    margin: 1.5rem 0 0.8rem;
}

.legal-section p {
    color: #b3b3b3;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.legal-section ul,
.legal-section ol {
    color: #b3b3b3;
    line-height: 1.8;
    margin: 1rem 0 1.5rem 1.5rem;
}

.legal-section li {
    margin-bottom: 0.8rem;
    position: relative;
}

.legal-section ul li::before {
    content: '•';
    color: #00d4ff;
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
}

.legal-section ol li {
    counter-increment: item;
}

.legal-section ol li::before {
    content: counter(item) '.';
    color: #6366f1;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.legal-section ol {
    counter-reset: item;
}

.legal-section strong {
    color: #ffffff;
    font-weight: 600;
}

.legal-section em {
    color: #00d4ff;
    font-style: italic;
}

.legal-section a {
    color: #00d4ff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.legal-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.legal-section a:hover::after {
    width: 100%;
}

.legal-section a:hover {
    color: #ffffff;
}

/* Highlighted Boxes */
.legal-highlight {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.legal-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff, #6366f1);
}

.legal-highlight p {
    margin-bottom: 0;
    color: #ffffff;
}

.legal-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.legal-warning::before {
    content: '⚠️';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.2rem;
}

.legal-warning p {
    margin-left: 2rem;
    color: #ffc107;
}

/* Legal Footer */
.legal-footer {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.legal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.05), transparent);
    transition: left 0.6s ease;
}

.legal-footer:hover::before {
    left: 100%;
}

.back-to-site {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.back-to-site .btn {
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    border: none;
    border-radius: 0.8rem;
    padding: 1rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.back-to-site .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.back-to-site .btn:hover::before {
    left: 100%;
}

.back-to-site .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.last-updated {
    color: #888;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Table of Contents */
.table-of-contents {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.table-of-contents h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.8rem;
}

.table-of-contents a {
    color: #b3b3b3;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.table-of-contents a::before {
    content: '→';
    color: #00d4ff;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.table-of-contents a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.table-of-contents a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    transform: translateX(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 6rem 0 2rem;
    }
    
    .legal-content {
        padding: 2rem;
        margin: 0 1rem 2rem;
    }
    
    .legal-title {
        font-size: 2.2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .breadcrumb {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .table-of-contents {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
    }
    
    .legal-footer {
        margin: 0 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-title {
        font-size: 1.8rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
        padding-left: 1rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-highlight,
    .legal-warning {
        padding: 1rem;
    }
    
    .legal-warning p {
        margin-left: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6366f1, #10b981);
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .legal-content {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .legal-section h2,
    .legal-section h3,
    .legal-section h4 {
        color: black !important;
    }
    
    .legal-section p,
    .legal-section li {
        color: black !important;
    }
    
    .legal-footer {
        display: none;
    }
}
