/* ============================================
   LEGAL PAGE STYLES
   ============================================ */

.legal-page-main {
    padding-top: 7rem;
    padding-bottom: 4rem;
    min-height: 60vh;
    background-color: #ffffff;
    color: #002956;
}

.legal-page-container {
    max-width: 46rem;
    margin: 0 auto;
}

.legal-page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #056cf2;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.legal-page-back:hover,
.legal-page-back:focus-visible {
    color: #002956;
    outline: 2px solid #056cf2;
    outline-offset: 2px;
}

.legal-page__title {
    font-size: 2.5rem !important;
    font-weight: 700;
    line-height: 1.15 !important;
    color: #002956;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.legal-page__date {
    font-size: 0.9375rem !important;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.legal-page__intro {
    font-size: 1.0625rem !important;
    line-height: 1.7 !important;
    color: #334155;
    margin-bottom: 2.5rem;
}

.legal-page__section {
    margin-bottom: 2rem;
}

.legal-page__section-title {
    font-size: 1.25rem !important;
    font-weight: 700;
    line-height: 1.35 !important;
    color: #002956;
    margin-bottom: 0.875rem;
}

.legal-page__section p {
    font-size: 1.0625rem !important;
    line-height: 1.7 !important;
    color: #334155;
    margin-bottom: 1rem;
}

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

.legal-page__section a,
.legal-page__intro a {
    color: #056cf2;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.legal-page__section a:hover,
.legal-page__section a:focus-visible,
.legal-page__intro a:hover,
.legal-page__intro a:focus-visible {
    color: #002956;
    outline: none;
}

.legal-page-footer .footer-link:focus-visible {
    outline: 2px solid #ffd42d;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .legal-page-main {
        padding-top: 6.5rem;
        padding-bottom: 3rem;
    }

    .legal-page__title {
        font-size: 2rem !important;
    }
}

@media (max-width: 390px) and (max-height: 844px) {
    .legal-page-main {
        padding-top: 6rem;
        padding-bottom: 2.5rem;
        padding-left: 24px;
        padding-right: 24px;
    }

    .legal-page__title {
        font-size: 1.75rem !important;
    }

    .legal-page__section-title {
        font-size: 1.125rem !important;
    }

    .legal-page__intro,
    .legal-page__section p {
        font-size: 1rem !important;
    }
}
