/* Global SaaS footer — #0B1220, 5 kolon (marka + 4 link grubu), API’den beslenir */

.app-footer.app-footer--global {
  margin-top: auto;
  padding: 0;
  border-top: none;
  background: #0b1220;
  color: #94a3b8;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --footer-space-sm: 10px;
  --footer-space-md: 14px;
  --footer-space-lg: 22px;
  --footer-space-xl: 40px;
  --footer-line-h: 1.5;
}

.app-footer-shell {
  width: 100%;
  background: #0b1220;
}

.app-footer-inner {
  box-sizing: border-box;
  max-width: min(1680px, 100%);
  margin: 0 auto;
  padding: var(--footer-space-xl) 28px var(--footer-space-xl);
}

/* 5 kolon: marka + PLATFORM / YASAL / TİCARİ / DESTEK */
.app-footer-sleek-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: var(--footer-space-lg) 28px;
  align-items: start;
}

.app-footer-col {
  min-width: 0;
}

.app-footer-brand-col {
  min-width: 0;
  align-self: start;
}

.app-footer-logo-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 280px;
}

.app-footer-logo-img {
  width: 100%;
  height: auto;
  max-width: 280px;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.app-footer-wordmark {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f1f5f9;
  line-height: 28px;
  height: 28px;
}

.app-footer-brand-desc {
  margin: var(--footer-space-sm) 0 0;
  padding: 0;
  max-width: 280px;
  font-size: 13px;
  font-weight: 400;
  line-height: var(--footer-line-h);
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .app-footer-sleek-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .app-footer-brand-col {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .app-footer-inner {
    padding: 56px 18px 40px;
  }

  .app-footer-sleek-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .app-footer-brand-col {
    grid-column: auto;
    padding-bottom: 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid #1e293b;
  }

  .app-footer-brand-desc {
    max-width: none;
  }
}

.app-footer-details {
  border: none;
  margin: 0;
  padding: 0;
}

.app-footer-summary {
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  padding: 0;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.app-footer-support-list {
  margin-top: var(--footer-space-sm);
  max-width: 280px;
}

.app-footer-summary::-webkit-details-marker {
  display: none;
}

.app-footer-summary::marker {
  content: "";
  font-size: 0;
}

@media (max-width: 640px) {
  .app-footer-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px 0;
    cursor: pointer;
    border-bottom: 1px solid #1e293b;
  }

  .app-footer-summary::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .app-footer-details[open] .app-footer-summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }

  .app-footer-details .app-footer-list {
    padding-bottom: 16px;
    border-bottom: 1px solid #1e293b;
  }
}

.app-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--footer-space-sm);
}

.app-footer-link {
  font-size: 13px;
  font-weight: 400;
  color: #cbd5e1;
  text-decoration: none;
  line-height: var(--footer-line-h);
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-footer-link:hover {
  color: #ffffff;
}

.app-footer-static {
  font-size: 13px;
  font-weight: 400;
  color: #cbd5e1;
  line-height: var(--footer-line-h);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-footer-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  color: #8fa3c2;
  font-size: 12px;
}

.app-footer-divider {
  height: 1px;
  background: #1e293b;
  margin: 36px 0 22px;
}

.app-footer-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .app-footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

.app-footer-bottom-line:empty {
  display: none;
}

.app-footer-fallback-inner {
  min-height: 48px;
}

/* SPA: footer alta */
.app-shell > .main-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

.app-shell > .main-layout > .app-footer.app-footer--global {
  margin-top: auto;
  flex-shrink: 0;
}
