/*
 * Footer — a compact "künye" panel that follows the site surfaces, borders,
 * typography and accent instead of carrying a separate dark palette.
 */

.site-footer.sf-footer {
    --sf-bg: var(--surface);
    --sf-fg: var(--ink);
    --sf-muted: var(--muted);
    --sf-dim: color-mix(in oklab, var(--muted) 78%, transparent);
    --sf-line: var(--line);
    --sf-line-soft: color-mix(in oklab, var(--line) 72%, transparent);
    --sf-wash: var(--sunk);
    --sf-gap: 3.5rem;
    container: sf-footer / inline-size;
    margin-top: var(--sp-7);
    padding: 0;
    border-top: 0;
    background: transparent;
    color: var(--sf-muted);
    font-size: var(--fs-s);
}

.site-footer.sf-footer a {
    text-decoration: none;
}

.site-footer.sf-footer .sf-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sf-line);
    border-radius: 0;
    background: var(--sf-bg);
    color: var(--sf-fg);
    box-shadow: 0 24px 56px -54px rgb(14 20 36 / 0.45);
}

.site-footer.sf-footer .sf-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--accent) 0%,
        color-mix(in oklab, var(--accent) 45%, transparent) 46%,
        transparent 88%
    );
}

.site-footer.sf-footer :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

.site-footer.sf-footer .sf-main {
    padding: 2.2rem 2.5rem 2rem;
}

.site-footer.sf-footer .sf-secondary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem var(--sf-gap);
    min-width: 0;
}

.site-footer.sf-footer .sf-col {
    min-width: 0;
}

.site-footer.sf-footer .sf-main h2,
.site-footer.sf-footer .sf-legal h2 {
    margin: 0;
    color: var(--sf-fg);
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-footer.sf-footer .sf-main h2::before {
    content: "";
    display: block;
    width: 1.4rem;
    height: 2px;
    margin-bottom: 0.7rem;
    border-radius: 2px;
    background: var(--accent);
}

.site-footer.sf-footer .sf-col > h2 {
    margin-bottom: 0.5rem;
}

.site-footer.sf-footer .sf-links,
.site-footer.sf-footer .sf-legal ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer.sf-footer .sf-links {
    display: grid;
}

.site-footer.sf-footer .sf-links a,
.site-footer.sf-footer .sf-links .sf-consent {
    display: flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sf-muted);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.28em;
    cursor: pointer;
    transition: color 0.18s, text-decoration-color 0.18s, transform 0.18s var(--ease-out);
}

.site-footer.sf-footer .sf-links a:hover,
.site-footer.sf-footer .sf-links a:focus-visible,
.site-footer.sf-footer .sf-links .sf-consent:hover,
.site-footer.sf-footer .sf-links .sf-consent:focus-visible {
    color: var(--accent);
    text-decoration-color: currentColor;
    transform: translateX(2px);
}

.site-footer.sf-footer .sf-legal {
    display: block;
    padding: 1.3rem 2.5rem 1.45rem;
    border-top: 1px solid var(--sf-line-soft);
}

.site-footer.sf-footer .sf-legal h2 {
    margin: 0 0 0.7rem;
    color: var(--sf-dim);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
}

.site-footer.sf-footer .sf-legal ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 var(--sf-gap);
}

.site-footer.sf-footer .sf-legal a,
.site-footer.sf-footer .sf-legal .sf-consent {
    display: inline-flex;
    align-items: center;
    min-height: 1.95rem;
    color: var(--sf-dim);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.26em;
    transition: color 0.18s, text-decoration-color 0.18s, transform 0.18s var(--ease-out);
}

.site-footer.sf-footer .sf-legal .sf-consent {
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.site-footer.sf-footer .sf-legal a:hover,
.site-footer.sf-footer .sf-legal a:focus-visible,
.site-footer.sf-footer .sf-legal .sf-consent:hover,
.site-footer.sf-footer .sf-legal .sf-consent:focus-visible {
    color: var(--sf-fg);
    text-decoration-color: currentColor;
    transform: translateX(2px);
}

.site-footer.sf-footer .sf-base {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0.85rem 2.5rem;
    border-top: 1px solid var(--sf-line-soft);
    background: var(--sf-wash);
}

.site-footer.sf-footer .sf-company {
    flex-basis: 100%;
    margin: 0;
    color: var(--sf-dim);
    font-size: 0.6875rem;
    line-height: 1.6;
}

.site-footer.sf-footer .sf-company strong {
    color: var(--sf-fg);
    font-weight: 650;
}

.site-footer.sf-footer .sf-company a {
    color: var(--sf-fg);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.site-footer.sf-footer .sf-copy {
    margin: 0;
    color: var(--sf-dim);
    font-size: 0.6875rem;
    line-height: 1.4;
}

.site-footer.sf-footer .sf-copy strong {
    color: var(--sf-fg);
    font-weight: 650;
}

.site-footer.sf-footer .sf-copy span {
    margin: 0 0.2rem;
    color: var(--sf-dim);
}

.site-footer.sf-footer .sf-base-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.site-footer.sf-footer .sf-base .theme-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--sf-line);
    border-radius: 999px;
    background: var(--sf-bg);
}

