.legal-page {
    padding-top: 24px;
    padding-bottom: 36px;
}

.legal-page .container-lg {
    max-width: 980px;
}

.legal-card {
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.legal-header h1 {
    margin-bottom: 10px;
}

.legal-header p {
    margin: 0 0 8px;
    max-width: 740px;
    line-height: 1.7;
}

.legal-header small {
    display: inline-block;
    color: #64748b;
    font-weight: 500;
}

.legal-body {
    padding-top: 10px;
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.legal-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.legal-actions a:hover {
    background: #eef2ff;
    border-color: #94a3b8;
}

.legal-pdf-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    min-height: 580px;
}

.legal-pdf-frame {
    width: 100%;
    height: 72vh;
    min-height: 580px;
    border: 0;
}

.legal-section + .legal-section {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.legal-section h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.35;
    color: #0f172a;
}

.legal-section p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.legal-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.legal-list li {
    color: #374151;
    font-size: 16px;
    line-height: 1.8;
}

.legal-list li + li {
    margin-top: 6px;
}

@media (max-width: 640px) {
    .legal-page {
        padding-top: 12px;
        padding-bottom: 20px;
    }

    .legal-card {
        border-radius: 12px;
        margin-inline: -20px;
    }

    .legal-actions {
        gap: 8px;
        margin-bottom: 14px;
    }

    .legal-actions a {
        width: 100%;
        justify-content: flex-start;
    }

    .legal-pdf-wrap {
        min-height: 460px;
    }

    .legal-pdf-frame {
        height: 66vh;
        min-height: 460px;
    }

    .legal-section + .legal-section {
        margin-top: 20px;
        padding-top: 16px;
    }

    .legal-section h3 {
        font-size: 18px;
    }

    .legal-section p {
        font-size: 15px;
        line-height: 1.75;
    }

    .legal-list li {
        font-size: 15px;
        line-height: 1.75;
    }
}
