.legal-hero {
    background: var(--ta-bg);
    padding: 5rem 0 0;
    position: relative;
    overflow: hidden;
}
.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 70% at 80% 30%, rgba(10,132,255,0.10) 0%, transparent 65%),
        radial-gradient(ellipse 30% 40% at 5% 70%,  rgba(10,132,255,0.07) 0%, transparent 60%);
    pointer-events: none;
}
.legal-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ta-blue), transparent);
}

.rh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--ta-blue);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.2rem;
    /* opacity: 0; */
    animation: slideUp 0.6s 0.1s ease forwards;
}
.rh-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--ta-blue);
}

.rh-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
    /* opacity: 0; */
    animation: slideUp 0.6s 0.2s ease forwards;
}
.rh-title span {
    background: linear-gradient(135deg, var(--ta-blue), #5cc8ff, var(--ta-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.rh-sub {
    color: var(--ta-muted);
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.75;
    margin: 0 auto;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp 0.6s 0.3s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.legal-content {
    padding: 60px 0 100px;
    background: var(--ta-white);
}

.legal-content .container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.legal-toc {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e9ecef;
}

.legal-toc h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ta-cyber);
    display: inline-block;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 10px;
}

.legal-toc a {
    color: var(--ta-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
}

.legal-toc a:hover {
    color: var(--ta-cyber);
}

.legal-main {
    flex: 1;
    min-width: 0;
}

.legal-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #4a5568;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.legal-main h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    color: var(--ta-dark);
}

.legal-main h2:first-of-type {
    margin-top: 0;
}

.legal-main h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--ta-dark);
}

.legal-main p {
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
}

.legal-main ul, .legal-main ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-main li {
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 8px;
}

.legal-main li ul {
    margin-top: 8px;
    margin-bottom: 0;
}

.legal-note {
    background: #fff8e7;
    border-left: 4px solid #f5a623;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.legal-updated {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-content .container {
        flex-direction: column;
    }
    
    .legal-sidebar {
        flex: auto;
        position: static;
        margin-bottom: 30px;
    }
    
    .legal-hero h1 {
        font-size: 2rem;
    }
    
    .legal-main h2 {
        font-size: 1.5rem;
    }
}