/* =========================================================
    LEGAL PAGE
========================================================= */

.legal-page {
    padding: 110px 0 120px;
    background: var(--surface);
}

.legal-page-inner {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
}

.legal-page-header {
    max-width: 760px;
    margin-bottom: 64px;
}

.legal-page-header h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.legal-documents {
    width: 100%;
    max-width: 900px;
}

.legal-document {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    padding: 26px 0;

    border-top: 1px solid var(--line);

    color: inherit;
    text-decoration: none;

    transition:
        color 0.2s ease;
}

.legal-document:last-child {
    border-bottom: 1px solid var(--line);
}

.legal-document-content {
    min-width: 0;
}

.legal-document h2 {
    margin: 0;

    color: var(--text);

    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;

    transition: color 0.2s ease;
}

.legal-document p {
    margin: 8px 0 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.5;
}

.legal-document-arrow {
    flex-shrink: 0;

    width: 28px;
    height: 28px;

    color: #1C274C;

    transition:
        transform 0.25s ease,
        color 0.2s ease;
}

.legal-document:hover h2 {
    color: #1C274C;
}

.legal-document:hover .legal-document-arrow {
    transform: translateX(6px);
    color: #242742;
}

.legal-page-back {
    margin-top: 48px;
}

.legal-page-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--muted);

    font-size: 15px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.legal-page-back a:hover {
    color: var(--text);
}

.legal-page-back-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.legal-page-back a:hover .legal-page-back-arrow {
    transform: translateX(-4px);
}


/* =========================================================
       MOBILE
       ========================================================= */

@media (max-width: 800px) {

    .legal-page {
        padding: 80px 0;
    }

    .legal-page-inner {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .legal-page-header {
        margin-bottom: 44px;
    }

    .legal-page-header h1 {
        font-size: 42px;
    }

    .legal-document {
        gap: 24px;
        padding: 22px 0;
    }

    .legal-document h2 {
        font-size: 18px;
    }

    .legal-document p {
        font-size: 14px;
    }

    .legal-page-back {
        margin-top: 40px;
    }
}