/* ═══════════════════════════════════════════════════════════════
   ORTAK SİTE FOOTER'I — <footer id="site-footer" class="sf">

   İşaretleme elle yazılmaz: scripts/build-footer.js şablondan üretip
   footer'lı tüm sayfalara (index + statik sayfalar) aynı biçimde basar.
   Bu dosya da o sayfaların hepsinde yüklenir (statik sayfalar bundle.css
   yüklemediği için stil burada, tek yerde).

   Düzen bir container query'ye bağlı, viewport'a değil: index.html'in
   mobil kabuğu masaüstünde de ~414px'lik sütunda açılabiliyor.
     dar (≤768px): ikonlar ortalı üstte, 5 başlık tam genişlik satırlar,
                   en altta telif.
     geniş:        solda 5 başlık yan yana, sağda ikonlar, altta telif.

   Dil: TR/EN etiketlerin ikisi de işaretlemede; html[lang] (i18n.js ve
   i18n-core.js ikisi de ayarlar) hangisinin görüneceğini seçer. JS yok.

   Tüm seçiciler #site-footer.sf ile başlar: statik sayfaların global
   p/a/h kuralları ve bundle.css'teki eski #site-footer kuralları
   buraya sızmasın.
   ═══════════════════════════════════════════════════════════════ */

#site-footer.sf {
    display: block;
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    padding: 28px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    flex-shrink: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #8a8a8a;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    container-type: inline-size;
    container-name: sf;
}

#site-footer.sf *,
#site-footer.sf *::before,
#site-footer.sf *::after { box-sizing: border-box; }

html:not([lang="en"]) #site-footer.sf .sf-en,
html[lang="en"] #site-footer.sf .sf-tr { display: none; }

#site-footer.sf .sf-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

#site-footer.sf .sf-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
}

#site-footer.sf .sf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    color: #b5b5b5;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

#site-footer.sf .sf-link:first-child { margin-left: -12px; }

#site-footer.sf .sf-chev { display: none; flex-shrink: 0; color: #555; }

#site-footer.sf .sf-social {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

#site-footer.sf .sf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    color: #9a9a9a;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

#site-footer.sf .sf-icon svg { width: 20px; height: 20px; display: block; }

#site-footer.sf .sf-link:hover,
#site-footer.sf .sf-icon:hover {
    color: #ff4655;
    background: rgba(255, 70, 85, 0.08);
}

#site-footer.sf .sf-link:focus-visible,
#site-footer.sf .sf-icon:focus-visible {
    outline: 2px solid #ff4655;
    outline-offset: 2px;
    color: #fff;
}

#site-footer.sf .sf-disclaimer {
    max-width: 1000px;
    margin: 16px auto 0;
    padding: 0;
    color: #8a8a8a; /* #0d0d0d zeminde ~5.6:1 */
    font-size: 0.68rem;
    line-height: 1.5;
    text-align: left;
}

/* "Yasal" / "Legal" bağlantısı: soluk gri üzerinde belirgin (açık gri + alt çizgi), hover kırmızı, odak halkası. */
#site-footer.sf .sf-disclaimer a {
    color: #c4c4c4;
    text-decoration: underline;
    text-underline-offset: 2px;
    border-radius: 2px;
}

#site-footer.sf .sf-disclaimer a:hover { color: #ff4655; }

#site-footer.sf .sf-disclaimer a:focus-visible {
    outline: 2px solid #ff4655;
    outline-offset: 2px;
    color: #fff;
}

#site-footer.sf .sf-copy {
    max-width: 1000px;
    margin: 18px auto 0;
    padding: 0;
    color: #555;
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: left;
}

@container sf (max-width: 768px) {
    #site-footer.sf .sf-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    #site-footer.sf .sf-social { order: -1; justify-content: center; }
    #site-footer.sf .sf-nav { flex-direction: column; flex-wrap: nowrap; gap: 0; }
    #site-footer.sf .sf-link {
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.9rem;
    }
    #site-footer.sf .sf-link:first-child { margin-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
    #site-footer.sf .sf-chev { display: block; }
    #site-footer.sf .sf-copy { margin-top: 16px; text-align: center; }
    #site-footer.sf .sf-disclaimer { text-align: center; }
}

/* index.html pc-mode: uygulama kabı yalnızca ≤800px yükseklikte çerez bandı kadar kısalıyor
   (bundle.css); daha uzun ekranda telif satırı bandın altında kalmasın. Mobil kabuk zaten kısalıyor. */
@media (min-height: 801px) {
    body.pc-mode.has-cookie-banner #site-footer.sf {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--cookie-banner-h, 0px));
    }
}

body.light-theme #site-footer.sf { border-top-color: #e5e5e5; color: #666; }
body.light-theme #site-footer.sf .sf-link,
body.light-theme #site-footer.sf .sf-icon { color: #555; }
body.light-theme #site-footer.sf .sf-copy { color: #999; }
body.light-theme #site-footer.sf .sf-disclaimer { color: #666; }
body.light-theme #site-footer.sf .sf-disclaimer a { color: #333; }

/* s2gdle.entrywordle.com: backend/s2gdle-ssr.js tanıtım metninin altına eski tek satırlık telif/bağlantı
   satırını (.s2g-foot) basıyor. Tek footer kalsın diye gizlenir; backend deploy'unda satır koddan da silinebilir. */
#s2g-about .s2g-foot { display: none; }

/* ═══════════════════════════════════════════════════════════════
   ALT SAYFA LOGOSU — <a class="topbar-logo" href="/">entrywordle</a>

   index.html'in üst bar logosuyla aynı sınıf ve değerler (bundle.css
   .topbar-logo). Statik sayfalar bundle.css yüklemediği için kural bu
   ortak dosyada; alt sayfaların logosu buradan tek yerden güncellenir.
   index'teki logo değişirse bu blok da aynı değerlerle değiştirilmeli.
   font-family açık yazıldı: yasal sayfaların .logo/başlık fontu
   (Space Grotesk) buraya miras kalmasın, index gibi Inter olsun.
   ═══════════════════════════════════════════════════════════════ */
a.topbar-logo {
    color: var(--red, #ff4655);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 1.45rem;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.4);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

a.topbar-logo:focus-visible { outline: 2px solid #ff4655; outline-offset: 4px; border-radius: 4px; }

/* Yasal/yer tutucu sayfaların üst satırı (logo + TR/EN + Ana Sayfaya Dön) dar telefonda tek satıra sığsın. */
@media (max-width: 420px) {
    header > a.topbar-logo { font-size: 1.05rem; letter-spacing: 0.5px; }
    header > div { gap: 6px !important; }
    header .back-btn { padding: 6px 8px; font-size: 0.72rem; white-space: nowrap; }
}
