/* ── Footer styles — canonical from index.html ── */

.flag {
  width: 28px; height: 19px;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 6px 14px -6px rgba(0,0,0,0.6);
}
.flag svg { display: block; width: 100%; height: 100%; }

/* ============ FOOTER ============ */
footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-top: clamp(3.5rem, 7vh, 5.5rem); padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-tag { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.92rem; margin: 1.4rem 0; max-width: 32ch; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.3rem; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.65); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--sky); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; font-size: 0.82rem; color: rgba(255,255,255,0.45); border-top: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-credit a { color: rgba(255,255,255,0.7); font-weight: 600; transition: color 0.2s ease; }
.footer-credit a:hover { color: var(--sky); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.45); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--white); }
.footer-copy-br { display: none; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.footer-social a svg { width: 19px; height: 19px; }
.footer-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}
.footer-langs { margin-top: 1.6rem; }
.footer-langs-label { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 0.7rem; }
.footer-flags { display: flex; gap: 0.45rem; }
.footer-mark { width: 42px; height: 42px; border-radius: 12px; }

/* ── Footer responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding-top: 1.75rem; }
  .footer-legal  { flex-direction: column; gap: 0.75rem; order: 1; }
  .footer-copy   { order: 2; }
  .footer-credit { order: 3; font-size: 0.72rem; opacity: 0.75; margin-top: 0.25rem; }
  .footer-copy-br { display: inline; }
  .footer-social { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .footer-social { flex-wrap: wrap; gap: 8px; }
  .footer-grid { gap: 1.75rem; }
}

@media (max-width: 375px) {
  .footer-social { flex-wrap: wrap; gap: 8px; }
  .footer-grid { gap: 1.5rem; }
  footer { padding-block: 2.5rem 2rem; }
}

@media (max-width: 320px) {
  .footer-social { flex-wrap: wrap; gap: 7px; }
  .footer-social a { width: 36px; height: 36px; }
  .footer-grid { gap: 1.25rem; }
  footer { padding-block: 2rem 1.5rem; }
  .footer-bottom { font-size: 0.75rem; }
}