.site-footer.sf-footer .sf-base .theme-switch[hidden] {
    display: none;
}

.site-footer.sf-footer .sf-base .theme-switch button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.05rem;
    padding: 0 0.65rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--sf-muted);
    font: 600 0.6875rem/1 var(--font);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s, color 0.18s;
}

.site-footer.sf-footer .sf-base .theme-switch button:hover {
    background: var(--sf-wash);
    color: var(--sf-fg);
}

.site-footer.sf-footer .sf-base .theme-switch button[aria-pressed="true"] {
    background: var(--sf-fg);
    color: var(--sf-bg);
    box-shadow: none;
}

.site-footer.sf-footer .sf-base .theme-switch button[aria-pressed="true"]:hover {
    background: var(--sf-fg);
    color: var(--sf-bg);
}

.site-footer.sf-footer .sf-base .theme-switch .gi {
    width: 0.86rem;
    height: 0.86rem;
}

.site-footer.sf-footer .sf-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.05rem;
    padding: 0 0.85rem;
    border: 1px solid var(--sf-line);
    border-radius: 999px;
    background: var(--sf-bg);
    color: var(--sf-muted);
    font-size: 0.6875rem;
    font-weight: 650;
    white-space: nowrap;
    transition: border-color 0.18s, background-color 0.18s, color 0.18s, transform 0.18s var(--ease-out);
}

.site-footer.sf-footer .sf-top .gi {
    width: 0.85rem;
    height: 0.85rem;
}

.site-footer.sf-footer .sf-top:hover,
.site-footer.sf-footer .sf-top:focus-visible {
    border-color: var(--line-strong);
    background: var(--sf-wash);
    color: var(--sf-fg);
    transform: translateY(-2px);
}

@container sf-footer (max-width: 64rem) {
    .site-footer.sf-footer .sf-shell {
        --sf-gap: 2.5rem;
    }

    .site-footer.sf-footer .sf-main {
        padding: 1.9rem 2rem 1.8rem;
    }

    .site-footer.sf-footer .sf-secondary {
        gap: 1.25rem var(--sf-gap);
    }

    .site-footer.sf-footer .sf-legal {
        padding: 1.2rem 2rem 1.35rem;
    }

    .site-footer.sf-footer .sf-base {
        padding-inline: 2rem;
    }
}

@container sf-footer (min-width: 64rem) {
    .site-footer.sf-footer .sf-secondary,
    .site-footer.sf-footer .sf-legal ul {
        grid-template-columns: 16rem 18rem 13rem;
        justify-content: space-between;
        column-gap: 2rem;
    }
}

@container sf-footer (max-width: 47.99rem) {
    .site-footer.sf-footer .sf-shell {
        --sf-gap: 1.25rem;
    }

    .site-footer.sf-footer .wrap {
        max-width: none;
        padding-inline: 0;
    }

    .site-footer.sf-footer .sf-shell {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .site-footer.sf-footer .sf-main {
        padding: 1.4rem 1.25rem 1.5rem;
    }

    .site-footer.sf-footer .sf-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem var(--sf-gap);
    }

    .site-footer.sf-footer .sf-col-links {
        grid-column: 1 / -1;
    }

    .site-footer.sf-footer .sf-col-links .sf-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0 1.25rem;
    }

    .site-footer.sf-footer .sf-links a,
    .site-footer.sf-footer .sf-links .sf-consent {
        min-height: 2.5rem;
    }

    .site-footer.sf-footer .sf-legal {
        padding: 1.1rem 1.25rem 1.2rem;
    }

    .site-footer.sf-footer .sf-legal ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 var(--sf-gap);
    }

    .site-footer.sf-footer .sf-legal a {
        min-height: 2rem;
    }

    .site-footer.sf-footer .sf-base {
        padding: 0.85rem 1.25rem;
    }

    .site-footer.sf-footer .sf-base-actions {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer.sf-footer *,
    .site-footer.sf-footer *::before,
    .site-footer.sf-footer *::after {
        transition-duration: 0.01ms !important;
    }

    .site-footer.sf-footer .sf-links a,
    .site-footer.sf-footer .sf-links .sf-consent,
    .site-footer.sf-footer .sf-legal a,
    .site-footer.sf-footer .sf-top {
        transform: none !important;
    }
}


@media (max-width: 63.999rem) {
    .site-footer.sf-footer {
        margin-top: var(--sp-6);
    }
}
