@layer components {
  .site-footer {
    margin-top: auto;
    padding: var(--space-lg) var(--space-md);
    background: var(--color-bg-muted);
    border-top: 1px solid var(--color-border);
  }

  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: var(--space-md);
    row-gap: 0;
  }

  .footer-legal a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-legal a:hover {
    color: var(--color-text);
    text-decoration: underline;
  }

  .footer-subscription a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-subscription a:hover {
    color: var(--color-text);
    text-decoration: underline;
  }

  .footer-contact {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-sm);
    width: 100%;
  }

  .footer-contact a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
  }

  .footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin: 0;
  }

  @media (min-width: 768px) {
    .footer-content {
      flex-direction: row;
      justify-content: space-between;
      text-align: left;
    }

    .footer-legal {
      order: 1;
    }

    .footer-subscription {
      order: 2;
    }

    .footer-contact {
      order: 3;
      border-top: none;
      padding-top: 0;
      width: auto;
    }

    .footer-copyright {
      order: 4;
    }
  }
}
