/* frostyh.com footer v4 (2026-12-01) for the docs, legal and licence pages: on top of site3.css .f3.
   A black call-to-action card inside the white panel, Panchang headline, Public Sans text (Fonts 2026-12-01). */
@font-face { font-family: "Panchang"; font-style: normal; font-weight: 200 800; font-display: swap; size-adjust: 80%; src: url(/assets/fonts/Panchang-Variable.woff2) format("woff2") }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/PublicSans-VF-latin.woff2) format("woff2") }

.f4 { --t3-body: 'Public Sans', 'Satoshi', system-ui, sans-serif; --t3-display: 'Panchang', 'Clash Display', sans-serif; --f4-out: cubic-bezier(.22, 1, .36, 1); font-family: var(--t3-body) }
.f4::after { font-size: clamp(64px, 15vw, 250px) }
.f4 .f3-wm { font-size: clamp(24px, 2.4vw, 32px) }

.f4-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px clamp(20px, 3vw, 40px); margin-bottom: clamp(36px, 4vw, 56px); padding: clamp(22px, 3vw, 36px); border-radius: 18px; background: #101318; color: #f2f3f5 }
.f4-mk { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; background: #1d2128 }
.f4-mk .mk3 { width: 44px; height: 44px; color: #fff; --fg: #101318 }
.f4-mk img { width: 52px; height: 52px; border-radius: 12px }
.f4-txt h2 { margin: 0; font: 600 clamp(20px, 2.3vw, 30px)/1.12 var(--t3-display); letter-spacing: 0; text-wrap: balance; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35) }
.f4-txt p { margin: 10px 0 0; max-width: 58ch; font-size: 15px; line-height: 1.55; color: #a9afb9 }
.f4-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px }
.f4 .f4-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 12px; background: #262b33; color: #fff !important; font: 600 14.5px var(--t3-body); white-space: nowrap; transition: background-color .2s linear }
.f4 .f4-btn:hover { background: #323843 }
.f4 .f4-btn.is-main { background: #fff; color: #101318 !important }
.f4 .f4-btn.is-main:hover { background: #e4e6ea }
.f4 .f4-btn.is-quiet { background: none; padding: 0 8px; color: #c9ced6 !important }
.f4 .f4-btn.is-quiet:hover { color: #fff !important }
.f4-btn svg { width: 18px; height: 18px; transition: transform .35s var(--f4-out) }
.f4-btn:hover svg { transform: translateX(3px) }
.f4 .f3-top svg { fill: currentColor; stroke: none }

/* links: a line draws under the hovered link (no sideways nudge) */
.f4 .fc a { translate: none !important; background-image: linear-gradient(currentColor, currentColor) !important; background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; padding-bottom: 2px; transition: color .2s linear, background-size .35s var(--f4-out) }
.f4 .fc a:hover { background-size: 100% 1px }
.f4 .f3-main { grid-template-columns: minmax(0, 1fr) }

body:has(> .n3[data-n3="dark"]) .f4-cta { background: #f2f3f5; color: #101318 }
body:has(> .n3[data-n3="dark"]) .f4-mk { background: #e2e4e8 }
body:has(> .n3[data-n3="dark"]) .f4-txt h2 { color: #101318; text-shadow: none }
body:has(> .n3[data-n3="dark"]) .f4-txt p { color: #4b515b }
body:has(> .n3[data-n3="dark"]) .f4 .f4-btn { background: #e2e4e8; color: #101318 !important }
body:has(> .n3[data-n3="dark"]) .f4 .f4-btn.is-main { background: #101318; color: #fff !important }

@media (max-width: 960px) {
  .f4-cta { grid-template-columns: auto minmax(0, 1fr) }
  .f4-acts { grid-column: 1 / -1; justify-content: flex-start }
}
@media (max-width: 720px) {
  .f4-cta { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 18px }
  .f4-mk { width: 56px; height: 56px; border-radius: 14px } .f4-mk .mk3 { width: 34px; height: 34px } .f4-mk img { width: 40px; height: 40px }
  .f4-acts { display: grid; grid-template-columns: minmax(0, 1fr) }
  .f4 .f4-btn { min-height: 52px; justify-content: space-between }
  .f4 .f4-btn.is-quiet { justify-content: center }
  .f4 .fc-b li > a { display: flex; align-items: center; min-height: 44px; padding-bottom: 0; background-position: 0 calc(100% - 10px) }
  .f4 .fc-h { min-height: 56px }
  .f4 .f3-soc a { width: 44px; height: 44px }
  .f4 .f3-top { height: 44px }
  .f4 .f3-legal a { display: inline-flex; align-items: center; min-height: 44px }
}
@media (prefers-reduced-motion: reduce) { .f4 *, .f4 .fc a { transition: none !important } }
