.global-legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0 32px;
  padding: 16px 0 20px;
  border-top: 1px solid #d6d5cd;
  color: #686b65;
  font-size: 13px;
  line-height: 1.5;
}

.global-legal-footer__business {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0;
  min-width: 0;
  font-size: inherit;
  line-height: inherit;
}

.global-legal-footer__inn { white-space: nowrap; }

.global-legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  min-width: 0;
}

.global-legal-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.global-legal-footer__links a:hover { color: #171918; }
.global-legal-footer__links a:focus-visible { outline: 2px solid #6347e9; outline-offset: 4px; }

.shared-shell,
.course-shell,
.profile-shell,
.portal-shell,
.detail-shell { display: flex; flex-direction: column; }

.shared-shell > main,
.course-shell > main,
.profile-shell > main,
.portal-shell > main,
.detail-shell > main { flex: 1; }

.ops-shell > .global-legal-footer { grid-column: 1 / -1; }
.app-shell > .global-legal-footer { grid-column: 1 / -1; }
.gate-body { grid-template-rows: 1fr auto; }
.gate-body > .global-legal-footer { width: min(1180px, 100%); margin: 24px auto 0; }
.content > .global-legal-footer { margin: 56px 0 0; }
.ticket-page > .global-legal-footer { width: min(1300px, calc(100% - 64px)); margin: 0 auto 24px; }
.legal-page > .global-legal-footer { width: min(1120px, 100%); margin: 28px auto 0; }

@media (max-width: 700px) {
  .global-legal-footer { margin-inline: 20px; gap: 12px; padding: 16px 0 20px; font-size: 14px; }
  .global-legal-footer__links { gap: 0 18px; }
  .global-legal-footer__links a { min-height: 44px; }
  .content > .global-legal-footer { margin-top: 40px; }
  .ticket-page > .global-legal-footer { width: calc(100% - 40px); margin-top: 24px; }
}
