.child-footer {
  background: var(--surface-surface);
  color: var(--text-tertiary);
}

.child-footer__container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 60px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.child-footer__header,
.child-footer__body,
.child-footer__footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.child-footer__header {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.child-footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.child-footer__logo-image {
  display: block;
  width: auto;
  max-height: 36px;
}

.child-footer__logo-text {
  color: var(--text-primary);
  font: var(--text-b1-b);
}

.child-footer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 20px;
  border: 1px solid var(--border-secondary);
  color: var(--text-tertiary);
  font: var(--text-c1-m);
}

.child-footer__description,
.child-footer__copyright,
.child-footer__legal {
  margin: 0;
}

.child-footer__description,
.child-footer__copyright,
.child-footer__legal,
.child-footer a {
  color: var(--text-tertiary);
  font: var(--text-b2-r);
}

.child-footer__hr {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--border-primary);
}

.child-footer__nav-list,
.child-footer__nav-list .sub-menu,
.child-footer__menu-down-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.child-footer__nav-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}

.child-footer__nav-list > .menu-item {
  flex: 1 1 0;
  min-width: 0;
}

.child-footer__nav-list > .menu-item > a {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--text-primary);
  font: var(--text-b1-m);
}

.child-footer a {
  transition: color 0.3s ease-in-out;
}

.child-footer a:hover {
  color: var(--text-primary);
}

.child-footer__nav-list .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.child-footer__nav-list .menu-item-has-children > .sub-menu {
  display: flex !important;
}

.child-footer__body {
  justify-content: space-between;
}

.child-footer__menu-down-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 40px;
}

.child-footer__footer {
  justify-content: space-between;
}

.child-footer__legal {
  max-width: 980px;
}

.child-footer__badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 360px;
}

.child-footer__badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.child-footer__badge {
  display: block;
  width: auto;
  object-fit: contain;
}

.child-footer__badge--age {
  height: 60px;
}

.child-footer__badge--gamble-aware {
  height: 20px;
}

.child-footer__badge--game-care {
  height: 32px;
}

.child-footer__badge--dmca {
  height: 45px;
}

@media (max-width: 1360px) {
  .child-footer__container {
    padding: 24px;
  }
}

@media (max-width: 1024px) {
  .child-footer__nav-list {
    flex-wrap: wrap;
  }

  .child-footer__nav-list > .menu-item {
    flex-basis: calc(50% - 24px);
  }

  .child-footer__body,
  .child-footer__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .child-footer__menu-down-list,
  .child-footer__badges {
    justify-content: flex-start;
  }

  .child-footer__badges {
    align-items: flex-start;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .child-footer__container {
    display: grid;
    grid-template-areas:
      "header"
      "line-1"
      "nav"
      "line-2"
      "footer"
      "line-3"
      "body";
    padding: 36px 16px 0;
  }

  .child-footer__header {
    grid-area: header;
  }

  .child-footer__nav {
    grid-area: nav;
  }

  .child-footer__body {
    display: grid;
    grid-area: body;
    grid-template-areas:
      "copyright"
      "menu";
    gap: 24px;
    width: auto;
    margin: 0 -16px;
    padding: 16px 16px;
    background: var(--surface-raised);
  }

  .child-footer__footer {
    display: grid;
    grid-area: footer;
    grid-template-areas:
      "legal"
      "badges";
    gap: 24px;
    width: 100%;
  }

  .child-footer__hr:nth-of-type(1) {
    grid-area: line-1;
  }

  .child-footer__hr:nth-of-type(2) {
    grid-area: line-2;
  }

  .child-footer__hr:nth-of-type(3) {
    grid-area: line-3;
    display: none;
  }

  .child-footer__copyright {
    grid-area: copyright;
    text-align: center;
  }

  .child-footer__menu-down {
    grid-area: menu;
    width: 100%;
  }

  .child-footer__legal {
    grid-area: legal;
  }

  .child-footer__badges {
    grid-area: badges;
  }

  .child-footer__nav-list {
    grid-template-columns: repeat(auto-fill, 200px);
    gap: 32px;
  }

  .child-footer__nav-list {
    flex-direction: column;
  }

  .child-footer__nav-list > .menu-item {
    flex-basis: auto;
  }

  .child-footer__legal {
    font: var(--text-c2-r);
  }

  .child-footer__badges {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .child-footer__menu-down-list {
    justify-content: center;
    gap: 24px;
  }

  .child-footer__badge--age {
    height: 40px;
  }

  .child-footer__badge--gamble-aware {
    height: 15px;
  }

  .child-footer__badge--game-care {
    height: 23px;
  }

  .child-footer__badge--dmca {
    height: 30px;
  }
}
