/* /es/terms/css/style.css */

/* Scroll suave y contenedor principal */
#legal-content {
    scroll-behavior: smooth;
}

/* Sidebar nav */
.nav-link {
    display: block;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    color: #64748b; /* slate-500 */
    text-decoration: none;
    transition: all 0.18s ease;
    border: 1px solid transparent;
    margin-bottom: 0.15rem;
    font-size: 0.8rem;
}

.nav-link:hover {
    color: #0f172a;          /* slate-900 */
    background-color: #e5e7eb; /* slate-200 */
}

.nav-link.active {
    background: #f97316;      /* orange-500 */
    color: #ffffff;
    border-color: #ea580c;    /* orange-600 */
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.25);
}

/* Scrollbar dentro del contenido legal */
#legal-content::-webkit-scrollbar {
    width: 6px;
}

#legal-content::-webkit-scrollbar-track {
    background: #f1f5f9; /* slate-100 */
}

#legal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* slate-300 */
    border-radius: 999px;
}

#legal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-400 */
}

/* Ajustes tipográficos y decoración */
#legal-content h2 {
    letter-spacing: 0.06em;
}

#legal-content p,
#legal-content li {
    font-size: 0.9rem;
}

/* Bloques destacados */
.bg-red-50 {
    position: relative;
}

.bg-red-50::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    border: 1px dashed rgba(248, 113, 113, 0.60);
    pointer-events: none;
}

/* Layout responsive */
@media (max-width: 1024px) {
    #legal-content {
        height: 620px;
    }
}

@media (max-width: 768px) {
    #legal-content {
        height: 520px;
    }

    .nav-link {
        font-size: 0.78rem;
    }
}

@media (max-width: 640px) {
    #legal-content {
        height: auto;
        max-height: 75vh;
    }
}
