/* ============================================================
   K - footer.css  (K site footer)
   ============================================================ */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* optional decorative top gradient line */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: 0.3;
}

.footer-inner {
  max-width: var(--layout);
  margin: 0 auto;
  padding: 40px 16px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
}

@media (min-width: 768px) {
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-links a {
  font-size: 13px;
  color: var(--text-mid);
  padding: 4px 0;
  transition: color 0.2s ease;
}

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

.footer-backtotop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid rgba(138, 148, 166, 0.4);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-backtotop:hover {
  color: var(--text);
  border-color: var(--text-mid);
}

.footer-disclaimer {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 640px;
}

.footer-contact {
  font-size: 12px;
  color: rgba(138, 148, 166, 0.6);
}

.footer-copy {
  font-size: 12px;
  color: rgba(138, 148, 166, 0.5);
}
