/* Estilos para a seção de Leis */
#leis {
    background: linear-gradient(135deg, #D8366F 0%, #FF69B4 100%);
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

#leis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

#leis h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.leis-container {
    max-width: 1400px;
    margin: 0 auto;
/*    padding: 0 2rem;*/
    position: relative;
    z-index: 2;
}

.lei-categoria {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.lei-categoria:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.lei-categoria h3 {
    color: #D8366F;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid rgba(216, 54, 111, 0.2);
    position: relative;
}

.lei-categoria h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #D8366F, #FF69B4);
    transition: width 0.4s ease;
}

.lei-categoria:hover h3::before {
    width: 100%;
}

.lei-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lei-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(to bottom, #D8366F, #FF69B4);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.lei-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(10px);
}

.lei-item:hover::before {
    width: 8px;
}

.lei-item h4 {
    color: #D8366F;
    font-size: 1.4rem;
    margin: 0;
    padding-left: 1.5rem;
}

.lei-item p {
    color: #4A5568;
    line-height: 1.8;
    margin: 0;
    padding-left: 1.5rem;
    font-size: 1.1rem;
}

.lei-link {
    display: inline-flex;
    align-items: center;
    color: #D8366F;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(216, 54, 111, 0.1);
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.lei-link:hover {
    background: #D8366F;
    color: white;
    transform: translateX(10px);
}

/* Responsivo */
@media (max-width: 768px) {
    #leis {
        padding: 3rem 0;
    }

    #leis h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .lei-categoria {
        padding: 8px;
        border-radius: 1.5rem;
        margin-bottom: 2rem;

        width: 90vw; /* Ocupa 90% da largura da tela */
        max-width: 100%; /* Garante que não ultrapasse os limites do contêiner */
        margin-left: auto; /* Centraliza horizontalmente */
        margin-right: auto; /* Centraliza horizontalmente */
    }

    .lei-categoria h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .lei-item {
        padding: 1.2rem;
        margin: 1rem 0;
    }

    .lei-item h4 {
        font-size: 1.2rem;
    }

    .lei-item p {
        font-size: 1rem;
        line-height: 1.6;
    }
}


/* Alto Contraste */
body.high-contrast #leis {
    background: var(--background-color);
}

body.high-contrast .lei-categoria {
    background: var(--background-color);
    border: 2px solid var(--text-color);
}

body.high-contrast .lei-categoria h3,
body.high-contrast .lei-item h4,
body.high-contrast .lei-item p,
body.high-contrast .lei-link {
    color: var(--text-color);
}

body.high-contrast .lei-item {
    background: var(--background-color);
    border: 1px solid var(--text-color);
}

body.high-contrast .lei-link:hover {
    background: var(--text-color);
    color: var(--background-color);
}