.footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a,
.footer-links button,
.inline-button,
.consent-policy-links a {
    border: 0;
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent-banner {
    position: fixed;
    z-index: 30;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 22px;
    border: 1px solid #cbd8cf;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px #172f2930;
}

.consent-banner[hidden],
.consent-dialog-wrap[hidden] {
    display: none;
}

.consent-copy {
    max-width: 680px;
}

.consent-copy h2,
.consent-dialog h2 {
    margin: 0 0 7px;
    color: var(--ink);
    font: 750 21px Manrope, sans-serif;
}

.consent-copy p,
.consent-dialog p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.consent-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px !important;
}

.consent-actions,
.consent-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.consent-button {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--green);
    border-radius: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.consent-button-primary {
    background: var(--green);
    color: #fff;
}

.consent-button-choice {
    background: var(--green);
    color: #fff;
}

.consent-button-secondary {
    background: #fff;
    color: var(--green);
}

.consent-dialog-wrap {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.consent-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: #172f2970;
}

.consent-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    padding: 26px;
    border: 1px solid #cbd8cf;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px #172f2950;
}

.consent-dialog-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.consent-eyebrow {
    margin-bottom: 5px !important;
    color: #6b9552 !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.consent-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
}

.consent-category {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.consent-category h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.consent-status {
    flex: 0 0 auto;
    color: var(--green);
    font-size: 12px;
    font-weight: 750;
}

.consent-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.consent-switch span {
    display: block;
    width: 48px;
    height: 28px;
    padding: 3px;
    border-radius: 20px;
    background: #cbd8cf;
}

.consent-switch span::after {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px #172f2940;
    content: '';
    transition: transform 140ms ease;
}

.consent-switch input:checked + span {
    background: var(--green);
}

.consent-switch input:checked + span::after {
    transform: translateX(20px);
}

.consent-switch input:focus-visible + span {
    outline: 3px solid #83b963;
    outline-offset: 3px;
}

.consent-dialog-actions {
    margin-top: 24px;
}

.consent-error {
    margin-top: 12px !important;
    color: #a13d3d !important;
}

.policy-page {
    padding: 60px 24px 90px;
}

.policy-shell {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 38px clamp(22px, 5vw, 64px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.policy-shell h1 {
    margin: 7px 0 12px;
    font: 800 clamp(34px, 5vw, 54px) Manrope, sans-serif;
    letter-spacing: -2px;
}

.policy-shell h2 {
    margin: 34px 0 9px;
    color: var(--green);
    font: 750 22px Manrope, sans-serif;
}

.policy-shell p,
.policy-shell li {
    color: #52635c;
    line-height: 1.7;
}

.policy-lede {
    max-width: 740px;
    font-size: 17px;
}

.policy-updated {
    color: var(--muted) !important;
    font-size: 13px;
}

.policy-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
}

.policy-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 13px;
}

.policy-table th,
.policy-table td {
    padding: 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.policy-table th {
    background: #f0f5ef;
    color: var(--green);
}

@media (max-width: 760px) {
    .consent-banner {
        right: 10px !important;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: 360px;
        margin-right: 0;
        margin-left: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
        padding: 17px;
    }

    .consent-copy,
    .consent-actions {
        width: 100%;
        min-width: 0;
    }

    .hero-copy,
    .hero-lede {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .hero-copy h1 {
        font-size: 32px;
        overflow-wrap: anywhere;
    }

    .consent-actions,
    .consent-dialog-actions {
        justify-content: stretch;
    }

    .consent-button {
        flex: 1 1 100%;
        width: 100%;
        white-space: normal;
    }

    .consent-dialog {
        padding: 21px;
    }
}

@media (max-width: 400px) {
    .consent-banner {
        width: calc(100vw - 20px) !important;
        max-width: 350px !important;
    }

    .hero-copy h1 {
        width: 100%;
        max-width: 100%;
        font-size: 36px;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .consent-switch span::after {
        transition: none;
    }
}
