/* ------------------------------
   COOKIE CONSENT BANNER
   One slim bar across the page. It stays at the bottom of the
   screen while scrolling, and at the end of the page it settles
   below the footer instead of covering it.
------------------------------ */

/* Let the page grow with its content so the bar can stick */
body {
    height: auto;
    min-height: 100vh;
}

body .webmason-consent {
    order: 99; /* always last in the page, after the footer */
    position: sticky;
    bottom: 0;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    padding: 0.85rem 1.5rem;
    background-color: #111;
    color: #e8e2d6;
    border: 0;
    border-top: 3px solid #d4af37;
    border-radius: 0;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.18);
    font-family: 'Crimson Text', serif;
    font-size: 17px;
    line-height: 1.5;
    text-align: left;
}

body .webmason-consent-message {
    flex: 1 1 28rem;
    max-width: 60rem;
    margin: 0;
    color: inherit;
    font-size: inherit;
}

body .webmason-consent-privacy {
    color: #d4af37;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

body .webmason-consent-privacy:hover {
    color: #e6c766;
}

body .webmason-consent-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.75rem;
    margin: 0;
}

body .webmason-consent-button {
    display: inline-block;
    margin: 0;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body .webmason-consent-accept {
    background-color: #B68150;
    border: 1px solid #B68150;
    color: #fff;
}

body .webmason-consent-accept:hover {
    background-color: #0F6023;
    border-color: #0F6023;
    color: #fff;
}

body .webmason-consent-decline {
    background-color: transparent;
    border: 1px solid #8a8a8a;
    color: #e8e2d6;
}

body .webmason-consent-decline:hover {
    background-color: transparent;
    border-color: #d4af37;
    color: #fff;
}

body .webmason-consent-button:focus-visible,
body .webmason-consent-privacy:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    body .webmason-consent {
        padding: 0.75rem 1rem;
        font-size: 16px;
    }

    body .webmason-consent-actions {
        flex: 1 1 100%;
    }

    body .webmason-consent-button {
        flex: 1;
        text-align: center;
    }
}

/* ------------------------------
   FOOTER LEGAL LINKS
   Privacy Policy, Terms of Use, and Cookie settings
------------------------------ */
.legal-footer .legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-top: 0.75rem;
}

.legal-footer .legal-links a,
.legal-footer .legal-links button {
    display: inline;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: #d4af37;
    font: inherit;
    cursor: pointer;
}

.legal-footer .legal-links a:hover,
.legal-footer .legal-links button:hover {
    background: none;
    color: #e6c766;
    text-decoration: underline;
}
