/* Cookie banner + legal pages */
.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 999;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background: rgba(6, 20, 38, .97);
    color: #fff;
    border: 1px solid rgba(248, 189, 8, .45);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 24px 70px rgba(4, 16, 31, .38);
    backdrop-filter: blur(12px);
}

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

.cookie-banner-copy strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 5px;
}

.cookie-banner-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
    line-height: 1.5;
}

.cookie-banner-copy a {
    display: inline-block;
    margin-top: 8px;
    color: var(--gold, #f8bd08);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.cookie-btn {
    min-height: 44px;
    border-radius: 999px;
    padding: 0 16px;
    font-weight: 900;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .22);
}

.cookie-btn.primary {
    background: var(--gold, #f8bd08);
    color: var(--navy, #061426);
    border-color: var(--gold, #f8bd08);
}

.cookie-btn.secondary {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.footer-link-button {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--gold, #f8bd08);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-align: right;
}

.legal-page-card {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line, #e5e9f2);
    border-radius: 24px;
    box-shadow: 0 16px 44px rgba(16, 24, 40, .08);
    padding: 34px;
}

.legal-copy p {
    color: #475467;
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 18px;
}

.legal-copy p:last-child {
    margin-bottom: 0;
}

.legal-action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line, #e5e9f2);
}

.secondary-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 17px;
    border: 1px solid var(--line, #e5e9f2);
    background: #fff;
    color: #101828;
    font-weight: 900;
    text-decoration: none;
}

.cookie-preference-card {
    margin-top: 26px;
    padding: 22px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid var(--line, #e5e9f2);
}

.cookie-preference-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -.03em;
}

.cookie-preference-card p {
    margin-bottom: 16px;
}

@media (max-width: 780px) {
    .cookie-banner {
        grid-template-columns: 1fr;
        left: 12px;
        right: 12px;
        bottom: 12px;
        border-radius: 18px;
    }

    .cookie-banner-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .cookie-btn {
        width: 100%;
    }

    .legal-page-card {
        padding: 22px;
        border-radius: 20px;
    }

    .legal-action-row {
        display: grid;
    }

    .legal-action-row a,
    .legal-action-row button {
        width: 100%;
    }

    .footer-link-button {
        text-align: left;
    }
}

.restore-button-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cms-panel-note {
    margin: 6px 0 0;
    color: #667085;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 780px) {
    .restore-button-row {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* Cleaner footer legal links - replaces vertical legal link stack */
.site-footer.clean-footer {
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: center;
}

.site-footer.clean-footer .footer-copy-block {
    min-width: 0;
}

.site-footer.clean-footer .footer-contact-block {
    display: grid;
    gap: 6px;
    text-align: right;
    color: var(--gold, #f8bd08);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 11px;
    margin-top: 12px;
    font-size: 14px;
}

.footer-legal a,
.footer-legal .footer-link-button {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.4;
}

.footer-legal a:hover,
.footer-legal .footer-link-button:hover {
    color: var(--gold, #f8bd08);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal span {
    color: rgba(255, 255, 255, .26);
    font-weight: 900;
}

.footer-legal .footer-link-button {
    text-align: left;
}

/* Better formatted Terms page */
.legal-copy h2 {
    margin: 30px 0 12px;
    color: #101828;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.03em;
}

.legal-copy h2:first-child {
    margin-top: 0;
}

.legal-copy .legal-bullet {
    position: relative;
    margin: 0 0 8px 22px;
    padding-left: 14px;
    color: #475467;
    font-weight: 700;
}

.legal-copy .legal-bullet::before {
    content: "";
    position: absolute;
    left: -12px;
    top: .78em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--gold, #f8bd08);
}

@media (max-width: 1050px) {
    .site-footer.clean-footer {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .site-footer.clean-footer .footer-contact-block {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .footer-legal {
        gap: 7px 9px;
        font-size: 13px;
    }

    .footer-legal span {
        display: none;
    }

    .footer-legal a,
    .footer-legal .footer-link-button {
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 999px;
        padding: 7px 10px;
    }

    .legal-copy h2 {
        font-size: 21px;
    }
}
