footer {
  background-color: #f8f8f8;
}

footer .container {
  padding-top: 50px;
  align-items: normal;
  gap: 40px;
  /* width: 1368px; */
}

@media (max-width: 1367px) {
  footer .container {
    width: 100%;
  }
}

footer .col {
  width: 25%;
}

footer .item.title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--heading_color);
}

footer .item:not(:last-child) {
  margin-bottom: 12px;
}

footer .item a {
  transition: .2s;
  font-size: 14px;
}

footer .item-last-blue a {
  color: var(--link_color);
}
footer .item-last-blue a:hover {
  color: var(--link_hover_color);
}

footer .item a:hover {
  text-decoration: underline;
}

footer .item.title:not(:first-child) {
  margin-top: 36px;
}

.footer-contacts {
  margin-top: 36px;
}



.footer-messenger {
  min-height: 20px;
  display: inline-block;
  margin-right: 20px;
  margin-left: 21px;
  position: relative;
}

.footer-messenger svg {
  width: 17px;
  height: 17px;
  left: -20px;
  top: 0px;
  position: absolute;
}
.footer-messenger svg path {
  fill: var(--link_color);
}


.oisc-wrap {

  padding-top: 20px;
  position: relative !important;

  font-size: 12px !important;
  line-height: 1.35em !important;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(207, 215, 230, .5);
  margin-top: 20px;
}

.oisc-wrap.footer-contacts {
  display: block;
}

.contacts-wrap {
  border-top: none;
  margin-top: 11px !important;
  padding-top: 0 !important;
}

.oisc-img {
  width: 53px;
  margin-right: 10px;
}

.oisc-img svg,
.oisc-img img {
  width: 100%;
  height: auto;
  min-width: 53px;
}

.location-wrap img {
  max-width: 26px;
  min-width: auto;
}

.location-wrap .oisc-img {
  display: flex;
  justify-content: center;
}

.oisc-text {
  font-size: 13px;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .oisc-text {
    font-size: 12px;
  }

  .oisc-text br {
    display: none;
  }
}

.logo-belt {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(207, 215, 230, .5);
}

footer .container:nth-child(2) {
  flex-direction: column;
  gap: 0;
}

.foo-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.foo-logo .main-logo-link {
  width: 180px;
}
.foo-logo .main-logo-link img {
  height: auto;
  transform: translate(0px, 2px);
}

.foo-logo p {
  margin-left: 16px;
  margin-bottom: 0;
}

.foo-logo p:before {
  border-left: 1px solid rgba(207, 215, 230, .5);
  content: "";
  display: inline-block;
  height: 32px;
  margin-right: 16px;
  vertical-align: -40%;
}

.foo-socials {
  display: flex;
  gap: 16px;
}

