.legal-page {
    color: #212529;
    font-size: 14px;
    line-height: 1.55;
    max-height: 68vh;
    overflow-y: auto;
    padding: 24px 30px 30px;
    text-align: left;
}

.wrap-card {
    position: relative;
}

.legal-back-link {
    color: #2e523b;
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    position: absolute;
    right: 30px;
    text-decoration: underline;
    text-underline-offset: 2px;
    top: 24px;
    z-index: 2;
}

.legal-page h1 {
    border-bottom: 4px solid #111111;
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 18px;
    padding-bottom: 14px;
}

.legal-page h2 {
    color: #2f2f2f;
    font-size: 18px;
    line-height: 1.3;
    margin: 24px 0 10px;
}

.legal-page h3 {
    color: #333333;
    font-size: 15px;
    line-height: 1.3;
    margin: 16px 0 8px;
}

.legal-page p {
    margin: 0 0 10px;
}

.legal-page ul {
    margin: 0 0 12px 20px;
    padding: 0;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-page a {
    color: #2e523b;
    text-decoration: underline;
}

.legal-page table {
    border-collapse: collapse;
    margin: 12px 0 18px;
    width: 100%;
}

.legal-page th,
.legal-page td {
    border: 1px solid #d7d7d7;
    padding: 8px 10px;
    vertical-align: top;
}

.legal-page th {
    background: #eeeeee;
    font-weight: 700;
}

.legal-page .legal-note {
    background: #f5f5f5;
    border-left: 4px solid #999999;
    margin: 14px 0;
    padding: 12px 14px;
}

.legal-footer-links {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 12px;
    line-height: 1.6;
    margin-top: 14px;
    padding-top: 12px;
}

.legal-footer-links a {
    color: #ffffff;
    text-decoration: underline;
}

#footer.app-legal-footer,
.app-legal-footer {
    background: #999999;
    border: 0;
    box-sizing: border-box;
    clear: both;
    color: #ffffff;
    font-size: 12px;
    height: 26px;
    left: 0;
    line-height: 26px;
    margin: 0;
    padding: 0 16px;
    position: fixed;
    right: 0;
    bottom: 0;
    text-align: center;
    width: 100%;
    z-index: 9000;
}

#footer.app-legal-footer a,
.app-legal-footer a {
    color: #ffffff;
    text-decoration: underline;
}

#footer.app-legal-footer a:hover,
.app-legal-footer a:hover {
    color: #ffffff;
}

#cookieConsentBanner[hidden] {
    display: none !important;
}

.cookie-consent {
    background: #ffffff;
    border-top: 5px solid #111111;
    bottom: 0;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.22);
    color: #212529;
    left: 0;
    padding: 18px 20px;
    position: fixed;
    right: 0;
    text-align: left;
    z-index: 10000;
}

.cookie-consent__inner {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 980px;
}

.cookie-consent__title {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.cookie-consent p {
    font-size: 13px;
    margin: 0;
}

.cookie-consent__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.cookie-consent__button,
.cookie-consent__link {
    border: 1px solid #555555;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
    padding: 9px 14px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.cookie-consent__button {
    background: #555555;
    color: #ffffff;
}

.cookie-consent__link {
    background: #ffffff;
    color: #333333;
}

@media (max-width: 700px) {
    .legal-page {
        max-height: none;
        padding: 20px 16px 24px;
    }

    .legal-page h1 {
        font-size: 24px;
    }

    .legal-back-link {
        font-size: 15px;
        max-width: 48%;
        right: 16px;
        text-align: right;
        top: 18px;
    }

    .cookie-consent__inner,
    .cookie-consent__actions {
        align-items: stretch;
        flex-direction: column;
    }
}
