* {
    box-sizing: border-box;
}

body.legal-body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #1f2937;
    background: #f5f7fb;
}

.legal-body a,
.cookie-notice a {
    color: #27519c;
}

.legal-page {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 96px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 16px;
    font-weight: 700;
    text-decoration: none;
}

.legal-card {
    background: #fff;
    border: 1px solid #e4e7ef;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
}

.legal-eyebrow {
    margin: 0 0 8px;
    color: #f37767;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.legal-card h1 {
    margin: 0 0 8px;
    color: #27519c;
    font-size: 32px;
    line-height: 1.15;
}

.legal-card h2 {
    margin: 28px 0 10px;
    color: #27519c;
    font-size: 20px;
}

.legal-card p,
.legal-card li {
    font-size: 16px;
    line-height: 1.65;
}

.legal-card ul {
    padding-left: 22px;
}

.legal-updated {
    margin: 0 0 24px;
    color: #667085;
}

.legal-note {
    margin: 20px 0 24px;
    padding: 14px 16px;
    border-left: 4px solid #f37767;
    background: #fff6f4;
    border-radius: 6px;
    line-height: 1.55;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #d6dceb;
    border-radius: 6px;
    background: #f8fafc;
    font-weight: 700;
    text-decoration: none;
}

.legal-table-wrap {
    overflow-x: auto;
    border: 1px solid #e4e7ef;
    border-radius: 8px;
}

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

.legal-table th,
.legal-table td {
    padding: 12px;
    border-bottom: 1px solid #e4e7ef;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: #f8fafc;
    color: #27519c;
}

.cookie-notice {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 16px;
    border: 1px solid #d6dceb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(31, 41, 55, 0.2);
}

.cookie-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-notice-actions {
    display: inline-flex;
    flex-shrink: 0;
    gap: 10px;
    align-items: center;
}

.cookie-notice button {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: #27519c;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 720px) {
    .legal-page {
        width: min(100% - 20px, 980px);
        padding-top: 16px;
    }

    .legal-card {
        padding: 22px 16px;
    }

    .legal-card h1 {
        font-size: 26px;
    }

    .cookie-notice {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-notice-actions {
        justify-content: space-between;
    }
}
