/* ==========================================================
   Legal: cookie-баннер, чекбоксы согласия, юр. блок футера
   ========================================================== */

/* ---- Cookie-баннер ---- */
.lks-cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 22px;
    background: #140c07;
    border: 1px solid #362317;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    color: #d4cac1;
    font: 400 14px/1.6 'Inter', sans-serif;
}

.lks-cookie-banner p { margin: 0; flex: 1 1 380px; }

.lks-cookie-banner a {
    color: #ff9e5e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lks-cookie-banner a:hover { color: #ffc79e; }

.lks-cookie-accept {
    flex: 0 0 auto;
    padding: 10px 30px;
    border: 0;
    border-radius: 8px;
    background: #ff7a22;
    color: #fff;
    font: 600 14px/1 'Inter', sans-serif;
    cursor: pointer;
    transition: background .2s ease;
}

.lks-cookie-accept:hover { background: #ff9040; }

.lks-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.lks-cookie-reject {
    flex: 0 0 auto;
    padding: 10px 26px;
    border: 1px solid #6b4a30;
    border-radius: 8px;
    background: transparent;
    color: #d4cac1;
    font: 600 14px/1 'Inter', sans-serif;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.lks-cookie-reject:hover { border-color: #ff9e5e; color: #ffc79e; }

.lks-cookie-settings-btn {
    padding: 10px 6px;
    border: 0;
    background: transparent;
    color: #ff9e5e;
    font: 600 14px/1 'Inter', sans-serif;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.lks-cookie-settings-btn:hover { color: #ffc79e; }

.lks-cookie-settings-link {
    color: #ff9e5e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lks-cookie-settings-link:hover { color: #ffc79e; }

.lks-cookie-details-wrap { flex: 1 1 100%; }

.lks-cookie-details {
    display: grid;
    gap: 10px;
    margin: 4px 0 12px;
    padding-top: 12px;
    border-top: 1px solid #362317;
}

.lks-cookie-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.lks-cookie-detail input {
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: #ff7a22;
    cursor: pointer;
}

.lks-cookie-detail input:disabled { cursor: default; }

/* Модальное окно настроек cookie (выбор можно изменить в любой момент) */
.lks-cookie-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .55);
}

.lks-cookie-dialog {
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    padding: 20px 22px;
    background: #140c07;
    border: 1px solid #362317;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    color: #d4cac1;
    font: 400 14px/1.6 'Inter', sans-serif;
}

.lks-cookie-dialog h3 { margin: 0 0 8px; font-size: 17px; color: #fff; }

.lks-cookie-dialog p { margin: 0 0 12px; }

.lks-cookie-dialog a {
    color: #ff9e5e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lks-cookie-dialog a:hover { color: #ffc79e; }

@media (max-width: 600px) {
    .lks-cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
    .lks-cookie-actions { width: 100%; }
    .lks-cookie-actions .lks-cookie-accept,
    .lks-cookie-actions .lks-cookie-reject { flex: 1 1 auto; }
}

/* ---- Чекбокс согласия в формах ---- */
.lks-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
    color: inherit;
    font: 400 13px/1.5 'Inter', sans-serif;
    opacity: .85;
}

.lks-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: #ff7a22;
    cursor: pointer;
}

.lks-consent a {
    color: #ff7a22;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lks-consent a:hover { color: #ff9e5e; }

/* ---- Юр. блок в футере ---- */
.lks-info-footer-legal {
    max-width: 1240px;
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid #362317;
    font-size: 13px;
}

.lks-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 12px;
}

.lks-info-footer-legal p { margin: 0 0 8px; }

.lks-legal-note { opacity: .65; font-size: 12px; }
