.legal-sub-banner .sub-banner-content {
    max-width: 760px;
}

.legal-sub-banner .sub-text {
    max-width: 690px;
}

.legal-page {
    clear: both;
    width: 100%;
    padding: 78px 0 92px;
    background: #f3f3f3;
    color: #202033;
}

.legal-page *,
.legal-page *::before,
.legal-page *::after {
    box-sizing: border-box;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.legal-toc,
.legal-content {
    min-width: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(36, 16, 82, 0.08);
}

.legal-toc {
    position: sticky;
    top: 24px;
    padding: 24px;
    border-top: 4px solid #6d37d7;
}

.legal-toc h2 {
    margin: 0 0 15px;
    color: #241052;
    font-size: 18px;
    line-height: 1.3;
}

.legal-updated {
    display: block;
    margin-top: 6px;
    color: #777185;
    font-size: 12px;
    font-weight: 500;
}

.legal-toc ol {
    margin: 0;
    padding-left: 20px;
}

.legal-toc li {
    margin: 9px 0;
    color: #716a80;
}

.legal-toc a {
    color: #351675;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    color: #6d37d7;
    text-decoration: underline;
}

.legal-content {
    padding: clamp(30px, 4vw, 50px);
    border-top: 4px solid #15c88b;
}

.legal-section {
    min-width: 0;
    scroll-margin-top: 110px;
    padding: 0 0 32px;
}

.legal-section + .legal-section {
    padding-top: 32px;
    border-top: 1px solid #ece9f3;
}

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

.legal-section h2 {
    margin: 0 0 16px;
    color: #241052;
    font-size: clamp(23px, 2.5vw, 30px);
    line-height: 1.25;
}

.legal-section h3 {
    margin: 24px 0 10px;
    color: #351675;
    font-size: 19px;
}

.legal-section p,
.legal-section li,
.legal-table th,
.legal-table td {
    color: #4e4b5d;
    font-size: 15px;
    line-height: 1.75;
}

.legal-section p {
    overflow-wrap: anywhere;
}

.legal-section a {
    overflow-wrap: anywhere;
    color: #4c1eaa;
}

.legal-section ul,
.legal-section ol {
    margin: 12px 0 0;
    padding-left: 22px;
}

.legal-section li + li {
    margin-top: 8px;
}

.legal-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 18px 0;
    border: 1px solid #e7e3ef;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.legal-table {
    width: 100%;
    min-width: 610px;
    border-collapse: collapse;
    background: #fff;
}

.legal-table th,
.legal-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #ece9f3;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.legal-table th {
    width: 28%;
    background: #faf9fd;
    color: #351675;
    font-weight: 700;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
    border-bottom: 0;
}

.legal-notice {
    margin: 18px 0;
    padding: 17px 19px;
    border-left: 4px solid #6d37d7;
    border-radius: 8px;
    background: #f5f0ff;
    color: #3f3654;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.legal-notice--teal {
    border-left-color: #15c88b;
    background: #edf9f6;
}

.legal-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.legal-contact a,
.legal-contact span {
    display: block;
    min-width: 0;
    min-height: 100%;
    padding: 16px 18px;
    border: 1px solid #e5e1ee;
    border-radius: 10px;
    background: #faf9fd;
    color: #351675;
    line-height: 1.55;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.legal-contact a:hover,
.legal-contact a:focus-visible {
    border-color: #6d37d7;
    color: #6d37d7;
}

.legal-contact strong {
    display: block;
    margin-bottom: 4px;
    color: #241052;
    font-size: 13px;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .legal-page {
        padding: 62px 0 76px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .legal-toc {
        position: static;
        padding: 18px;
        overflow: hidden;
    }

    .legal-toc h2 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 13px;
    }

    .legal-updated {
        display: inline-block;
        flex: 0 0 auto;
        margin: 0;
    }

    .legal-toc ol {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin: 0;
        padding: 0 0 5px;
        list-style: none;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .legal-toc li {
        flex: 0 0 auto;
        margin: 0;
        scroll-snap-align: start;
    }

    .legal-toc a {
        display: block;
        padding: 9px 12px;
        border: 1px solid #ded5f3;
        border-radius: 999px;
        background: #f8f5ff;
        color: #351675;
        white-space: nowrap;
    }

    .legal-content {
        padding: 34px;
    }
}

@media (max-width: 767px) {
    .legal-sub-banner .sub-banner-content {
        max-width: none;
    }

    .legal-page {
        padding: 46px 0 64px;
    }

    .legal-section {
        padding-bottom: 26px;
    }

    .legal-section + .legal-section {
        padding-top: 26px;
    }

    .legal-section p,
    .legal-section li,
    .legal-table th,
    .legal-table td {
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 575px) {
    .legal-page .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .legal-toc,
    .legal-content {
        border-radius: 10px;
    }

    .legal-content {
        padding: 24px 20px;
    }

    .legal-section h2 {
        font-size: 22px;
    }

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

    .legal-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table th,
    .legal-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .legal-table tr {
        margin-bottom: 12px;
        overflow: hidden;
        border: 1px solid #e7e3ef;
        border-radius: 9px;
        background: #fff;
    }

    .legal-table tr:last-child {
        margin-bottom: 0;
    }

    .legal-table th {
        padding: 11px 13px 5px;
        border: 0;
    }

    .legal-table td {
        padding: 5px 13px 12px;
        border: 0;
    }

    .legal-notice {
        padding: 15px 16px;
    }
}
