/* The Bitikka footer: one footer for every public Bitikka page.
   GENERATED COPY. The source is ops/footer/footer.css; run `node ops/footer/build.mjs`
   after editing it. Every rule is scoped under .bf so a host page's own footer / a / h4
   rules never leak in, and the colours do not depend on the page's light or dark theme. */
.bf {
  --bf-ink: #0D0D0D;
  --bf-line: rgba(247, 245, 238, 0.14);
  --bf-text: #F7F5EE;
  --bf-muted: #B3B0A6;
  --bf-yellow: #FFD600;
  display: block;
  background: var(--bf-ink);
  color: var(--bf-text);
  font-family: "IBM Plex Sans Arabic", "Inter", "Cairo", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: start;
}
.bf *, .bf *::before, .bf *::after { box-sizing: border-box; }
.bf a { color: inherit; text-decoration: none; }
.bf p, .bf ul, .bf li { margin: 0; padding: 0; }
.bf-wrap { max-width: 1180px; margin: 0 auto; padding: 64px 24px 0; }

/* Top: brand + three link columns */
.bf-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.bf-logo { display: inline-flex; align-items: center; gap: 10px; direction: ltr; font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--bf-text); }
.bf-logo img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.bf-logo b { color: var(--bf-yellow); font-weight: 800; }
.bf-tagline { margin-top: 14px; max-width: 300px; color: var(--bf-muted); font-size: 0.95rem; }

.bf-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.bf-h { margin: 0 0 10px; font-family: "Inter", "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif; font-size: 0.78rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bf-yellow); }
.bf-col a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 0; color: var(--bf-muted); font-size: 0.93rem; transition: color .15s ease; }
.bf-col a:hover, .bf-col a:focus-visible, .bf-col a[aria-current="page"] { color: var(--bf-text); }
.bf-col a[aria-current="page"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bf-yellow); flex: none; }
.bf a:focus-visible { outline: 2px solid var(--bf-yellow); outline-offset: 3px; border-radius: 4px; }
.bf-ltr { direction: ltr; unicode-bidi: isolate; }

.bf-social { display: flex; gap: 10px; margin-top: 12px; }
.bf .bf-social a { width: 40px; height: 40px; min-height: 0; padding: 0; justify-content: center; border: 1px solid var(--bf-line); border-radius: 50%; color: var(--bf-text); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.bf .bf-social a:hover, .bf .bf-social a:focus-visible { background: var(--bf-yellow); border-color: var(--bf-yellow); color: var(--bf-ink); }
.bf-social svg { width: 18px; height: 18px; display: block; }

/* Bottom bar: copyright, then the three legal pages */
.bf-bottom { padding: 20px 0 28px; border-top: 1px solid var(--bf-line); color: var(--bf-muted); font-size: 0.84rem; }
.bf-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; list-style: none; }
.bf-legal a { display: inline-block; padding: 6px 0; }
.bf-legal a:hover, .bf-legal a:focus-visible { color: var(--bf-text); }
.bf-copy { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Tablet: the brand on its own row, the three columns under it */
@media (max-width: 900px) {
  .bf-grid { grid-template-columns: repeat(3, 1fr); }
  .bf-brand { grid-column: 1 / -1; }
}
/* Phone: two link columns side by side, contact under them at full width */
@media (max-width: 600px) {
  .bf-wrap { padding: 48px 16px 0; }
  .bf-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-bottom: 36px; }
  .bf-contact { grid-column: 1 / -1; }
  .bf-bottom { padding-bottom: 32px; }
}
