/**
 * Shared site footer mobile – Figma 743:132 (all pages).
 */

@media (max-width: 860px) {
  .gamed-footer {
    min-height: 0;
    padding: 34px 0;
    display: block;
  }

  .gamed-footer .gamed-container {
    width: 100%;
    max-width: 404px;
    margin-inline: auto;
    padding-inline: var(--gamed-header-mobile-pad-x, 20px);
    box-sizing: border-box;
  }

  .gamed-footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 0;
  }

  .gamed-logo-footer {
    order: 1;
    line-height: 0;
  }

  .gamed-logo-footer img {
    width: 224px;
    height: 91px;
    display: block;
    object-fit: contain;
  }

  .gamed-footer-copy {
    order: 2;
    width: 100%;
    max-width: 380px;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
  }

  .gamed-footer-copy h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
  }

  .gamed-footer-copy h2 em {
    display: block;
    font-style: italic;
    font-weight: 700;
  }

  .gamed-footer-copy p {
    margin: 10px 0 0;
    width: 100%;
    max-width: 365px;
    margin-inline: auto;
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
  }

  .gamed-footer-links {
    order: 3;
    width: 100%;
    min-height: 0;
    padding-top: 24px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Figma 743:132 — dwie kolumny obok siebie, tekst do lewej, blok wyśrodkowany */
  .gamed-footer-links ul {
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: auto auto;
    grid-auto-rows: min-content;
    column-gap: 48px;
    row-gap: 4px;
    align-items: start;
    justify-items: start;
  }

  .gamed-footer-links li {
    margin: 0;
    padding: 0;
    justify-self: start;
    text-align: left;
  }

  .gamed-footer-links li:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .gamed-footer-links li:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .gamed-footer-links li:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .gamed-footer-links li:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
  }

  .gamed-footer-links li:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
  }

  .gamed-footer-links a {
    display: inline-block;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.0029;
    text-align: left;
  }

  .gamed-footer-links li:nth-child(5) a {
    white-space: nowrap;
  }
}
