.legal-page {
    min-height: 100vh;
    background: #f8fafc;
    color: #17233d;
}

.legal-header {
    background: white;
    border-bottom: 1px solid rgba(23, 35, 61, 0.08);
    box-shadow: 0 1px 12px rgba(23, 35, 61, 0.06);
}

.legal-header-inner {
    width: min(1120px, calc(100% - 40px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.legal-header .brand-logo-image {
    max-width: min(100%, 16rem);
    max-height: 3.8rem;
}

.legal-back-link {
    color: #243a63;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.legal-back-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.legal-shell {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(42px, 7vw, 72px) 0;
}

.legal-document {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(23, 35, 61, 0.08);
    padding: clamp(28px, 5vw, 52px);
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    color: #89b13f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.legal-title {
    font-size: clamp(2.35rem, 5vw, 4.2rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: 0;
    color: #17233d;
    margin: 0 0 14px;
}

.legal-meta {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 30px;
}

.legal-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0 0 34px;
}

.legal-callout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: flex-start;
    border-radius: 8px;
    padding: 20px 22px;
    margin: 0 0 34px;
    border: 1px solid #dbe9c3;
    background: #f5faee;
}

.legal-callout--warning {
    border-color: #f3d7a5;
    background: #fff8ed;
}

.legal-callout--info {
    border-color: #c8d8f0;
    background: #f5f8fd;
}

.legal-callout-icon {
    color: #89b13f;
    font-size: 1.8rem;
    line-height: 1;
}

.legal-callout h2,
.legal-callout h3 {
    margin: 0 0 8px;
    color: #17233d;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 800;
}

.legal-callout p {
    color: #475569;
    margin: 0;
    line-height: 1.65;
}

.legal-section {
    margin: 0 0 34px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    color: #17233d;
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 16px;
}

.legal-section h3 {
    color: #17233d;
    font-size: 1.16rem;
    line-height: 1.35;
    font-weight: 800;
    margin: 24px 0 10px;
}

.legal-section p {
    color: #334155;
    line-height: 1.72;
    margin: 0 0 14px;
}

.legal-list {
    margin: 0 0 18px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.legal-list li {
    position: relative;
    color: #334155;
    line-height: 1.6;
    padding-left: 22px;
}

.legal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #89b13f;
}

.legal-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fbfdff;
    padding: 22px;
    margin: 18px 0 34px;
}

.legal-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 10px;
}

@media (max-width: 640px) {
    .legal-header-inner {
        min-height: 76px;
        width: min(100% - 32px, 1120px);
    }

    .legal-header .brand-logo-image {
        max-width: min(100%, 12.5rem);
        max-height: 3rem;
    }

    .legal-back-link {
        font-size: 0.9rem;
    }

    .legal-shell {
        width: min(100% - 28px, 980px);
        padding: 28px 0;
    }

    .legal-document {
        padding: 24px 18px;
    }

    .legal-callout {
        grid-template-columns: 1fr;
    }
}
