/* Cookie banner, footer legal links and privacy page */

.cookie-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 1100;
    box-sizing: border-box;
    max-width: 640px;
    max-height: 70vh;
    margin: 0 auto 0 0;
    overflow-y: auto;
    padding: 18px 20px;
    border: 2px solid #c77b4a;
    border-radius: 8px;
    background: #101d2b;
    color: #f5f6f7;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-title {
    margin: 0 0 8px;
    color: #f5f6f7;
    font-size: 18px;
    line-height: 1.3;
}

.cookie-banner-title:focus {
    outline: none;
}

.cookie-banner-text {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #f5f6f7;
    text-decoration: underline;
}

.cookie-banner-status {
    margin: 0 0 12px;
    color: #e0a67f;
    font-size: 13px;
    font-weight: 700;
}

.cookie-banner-status:empty {
    display: none;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Accept and Reject share exactly the same styling. */
.cookie-btn {
    flex: 1 1 150px;
    min-height: 48px;
    padding: 12px 18px;
    border: 2px solid #c77b4a;
    border-radius: 4px;
    background: #f5f6f7;
    color: #101d2b;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.cookie-btn:hover {
    background: #fff;
}

.cookie-btn:focus-visible,
.cookie-banner-text a:focus-visible,
.cookie-prefs-link:focus-visible,
.footer-legal a:focus-visible {
    outline: 3px solid #e0a67f;
    outline-offset: 3px;
}

body.cookie-banner-open .whatsapp-float {
    visibility: hidden;
}

/* Footer links */
.footer-legal {
    margin: 0;
    font-size: 13px;
}

.footer-legal a,
.cookie-prefs-link {
    display: inline-block;
    padding: 6px 2px;
    border: 0;
    background: none;
    color: #f5f6f7;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.footer-legal a:hover,
.cookie-prefs-link:hover {
    color: #e0a67f;
}

@media (max-width: 760px) {
    .cookie-banner {
        right: 10px;
        left: 10px;
        max-height: calc(100vh - 150px);
    }

    /* Sit above the fixed mobile contact bar (about 72px tall). */
    body.has-contact-bar .cookie-banner {
        bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        flex: none;
    }

    .footer-legal a,
    .cookie-prefs-link {
        min-height: 44px;
        padding: 12px 6px;
    }
}

/* Privacy page */
.privacy-page {
    padding: 48px 0 64px;
    background: #fff;
    color: #101d2b;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

.privacy-page h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.2;
}

.privacy-page h2 {
    margin: 36px 0 10px;
    padding-top: 6px;
    border-top: 3px solid #c77b4a;
    font-size: 22px;
}

.privacy-page p,
.privacy-page li {
    max-width: 72ch;
    font-size: 16px;
}

.privacy-page a {
    color: #a9643a;
    font-weight: 700;
}

.privacy-updated {
    color: #5d6874;
    font-size: 14px;
}

.privacy-summary {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid #c77b4a;
    background: #f5f6f7;
}

.privacy-summary p {
    margin: 0;
}

.placeholder {
    padding: 1px 6px;
    border: 1px dashed #a9643a;
    border-radius: 3px;
    background: #fff3e8;
    font-weight: 700;
}

.privacy-table {
    width: 100%;
    max-width: 860px;
    border-collapse: collapse;
    font-size: 15px;
}

.privacy-table th,
.privacy-table td {
    padding: 10px 12px;
    border: 1px solid #d5dae0;
    text-align: left;
    vertical-align: top;
}

.privacy-table th {
    background: #f5f6f7;
}

@media (max-width: 760px) {
    .privacy-page {
        padding: 32px 0 48px;
    }

    .privacy-page h1 {
        font-size: 28px;
    }

    .privacy-table {
        display: block;
        overflow-x: auto;
    }
}
