/* LEGAL / CONTENT PAGES  (about, security, privacy, terms) */

.legal {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 52px;
    color: var(--text);
}

/* On the Security page the legal card sits under full-width
   steps / compare blocks, so let it span the same width. */
.compare + .legal {
    max-width: none;
}

.legal h2 {
    margin: 44px 0 14px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.2;
    letter-spacing: -.035em;
    color: var(--text);
}

.legal h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal h3 {
    margin: 24px 0 8px;
    font-size: 18px;
    letter-spacing: -.02em;
}

.legal p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.legal a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal strong {
    color: var(--text);
}

/* Bullet lists: 2-column check grid */
.legal ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.legal li {
    position: relative;
    padding-left: 30px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.6;
}

.legal li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
        center / 11px no-repeat,
        var(--accent);
}

/* Spacing between the hero and the content card */
.page-hero + .section {
    padding-top: 56px;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {

    .legal {
        padding: 30px 22px;
    }

    .legal h2 {
        margin-top: 34px;
        padding-top: 28px;
    }

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

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

    .page-hero + .section {
        padding-top: 36px;
    }
}
