.documents_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.documents_link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    color: var(--black);
    border-radius: 12px;
    border: 1px solid #F0F0F0;
    background: #FAFAFA;
    box-shadow: 0px 0px 0px 0px rgba(255, 81, 94, 0.00);
    transition: var(--transition);
    padding: 16px;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px;
}

.documents_link:hover {
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--primary);
}

.document_icon-save {
    border-radius: 8px;
    border: 1px solid #F0F0F0;
    background: #ffffff;
    padding: 10px;
}

@media (max-width: 1024px) {
    .documents_list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .documents_list {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* new layout */

.section-legal .file a:hover .hover,
.section-legal .file .file-name small {
    display: block
}

.section-legal .file .icon img {
    height: 100px;
}

.section-legal .file .icon {
    display: flex;
    justify-content: center;
}

.section-legal .file {
    padding: 0 !important
}

.section-legal .file .icon {
    text-align: center
}


.section-legal .file {
    position: relative;
    border-radius: .55rem;
    overflow: hidden
}

.section-legal .file .image,
.section-legal .file .icon {
    max-height: 180px;
    overflow: hidden;
    background-size: cover;
    background-position: top
}

.section-legal .file .hover {
    position: absolute;
    right: 10px;
    top: 10px;
    display: none;
    transition: all 0.2s ease-in-out
}

.section-legal .file a:hover .hover {
    transition: all 0.2s ease-in-out
}

.section-legal .file .icon {
    padding: 15px 10px;
    width: 100%
}

.section-legal .file .icon i {
    display: table-cell;
    font-size: 30px;
    vertical-align: middle;
    color: #777;
    line-height: 100px
}

.section-legal .file .file-name {
    padding: 10px;
    border-top: 1px solid #f7f7f7;
    min-height: 82px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-legal .file .file-name small .date {
    float: right
}

.folder {
    padding: 20px;
    display: block;
    color: #777
}

@media only screen and (max-width: 992px) {
    .section-legal .nav-tabs {
        padding-left: 0;
        padding-right: 0
    }

    .section-legal .nav-tabs .nav-item {
        display: inline-block
    }
}

.card {
    background: #fff;
    transition: .5s;
    border: 0;
    margin-bottom: 30px;
    border-radius: .55rem;
    position: relative;
    width: 100%;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
}

a:hover {
    text-decoration: none;
}