/*
 * legal.css — GDPR-елементи: cookie-банер, чекбокс згоди у формі,
 * посилання на політику у футері, стилі сторінки privacy.html.
 * Підключається на всіх сторінках.
 */

/* ── Cookie-банер ─────────────────────────────────────────────────────── */

#cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    z-index: 998;
    max-width: 680px;
    width: calc(100% - 40px);
    background: #18273A;
    color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(24, 39, 58, 0.35);
    padding: 20px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s;
}

#cookie-banner.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

#cookie-banner p {
    margin: 0;
    font-family: "Gotham Pro Regular", Arial, sans-serif;
    font-size: 14px;
    line-height: 150%;
}

#cookie-banner a {
    color: #D4A365;
}

#cookie-banner .cookie-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-shrink: 0;
}

#cookie-banner button {
    border-radius: 5px;
    font-family: "Gotham Pro Regular", Arial, sans-serif;
    font-size: 14px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

#cookie-banner .cookie-accept {
    background: #D4A365;
    border: 1px solid #D4A365;
    color: #18273A;
}

#cookie-banner .cookie-accept:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
}

#cookie-banner .cookie-decline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

#cookie-banner .cookie-decline:hover {
    border-color: #FFFFFF;
}

@media only screen and (max-width: 600px) {
    #cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 14px;
        bottom: 12px;
    }

    #cookie-banner .cookie-actions {
        justify-content: center;
    }
}

/* ── Чекбокс згоди у формі ────────────────────────────────────────────── */

.form-screen form #consent-row {
    justify-content: center;
}

.form-screen form #consent-row label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: "Gotham Pro Regular", Arial, sans-serif;
    font-size: 14px;
    color: #253C59;
}

.form-screen form #consent-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #D4A365;
    cursor: pointer;
    flex-shrink: 0;
}

.form-screen form #consent-row a {
    color: #D4A365;
}

/* ── Посилання на політику у футері ───────────────────────────────────── */

#privacy-footer-link {
    display: block;
    text-align: center;
    margin: 30px 0 0 0;
    font-family: "Gotham Pro Regular", Arial, sans-serif;
    font-size: 14px;
    color: #8a94a3;
    text-decoration: none;
    transition: color 0.3s;
}

#privacy-footer-link:hover {
    color: #D4A365;
}

/* На планшетах і мобільних футер складається в колонку з фіксованою висотою,
   через що посилання накладалося на меню — розтягуємо футер по контенту */
@media only screen and (max-width: 999px) {
    footer {
        height: auto !important;
        gap: 40px;
    }

    footer #footer-content {
        height: auto !important;
    }

    #privacy-footer-link {
        margin: 0;
    }
}

/* ── Сторінка privacy.html ────────────────────────────────────────────── */

#privacy-block {
    margin: 60px 0 0 0;
    color: #253C59;
}

#privacy-block .privacy-content {
    max-width: 860px;
    margin: 40px 0 0 0;
}

#privacy-block .privacy-updated {
    font-family: "Gotham Pro Regular", Arial, sans-serif;
    font-size: 14px;
    opacity: 0.6;
    margin: 10px 0 0 0;
}

#privacy-block h2 {
    font-family: "Gotham Pro Medium Regular", Arial, sans-serif;
    font-size: 22px;
    margin: 44px 0 0 0;
}

#privacy-block p, #privacy-block li {
    font-family: "Gotham Pro Regular", Arial, sans-serif;
    font-size: 16px;
    line-height: 165%;
    margin: 14px 0 0 0;
}

#privacy-block ul {
    margin: 8px 0 0 0;
    padding-left: 24px;
}

#privacy-block a {
    color: #D4A365;
}
