.legal-shell {
    width: min(calc(100% - 24px), 1040px);
    margin: 0 auto;
    padding: 24px 0 72px;
}

.legal-hero {
    margin-bottom: 18px;
}

.legal-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.legal-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(77, 19, 122, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-hero__title {
    max-width: 640px;
}

.legal-hero__title h1 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.legal-hero__title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.legal-hero__brand {
    flex: 0 0 110px;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.legal-hero__brand-media {
    width: 110px;
    height: 110px;
    padding: 18px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(252, 246, 242, 0.92));
    box-shadow: 0 18px 34px rgba(31, 24, 16, 0.08);
}

.legal-hero__brand-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.legal-hero__brand-caption {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    text-align: center;
}

.legal-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-hero__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.legal-summary-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(77, 19, 122, 0.08);
}

.legal-summary-card strong,
.legal-summary-card span {
    display: block;
}

.legal-summary-card strong {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text);
}

.legal-summary-card span {
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.94rem;
}

.legal-summary-card a {
    color: var(--primary);
    font-weight: 700;
}

.legal-grid {
    display: grid;
    gap: 18px;
}

.legal-card {
    overflow: hidden;
}

.legal-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.legal-card__header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.legal-card__header p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.legal-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(245, 150, 30, 0.14);
    color: #c26c00;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.legal-card p {
    margin: 0 0 14px;
    color: #544f48;
    line-height: 1.78;
}

.legal-list,
.legal-steps {
    margin: 0;
    padding-left: 20px;
    color: #544f48;
}

.legal-list li,
.legal-steps li {
    margin-bottom: 10px;
    line-height: 1.72;
}

.legal-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(245, 150, 30, 0.18);
    background: rgba(255, 191, 71, 0.12);
    color: #6d5431;
}

.legal-note strong {
    display: block;
    margin-bottom: 6px;
    color: #553600;
}

.legal-cross-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.legal-link-card {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(77, 19, 122, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 245, 255, 0.82));
}

.legal-link-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.legal-link-card p {
    margin: 0 0 14px;
}

.legal-link-card a {
    color: var(--primary);
    font-weight: 700;
}

.legal-footer {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 38px rgba(50, 37, 67, 0.08);
    color: var(--muted);
    line-height: 1.7;
}

.legal-footer p {
    margin: 0;
}

@media (max-width: 780px) {
    .legal-shell {
        padding-top: 18px;
        padding-bottom: 54px;
    }

    .legal-hero__top {
        flex-direction: column-reverse;
    }

    .legal-hero__brand {
        width: 100%;
        justify-items: flex-start;
    }

    .legal-hero__summary,
    .legal-cross-links {
        grid-template-columns: 1fr;
    }

    .legal-card__header {
        flex-direction: column;
    }
}
