:root {
    --becoach-yellow: #f5b443;
    --becoach-black: #000;
    --becoach-charcoal: #212529;
    --becoach-muted: #6c757d;
}

.legal-footer-nav {
    border-top: 1px solid rgba(255, 255, 255, .18);
    margin-top: 2rem;
    padding: 1.25rem 1rem 0;
    text-align: center;
}

.legal-footer-nav a,
.legal-footer-nav button {
    background: transparent;
    border: 0;
    color: #fff;
    display: inline-block;
    font: inherit;
    margin: .25rem .75rem;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-footer-nav a:hover,
.legal-footer-nav button:hover,
.legal-footer-nav a:focus-visible,
.legal-footer-nav button:focus-visible {
    color: var(--becoach-yellow);
}

.consent-banner {
    background: #fff;
    border-top: 5px solid var(--becoach-yellow);
    bottom: 0;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, .22);
    color: var(--becoach-charcoal);
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    z-index: 1100;
}

.consent-banner[hidden],
.consent-modal[hidden] {
    display: none !important;
}

.consent-banner__inner {
    align-items: center;
    display: flex;
    gap: 1rem 2rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1140px;
}

.consent-banner__copy {
    max-width: 700px;
}

.consent-banner__copy p {
    margin: .25rem 0 0;
}

.consent-actions {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    min-width: min(100%, 460px);
}

.consent-btn {
    align-items: center;
    border: 2px solid var(--becoach-black);
    border-radius: .3rem;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: .6rem .85rem;
    text-align: center;
}

.consent-btn--primary {
    background: var(--becoach-yellow);
    color: #000;
}

.consent-btn--secondary {
    background: #fff;
    color: #000;
}

.consent-btn--dark {
    background: #000;
    color: #fff;
}

.consent-btn:focus-visible,
.consent-toggle input:focus-visible + .consent-toggle__track,
.consent-settings-button:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.consent-modal {
    align-items: center;
    background: rgba(0, 0, 0, .72);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1200;
}

.consent-modal__panel {
    background: #fff;
    border-radius: .45rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    color: var(--becoach-charcoal);
    max-height: min(90vh, 760px);
    max-width: 720px;
    overflow: auto;
    padding: 1.5rem;
    width: 100%;
}

.consent-modal__header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.consent-modal__close {
    background: transparent;
    border: 0;
    color: #000;
    font-size: 1.75rem;
    line-height: 1;
    padding: .1rem .35rem;
}

.consent-category {
    border: 1px solid #d7dce1;
    border-radius: .35rem;
    margin-top: 1rem;
    padding: 1rem;
}

.consent-category__top {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.consent-category p {
    color: #4b5563;
    margin: .5rem 0 0;
}

.consent-required {
    color: #48612f;
    font-size: .9rem;
    font-weight: 700;
}

.consent-toggle {
    display: inline-flex;
    position: relative;
}

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

.consent-toggle__track {
    background: #adb5bd;
    border-radius: 999px;
    cursor: pointer;
    height: 28px;
    position: relative;
    transition: background .2s ease;
    width: 50px;
}

.consent-toggle__track::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    content: "";
    height: 22px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform .2s ease;
    width: 22px;
}

.consent-toggle input:checked + .consent-toggle__track {
    background: #6d8f34;
}

.consent-toggle input:checked + .consent-toggle__track::after {
    transform: translateX(22px);
}

.consent-receipt {
    background: #f4f5f6;
    border-left: 4px solid var(--becoach-yellow);
    font-size: .9rem;
    margin-top: 1rem;
    padding: .75rem;
}

.consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.consent-settings-button {
    background: #000;
    border: 2px solid #fff;
    border-radius: 999px;
    bottom: 18px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
    color: #fff;
    font-weight: 700;
    padding: .65rem 1rem;
    position: fixed;
    right: 18px;
    z-index: 1050;
}

.external-service-placeholder {
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #d7dce1;
    display: flex;
    min-height: 600px;
    padding: 2rem;
    text-align: center;
}

.external-service-placeholder__inner {
    margin: auto;
    max-width: 540px;
}

.external-service-placeholder .bi-calendar-check {
    color: #b87910;
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.agenda-privacy-note {
    background: #fff8e8;
    border-left: 4px solid var(--becoach-yellow);
    font-size: .93rem;
    margin-top: 1.25rem;
    padding: .9rem 1rem;
}

.legal-hero {
    background: #111;
    color: #fff;
    padding: 4rem 0;
}

.legal-hero .eyebrow {
    color: var(--becoach-yellow);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-content {
    background: #f8f9fa;
    padding: 3rem 0 5rem;
}

.legal-card {
    background: #fff;
    border-radius: .4rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    margin-bottom: 1.25rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.legal-card h2 {
    border-bottom: 3px solid var(--becoach-yellow);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: .55rem;
}

.legal-card h3 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
}

.legal-card a {
    color: #805000;
}

.legal-table {
    margin: 1rem 0;
    overflow-x: auto;
}

.legal-table table {
    border-collapse: collapse;
    min-width: 680px;
    width: 100%;
}

.legal-table th,
.legal-table td {
    border: 1px solid #d7dce1;
    padding: .75rem;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: #212529;
    color: #fff;
}

.rights-form label {
    font-weight: 700;
    margin-bottom: .35rem;
}

.rights-form .form-text {
    color: #5d6570;
}

.rights-result {
    background: #edf7e5;
    border: 1px solid #7a9b50;
    border-radius: .35rem;
    margin-top: 1.25rem;
    padding: 1rem;
}

.rights-result[hidden] {
    display: none;
}

.skip-link {
    background: #fff;
    color: #000;
    left: 1rem;
    padding: .75rem 1rem;
    position: fixed;
    top: -100px;
    z-index: 2000;
}

.skip-link:focus {
    top: 1rem;
}

@media (max-width: 820px) {
    .consent-banner__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .consent-actions {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .external-service-placeholder {
        min-height: 460px;
    }

    .consent-settings-button {
        bottom: 12px;
        font-size: .88rem;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
