/* Legal pages — hero banner + readable content column (Terms, Privacy) */

.legal-page-shell {
    margin-top: -0.01px; /* avoid margin collapse with nav */
}

.legal-page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 11rem;
    padding: 2.5rem clamp(1.5rem, 6vw, 4rem);
    text-align: center;
    background:
        linear-gradient(135deg, rgba(30, 63, 71, 0.88) 0%, rgba(40, 83, 93, 0.82) 45%, rgba(62, 118, 128, 0.78) 100%),
        radial-gradient(circle at 20% 80%, rgba(255, 201, 187, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(232, 196, 120, 0.28) 0%, transparent 40%),
        linear-gradient(160deg, #1e3f47 0%, #28535d 50%, #3a6b75 100%);
    color: #fff;
}

.legal-page-hero__title {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
    max-width: 28rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.legal-page-body {
    background: #fff;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.75rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4rem);
}

.legal-page-content {
    width: 100%;
    /* max-width: 58rem; */
    margin-left: auto;
    margin-right: auto;
}

.legal-page-updated {
    color: #64748b;
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
}

.legal-page-intro {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 0.5rem;
}

.legal-section {
    margin-top: 1.75rem;
}

.legal-section__title {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #28535d;
    line-height: 1.35;
}

.legal-section__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 1rem;
}

.legal-section p {
    margin-bottom: 0.75rem;
    line-height: 1.65;
    color: #334155;
}

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

.legal-page-content a:not(.btn) {
    color: #28535d;
    font-weight: 500;
}

.legal-page-content a:not(.btn):hover,
.legal-page-content a:not(.btn):focus {
    color: #1e3f47;
}

@media (min-width: 768px) {
    .legal-page-hero {
        min-height: 12.5rem;
    }
}

/* How it works — same content margins as Terms/Privacy via .legal-page-body / .legal-page-content */

.how-it-works__intro {
    margin-bottom: 1.5rem;
}

.how-it-works__heading {
    color: #28535d;
}

.how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 0 2rem;
}

.how-it-works__step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
}

.how-it-works__step p {
    line-height: 1.65;
    color: #334155;
}

.how-it-works__number {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #28535d;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.how-it-works__btn {
    background-color: #28535d;
    border-color: #28535d;
    color: #fff;
}

.how-it-works__btn:hover,
.how-it-works__btn:focus {
    background-color: #1e3f47;
    border-color: #1e3f47;
    color: #fff;
}