.foo-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(207, 215, 230, .5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.foo-socials a svg path {
  fill: #e2e2e7;

}

.foo-socials a:hover svg path {
  transition: .2s;
}

.foo-socials a:hover svg path {
  fill: var(--link_hover_color);
}

footer .col.full-w {
  width: 100%;
  border-top: 1px solid rgba(207, 215, 230, .5);
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
  align-items: center;
}


footer .footer-policy ul {
  font-size: 12px;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

footer .footer-policy li {
  display: block;
}

/*------------------------------ .footer-lang */
.footer-lang {
  cursor: pointer;
}

.language-chooser.language-chooser-text {
  transition: all .55s;
  position: relative;
  z-index: 1002;
}

.language-chooser li {
  float: left;
  list-style: none;
}

.language-chooser li a {
  display: inline-block;
  /* color: #7f7f7f; */
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  /* padding-top: 6px;
  padding-bottom: 3px; */
  /* font-weight: 600; */
}

.language-chooser>li {
  margin-left: -12px;
}

.language-chooser>li>a {
  padding: 8px 12px;
}

.language-chooser>li>a:hover {
  background-color: #e2e2e7;
  border-radius: 54px;
  color: #404145;
}


.lang-drop {
  visibility: hidden;
  transition: visibility;
  transition-delay: .3s;
  position: absolute;
  background-color: #fff;
  bottom: 100%;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
}

@media (max-width:1024px) {
  .lang-drop {
    left: -12px;
    right: auto;
  }
}

.language-chooser:hover .lang-drop {
  visibility: visible;
}

.header .lang-drop:before {
  position: absolute;
  content: '';
  display: block;
  background-color: #efefef;
  border-left: 30px solid #fff;
  border-right: 30px solid #fff;
  border-bottom: 18px solid transparent;
  top: -18px;
  right: 0;
}

.lang-drop li {
  float: none;
  list-style: none;
  border-top-color: rgb(229, 231, 235);
  border-top-style: solid;
  border-top-width: 1px;
  text-align: center;
  overflow: hidden;
}

.lang-drop li:first-child {
  border: none;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}

.lang-drop li:last-child {
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.lang-drop li a {
  border-top: none;
  color: #000 !important;
  padding: 8px 16px;
  width: 100%;

}

.lang-drop li a span {
  margin: 0 !important;
}

.lang-drop li:not(.current-lang) a:hover {
  background-color: rgb(247, 247, 247);
}

.lang-drop li.current-lang a {
  font-weight: 700;
  cursor: default !important;
  pointer-events: none;
}

.language-chooser img {
  display: none;
}

.language-chooser svg {
  fill: #74767e;
  margin-right: 8px;
}

/*------------------------------ END .footer-lang */
.footer-copyright {
  font-size: 12px;
}

a.customize-unpreviewable {
  cursor: pointer !important;
}

@media (max-width: 991px) {
  footer .container {
    flex-direction: column;
    gap: 0;
  }

  footer .col {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .logo-belt {
    flex-direction: column;
    padding-top: 30px;
    padding-bottom: 30px;
    gap: 20px;
  }

  .foo-logo {
    justify-content: flex-start;
  }

  .oisc-wrap.location-wrap {
    margin-top: 51px;
  }

  .oisc-wrap {
    padding-top: 30px;
    margin-bottom: 10px;

  }

  .oisc-wrap.location-wrap {
    margin-bottom: 0;
  }

  footer .container:nth-child(2) {
    padding-top: 20px;
  }

  footer .item {
    max-height: 0px;
    overflow: hidden;
    transition: opacity .5s, transform .5s;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    margin: 0px !important;
  }

  footer .footer-contacts .item {
    max-height: 9999999px;
    opacity: 1;
    visibility: visible;
  }

  .footer-contacts .item:not(:last-child) {
    margin-bottom: 16px !important;
  }


  a {
    transition: .5s;
  }

  footer .item.title {
    max-height: 9999999px;
    opacity: 1;
    transform: translateY(0px);
    visibility: visible;
    padding: 16px 0 !important;
    border-top: 1px solid #E5E7EB;
    position: relative;
    grid-column: 1 / 3;
  }

  footer .item.title:after {
    content: "";
    width: 20px;
    height: 20px;
    top: 19px;
    right: 0px;
    background: url(https://imperiallegal.com/wp-content/themes/IL2024/img/navigate-right.svg) no-repeat center center / contain;
    position: absolute;
    transition: .5s;
  }

  footer .item.opened.title:after {
    transform: rotate(-90deg);
  }

  footer .item.opened {
    max-height: 9999999px;
    opacity: 1;
    transform: translateY(0px);
    visibility: visible;
  }

  footer .item.opened:not(.last) {
    padding: 0px 10px 16px 0;
  }

  .footer-contacts {
    grid-column: 1 / 3;
    padding-top: 28px;
    border-top: 1px solid #E5E7EB;
    margin-top: 0px;
    max-width: 100%;
  }

  .oisc-wrap {
    grid-column: 1 / 3;
  }

  .oisc-wrap.footer-contacts {
    padding-top: 12px;
    margin-bottom: 0;
  }

  .oisc-wrap.footer-contacts a {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  footer .col.full-w {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-lang {
    order: 3;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .footer-copyright {
    order: 2;
  }

  footer .footer-policy {
    width: 100%;
  }

  footer .footer-policy ul {
    border-bottom: 1px solid rgba(207, 215, 230, .5);
    order: 1;
    padding-bottom: 20px;
    width: 100%;
  }

  .footer-copyright {
    display: none;
  }

  .footer-copyright-mob {
    display: block !important;
    margin-left: 3px;
  }
  .language-chooser.language-chooser-text {
    width: fit-content;
  }
}

@media (max-width: 540px) {
  .foo-logo {
    flex-direction: column;
    align-items: flex-start;
  }

  .foo-logo p {
    margin-left: 0;
    margin-top: 10px;
  }

  .foo-logo p::before {
    display: none;
  }

  /* footer .footer-policy ul{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 8px;
  } */

}