/* Legal Pages Styling */
.legal-page {
    padding: 7rem 0 5rem;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.8;
    position: relative;
    overflow: hidden;
}

.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    z-index: 1;
}

.legal-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 2rem 0;
    position: relative;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.legal-header h1 {
    font-size: 2.75rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #0f172a, #1e293b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.legal-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 2px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.last-updated {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    display: block;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-section {
    margin-bottom: 2.5rem;
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.legal-section:nth-child(1) { animation-delay: 0.3s; }
.legal-section:nth-child(2) { animation-delay: 0.4s; }
.legal-section:nth-child(3) { animation-delay: 0.5s; }
.legal-section:nth-child(4) { animation-delay: 0.6s; }
.legal-section:nth-child(5) { animation-delay: 0.7s; }
.legal-section:nth-child(n+6) { animation-delay: 0.8s; }

.legal-section:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.legal-section h2 {
    font-size: 1.75rem;
    color: #111827;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 2px;
}

.legal-section h3 {
    font-size: 1.4rem;
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

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

.legal-section p {
    margin-bottom: 1.25rem;
    color: #4b5563;
    line-height: 1.8;
}

.legal-section ul, 
.legal-section ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.7;
    position: relative;
    padding-left: 1.5rem;
}

.legal-section li::before {
    content: '•';
    color: #10b981;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.5em;
    position: absolute;
    left: 0;
}

.legal-section a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.legal-section address {
    font-style: normal;
    margin: 1.5rem 0;
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #10b981;
}

.legal-section address p {
    margin: 0.5rem 0;
}

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

/* Table Styling */
.legal-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.legal-section th,
.legal-section td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.legal-section th {
    background-color: #f9fafb;
    color: #111827;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.legal-section tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.legal-section tbody tr:hover {
    background-color: #f3f4f6;
}

/* Blockquote Styling */
.legal-section blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background-color: #f8fafc;
    border-left: 4px solid #3b82f6;
    color: #334155;
    font-style: italic;
    border-radius: 0 0.375rem 0.375rem 0;
}

/* Code Blocks */
.legal-section pre {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.legal-section code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #dc2626;
}

.legal-section pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-page {
        padding: 4rem 0;
    }
    
    .legal-header h1 {
        font-size: 2.25rem;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding: 3rem 0;
    }
    
    .legal-header {
        margin-bottom: 3rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.25rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.95rem;
    }
    
    .legal-section table {
        font-size: 0.85rem;
    }
    
    .legal-section th,
    .legal-section td {
        padding: 0.5rem 0.75rem;
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .legal-page {
        padding: 6rem 1.5rem 4rem;
    }
    
    .legal-header {
        margin-bottom: 3rem;
        padding: 1.5rem 1rem;
    }
    
    .legal-header h1 {
        font-size: 2.25rem;
    }
    
    .legal-section {
        padding: 1.75rem 2rem;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding: 5rem 1.25rem 3rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 1.5rem 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 4.5rem 1rem 2.5rem;
    }
    
    .legal-header {
        margin-bottom: 2.5rem;
        padding: 1.5rem 1rem;
    }
    
    .legal-header h1 {
        font-size: 1.75rem;
    }
    
    .legal-section {
        padding: 1.25rem 1.25rem;
        border-radius: 0.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.35rem;
    }
    
    .legal-section p, 
    .legal-section li {
        font-size: 0.95rem;
    }
    
    .legal-section h2 {
        font-size: 1.4rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .legal-section {
        margin-bottom: 1.5rem;
    }
    
    .legal-section ul, 
    .legal-section ol {
        padding-left: 1.25rem;
    }
    
    .legal-section li {
        padding-left: 1.25rem;
    }
    
    .legal-section li::before {
        margin-left: -1.25rem;
    }
}
