/* =========================================
   SITE FOOTER
========================================= */

.site-footer {
    margin-top: 200px;
    width: 100%;
    background: #fafafa;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 24px 40px;
    font-size: 13px;
    color: #555;
    box-sizing: border-box;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer-copy {
    color: #777;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer-links a,
.site-footer-links button {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.site-footer-links a:hover,
.site-footer-links button:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 20px 16px;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .site-footer-links {
        justify-content: center;
        gap: 14px;
    }
}

/* =========================================
   MODALS — SHARED BASE
========================================= */

.cookie-modal-overlay,
.policy-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.cookie-modal-overlay.active,
.policy-modal-overlay.active {
    display: flex;
}

.cookie-modal,
.policy-modal {
    background: white;
    width: 100%;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cookie-modal {
    max-width: 480px;
}

.policy-modal {
    max-width: 640px;
}

/* =========================================
   POLICY MODAL CONTENT
========================================= */

.policy-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    padding: 0;
}

.policy-modal-close:hover {
    color: #111;
}

.policy-modal h3 {
    margin-bottom: 4px;
    font-size: 20px;
    color: #111;
    padding-right: 30px;
}

.policy-meta {
    color: #999;
    font-size: 12px;
    margin-bottom: 18px;
}

.policy-modal h4 {
    font-size: 14px;
    color: #111;
    margin-top: 16px;
    margin-bottom: 6px;
}

.policy-modal p,
.policy-modal li {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.policy-modal ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

/* =========================================
   COOKIE PREFERENCES MODAL
========================================= */

.cookie-modal h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: #111;
}

.cookie-modal > p {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    gap: 14px;
}

.cookie-option:last-of-type {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.cookie-option-text strong {
    display: block;
    color: #111;
    font-size: 14px;
    margin-bottom: 4px;
}

.cookie-option-text span {
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    transition: background 0.2s;
    border-radius: 22px;
}

.cookie-toggle-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background: white;
    transition: transform 0.2s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--brand-primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(18px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-modal-actions button {
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.cookie-cancel-btn {
    background: #eee;
    color: #333;
}

.cookie-save-btn {
    background: var(--brand-primary);
    color: white;
}
