/* ==========================================================================
   LANDING PAGE: FOOTER
   ========================================================================== */

.landing-footer {
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

/* Основные ссылки (Статьи, Новости...) */
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Юридические ссылки */
.footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Разделитель между юридическими ссылками */
.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    position: relative;
    padding-right: 16px; /* Место для разделителя */
}

.footer-legal a::after {
    content: '|';
    position: absolute;
    right: 0;
    color: var(--border);
}

.footer-legal a:last-child::after {
    display: none; /* У последней ссылки нет разделителя */
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* Копирайт */
.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

/* Кнопка переключения темы */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-card-active);
    color: var(--accent);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s, opacity 0.3s;
}

/* По умолчанию (темная тема) показываем солнце (чтобы включить свет), прячем луну */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

/* В светлой теме показываем луну (чтобы включить тьму), прячем солнце */
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }