.legal-page {
    --legal-text-heading: #202833;
    --legal-text-body: #3f4d5c;
    --legal-text-muted: #6a7683;
    --legal-table-bg: var(--surface-card, #FFFFFF);
    --legal-table-header-bg: var(--surface-body, #f8f9fa);
    --legal-table-row-odd: var(--legal-table-bg);
    --legal-table-row-even: var(--surface-body, #f8f9fa);
    --legal-table-row-hover: rgba(var(--bs-primary-rgb), 0.07);
    background: #FFFFFF;
    border-top: 1px solid rgba(222, 227, 230, 0.65);
    min-height: 100%;
    display: flex;
}

.legal-page > .container-xl {
    flex: 1 1 auto;
    display: flex;
}

.legal-page > .container-xl > .row {
    flex: 1 1 auto;
    width: 100%;
}

.legal-page .legal-document {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.legal-document {
    width: 100%;
    margin: 0 auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 10px 0 4px;
}

.legal-hero {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0 0 10px;
    box-shadow: none;
}

.legal-hero__inner {
    max-width: 100%;
}

.legal-title {
    margin: 0 0 10px;
    color: var(--legal-text-heading);
    font-weight: 700;
    font-size: clamp(1.75rem, 2.2vw, 2.3rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.legal-updated {
    margin: 0;
    color: var(--legal-text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    font-style: italic;
}

.legal-updated::before {
    content: "Last updated: ";
    font-weight: 600;
}

.legal-content {
    display: grid;
    gap: 24px;
}

.legal-rich {
    display: block;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.legal-section {
    border: 0;
    border-bottom: 1px solid rgba(196, 201, 207, 0.75);
    background: transparent;
    border-radius: 0;
    padding: 0 0 18px;
    box-shadow: none;
    scroll-margin-top: 100px;
}

.legal-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.legal-rich a {
    color: #003F9E;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.legal-section-title {
    margin: 0 0 10px;
    color: var(--legal-text-heading);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
}

.legal-paragraph {
    color: var(--legal-text-body);
    line-height: 1.78;
    margin-bottom: 11px;
    font-size: 1rem;
}

.legal-paragraph:last-child {
    margin-bottom: 0;
}

.legal-section:first-of-type .legal-paragraph:first-of-type {
    font-style: italic;
}

.legal-rich p {
    color: var(--legal-text-body);
    line-height: 1.78;
    margin-bottom: 11px;
}

.legal-rich h2,
.legal-rich h3 {
    color: var(--legal-text-heading);
    margin: 18px 0 10px;
    font-weight: 700;
}

.legal-list {
    margin: 2px 0 0;
    padding-left: 1.1rem;
    color: var(--legal-text-body);
    list-style: disc;
}

.legal-list li {
    margin-bottom: 9px;
    line-height: 1.65;
    padding-left: 2px;
    display: list-item;
}

.legal-list li:last-child {
    margin-bottom: 0;
}

.legal-action-group {
    padding-top: 0;
}

.legal-action-group.mt-5 {
    margin-top: 0 !important;
}

.legal-action {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    border-top: 0;
    padding-top: 12px;
}

.legal-action__content {
    max-width: 680px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
}

.legal-action__title {
    color: var(--legal-text-heading);
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.35;
}

.legal-action__description {
    color: var(--legal-text-body);
    font-size: 0.96rem;
    line-height: 1.7;
    margin-top: 0;
}

.legal-action__button {
    flex: 0 0 auto;
}

.legal-cookie-details {
    margin-top: 24px;
    display: block;
    border-bottom: 1px solid rgba(196, 201, 207, 0.75);
    padding-bottom: 26px;
}

.legal-section--with-action {
    border-bottom: 0;
    padding-bottom: 0;
    padding-top: 18px;
}

.legal-cookie-category {
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.legal-cookie-category:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.legal-cookie-category-title {
    margin: 0 0 10px;
    color: var(--legal-text-heading);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
}

.legal-cookie-category-description {
    color: var(--legal-text-body);
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-cookie-table {
    margin-bottom: 0;
    background: var(--legal-table-bg);
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
    width: 100%;
}

.legal-cookie-table thead th {
    background: var(--legal-table-header-bg);
    color: var(--legal-text-heading);
    font-family: "Lato", sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    border-color: var(--bs-border-color, #dee3e6);
    border-bottom: 1px solid var(--bs-border-color, #dee3e6);
    border-top: 0;
    padding: 0.65rem 0.75rem;
}

.legal-cookie-table thead th:first-child {
    border-top-left-radius: 0.6rem;
}

.legal-cookie-table thead th:last-child {
    border-top-right-radius: 0.6rem;
}

.legal-cookie-table td,
.legal-cookie-table th {
    vertical-align: top;
    border-color: var(--bs-border-color, #dee3e6);
    line-height: 1.2;
}

.legal-cookie-table td {
    color: var(--legal-text-body);
    font-family: "Lato", sans-serif;
    font-size: 12px;
    line-height: 1.2;
    padding: 0.65rem 0.75rem;
}

.legal-cookie-table th:nth-child(1),
.legal-cookie-table td:nth-child(1) {
    width: 28%;
    min-width: 220px;
}

.legal-cookie-table th:nth-child(2),
.legal-cookie-table td:nth-child(2) {
    width: 18%;
    min-width: 140px;
}

.legal-cookie-table th:nth-child(3),
.legal-cookie-table td:nth-child(3) {
    width: 54%;
    min-width: 360px;
}

.legal-cookie-table > tbody > tr:nth-child(odd) > td {
    background-color: var(--legal-table-row-odd);
}

.legal-cookie-table > tbody > tr:nth-child(even) > td {
    background-color: var(--legal-table-row-even);
}

.legal-cookie-table > tbody > tr:hover > td {
    background-color: var(--legal-table-row-hover);
}

.legal-cookie-table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.legal-cookie-category .table-responsive {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--bs-border-color, #dee3e6);
    border-radius: 0.6rem;
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
    .legal-document {
        padding: 4px 0 12px;
    }
}

@media (max-width: 991.98px) {
    .legal-document {
        padding-top: 8px;
    }
}

@media (max-width: 767.98px) {
    .legal-document {
        padding-top: 6px;
    }

    .legal-title {
        font-size: clamp(1.45rem, 6vw, 1.8rem);
    }

    .legal-content {
        gap: 18px;
    }

    .legal-section {
        padding-bottom: 14px;
    }

    .legal-cookie-category .table-responsive {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .legal-cookie-table {
        min-width: 640px;
    }

    .legal-cookie-table th,
    .legal-cookie-table td {
        white-space: normal;
        word-break: break-word;
    }

    .legal-cookie-table th:nth-child(1),
    .legal-cookie-table td:nth-child(1) {
        min-width: 180px;
    }

    .legal-cookie-table th:nth-child(2),
    .legal-cookie-table td:nth-child(2) {
        min-width: 120px;
    }

    .legal-cookie-table th:nth-child(3),
    .legal-cookie-table td:nth-child(3) {
        min-width: 320px;
    }
}

@media (max-width: 575.98px) {
    .legal-cookie-category .table-responsive {
        border-radius: 0.5rem;
    }

    .legal-cookie-table {
        min-width: 600px;
    }

    .legal-cookie-table th,
    .legal-cookie-table td {
        padding: 0.55rem 0.6rem;
    }

    .legal-cookie-table th:nth-child(1),
    .legal-cookie-table td:nth-child(1) {
        min-width: 170px;
    }

    .legal-cookie-table th:nth-child(2),
    .legal-cookie-table td:nth-child(2) {
        min-width: 110px;
    }

    .legal-cookie-table th:nth-child(3),
    .legal-cookie-table td:nth-child(3) {
        min-width: 300px;
    }
}
