.footer-section-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #0f0f11;
}

[data-theme="light"] .footer-section-container {
    background: rgba(255, 255, 255, 0.8);
}

section#footer {
    width: 100%;
    min-height: auto;
    padding: 0;
    z-index: 1;
}

.auth-footer,
.page-home .site-footer {
    width: min(1200px, calc(100% - 3rem));
    margin-inline: auto;
}

.auth-footer-content,
.page-home .site-footer-main {
    display: grid;
    gap: 3rem;
    padding-block: 60px 40px;
}

.auth-footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
}

.page-home .site-footer-main {
    grid-template-columns: minmax(260px, 1.15fr) minmax(0, 1.85fr);
}

.page-home .site-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: clamp(2rem, 4vw, 4rem); 
    width: 100%;
}


.footer-section h4,
.page-home .site-footer-column h2 {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-section ul,
.page-home .site-footer-column ul {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-home .site-footer-column ul {
    gap: 0.72rem;
}

.footer-section a,
.page-home .site-footer-column a {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease-out;
}

.page-home .site-footer-column a {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
    transition-property: color;
    transition-duration: 0.18s;
}

.footer-section a:hover,
.page-home .site-footer-column a:hover {
    color: var(--text-primary, white);
}

.footer-section .footer-brand-note,
.page-home .site-footer-brand p {
    max-width: 29ch;
    margin: 1.15rem 0 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.page-home .site-footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-credentials {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--text-muted);
}

.site-footer-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.site-footer-brand-mark {
    display: block;
    width: 3.04rem;
    height: 1.75rem;
    flex: 0 0 auto;
    background-color: var(--accent);
    -webkit-mask: url('../../assets/brand/codeak-mark.png') center / contain no-repeat;
    mask: url('../../assets/brand/codeak-mark.png') center / contain no-repeat;
    transition: background-color 0.3s ease-out;
}

.site-footer-brand-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent);
    transition: color 0.3s ease-out;
}

.site-footer-brand-lockup:hover .site-footer-brand-mark {
    background-color: var(--accent-hover);
}

.site-footer-brand-lockup:hover .site-footer-brand-name {
    color: var(--accent-hover);
}

.footer-bottom,
.page-home .site-footer-bottom {
    margin-top: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
    color: var(--text-muted);
    padding-bottom: 30px;
}

.footer-bottom p,
.page-home .site-footer-bottom p {
    margin: 0;
}

.page-home .site-footer-brand {
    align-self: start;
}

.page-home .site-footer-contact a {
    overflow-wrap: anywhere;
}

.site-footer-brand-lockup:focus-visible,
.page-home .site-footer-column a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 150%);
    width: min(720px, calc(100% - 2rem));
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 12px 32px var(--shadow);
    z-index: 99999;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-show {
    transform: translate(-50%, 0);
}

.cookie-banner-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.cookie-banner-text a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-banner-text a:hover {
    color: var(--accent-hover);
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    text-align: center;
    min-width: 170px;
}

.cookie-btn-primary {
    background: var(--gradient-1);
    color: #0a0a0a;
}

.cookie-btn-primary:hover {
    opacity: 0.9;
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cookie-btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-light);
}

@media (min-width: 3000px) {
    .cookie-banner {
        width: min(1300px, calc(100% - 4rem)); 
        bottom: 48px;
        padding: 40px 48px;
        border-radius: 24px;
    }

    .cookie-banner-content {
        gap: 60px;
    }

    .cookie-banner-text p {
        font-size: 1.35rem; 
        line-height: 1.6;
    }

    .cookie-banner-actions {
        gap: 12px;
    }

    .cookie-btn {
        padding: 16px 32px;
        font-size: 1.2rem;
        border-radius: 12px;
        min-width: 240px;
    }
}

@media (max-width: 900px) {
    .auth-footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }
    .auth-footer-content .footer-section:first-child {
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    .page-home .site-footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .page-home .site-footer-brand {
        border-bottom: 1px solid var(--border);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
    }
    .legal-credentials {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem 0.8rem;
        margin-top: 0.75rem;
    }
    .page-home .site-footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        width: 100%;
    }
    .page-home .site-footer-links .site-footer-column ul,
    .page-home .site-footer-links .site-footer-navigation ul {
        display: flex;
        flex-direction: column;
        gap: 0.72rem;
    }
}


@media (max-width: 768px) {
    .auth-footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .auth-footer-content .footer-section:first-child {
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1rem;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-section .footer-brand-note {
        max-width: 100%;
    }

    .legal-credentials {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem 0.8rem;
        margin-top: 0.75rem;
    }
    
    .page-home .site-footer-brand {
        border-bottom: 1px solid var(--border);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        width: 100%;
    }

    .page-home .site-footer-links {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }

    .page-home .site-footer-links .site-footer-column ul,
    .page-home .site-footer-links .site-footer-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.72rem !important;
    }
}


@media (max-width: 600px) {
    .page-home .site-footer {
        width: min(100% - 2rem, 1200px);
    }
    .page-home .site-footer-main {
        gap: 2.5rem;
        padding-block: 2.5rem;
    }
    .page-home .site-footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem 1.5rem;
        width: 100%;
    }
    .page-home .site-footer-navigation {
        grid-column: auto;
    }
    .page-home .site-footer-column {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding-left: 2rem;
    }
    .page-home .site-footer-navigation.site-footer-column {
        padding-left: 0;
    }
    .page-home .site-footer-contact {
        grid-column: 1 / -1;
        margin-top: 1rem;
        padding-left: 0;
    }
    .page-home .site-footer-links .site-footer-column ul,
    .page-home .site-footer-links .site-footer-navigation ul {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        width: 100%;
        align-items: flex-start;
    }
    .page-home .site-footer-column a {
        min-height: 2rem;
        display: block;
    }
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cookie-banner-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}


@media (max-width: 480px) {
    .auth-footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    .auth-footer-content .footer-section:nth-child(3) {
        padding-inline-start: 0;
    }
    .auth-footer-content,
    .page-home .site-footer-main {
        padding-block: 40px 28px;
    }
    .footer-section h4 {
        margin: 0 0 0.75rem;
    }
    .footer-section ul {
        gap: 0.5rem;
    }
}

@media (max-width: 420px) {
    .page-home .site-footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .page-home .site-footer-navigation {
        grid-column: auto;
    }
    .page-home .site-footer-navigation ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
