.legal-page {
    color: #1A1A1A;
    font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    position: relative;
}

.legal-page::before {
    content: "";
    display: block;
    height: 0.5px;
    background: #E8E8E8;
}

.legal-page__intro {
    padding: 16px 0 20px;
    font-size: 14px;
    line-height: 1.55;
    color: #1A1A1A;
}

.legal-page__intro p {
    margin: 0;
}

.legal-page__sections {
    position: relative;
}

.legal-page__section {
    position: relative;
}

.legal-page__section + .legal-page__section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 0.5px;
    background: #E8E8E8;
}

.legal-page__section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    cursor: pointer;
    user-select: none;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    color: #1A1A1A;
}

.legal-page__section-num {
    flex-shrink: 0;
    min-width: 26px;
}

.legal-page__section-title {
    flex: 1;
}

.legal-page__section-chevron {
    flex-shrink: 0;
    color: #1A1A1A;
    transition: transform 0.2s ease;
}

.legal-page__section.is-open .legal-page__section-chevron {
    transform: rotate(180deg);
}

.legal-page__section-body {
    display: none;
    padding: 0 0 24px 38px;
    font-size: 14px;
    line-height: 1.55;
    color: #1A1A1A;
}

.legal-page__section.is-open .legal-page__section-body {
    display: block;
}

.legal-page__section-body p {
    margin: 0 0 12px;
}

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

.legal-page__section-body a {
    color: #1A1A1A;
    text-decoration: underline;
}

.legal-page__section-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: #F5F5F5;
    padding: 1px 5px;
    border-radius: 3px;
}

.legal-page__list {
    margin: 0 0 12px;
    padding-left: 20px;
}

.legal-page__list li {
    margin-bottom: 4px;
}

.legal-page__subhead {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    color: #1A1A1A;
    margin: 20px 0 10px;
}

.legal-page__subhead:first-child {
    margin-top: 0;
}

.legal-page__card {
    background: #F5F5F5;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 12px 0;
}

.legal-page__card-label {
    color: #707070;
    font-size: 13px;
    margin-bottom: 6px;
}

.legal-page__card-name {
    margin-bottom: 8px;
    color: #1A1A1A;
    font-size: 14px;
}

.legal-page__card-grid {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 4px 12px;
    font-size: 13px;
    line-height: 1.5;
}

.legal-page__card-grid > span:nth-child(odd) {
    color: #707070;
}

.legal-page__card-grid > span:nth-child(even) {
    color: #1A1A1A;
}

.legal-page__purpose-card {
    background: #F5F5F5;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 8px 0;
}

.legal-page__purpose-title {
    font-size: 13px;
    color: #1A1A1A;
    margin-bottom: 6px;
    line-height: 1.35;
}

.legal-page__purpose-data {
    font-size: 12px;
    line-height: 1.55;
    color: #707070;
}

.legal-page__partner-card {
    background: #F5F5F5;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 8px 0;
}

.legal-page__partner-name {
    margin-bottom: 6px;
    color: #1A1A1A;
    font-size: 13px;
}

.legal-page__partner-detail {
    font-size: 12px;
    color: #707070;
    line-height: 1.5;
    margin-bottom: 6px;
}

.legal-page__partner-purpose {
    font-size: 12px;
    color: #1A1A1A;
    line-height: 1.5;
}

.row.py-4:has(.breadcrumb) {
    position: relative;
}

.row.py-4:has(.breadcrumb)::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 0.5px;
    bottom: 0;
    background: #E8E8E8;
}

@media screen and (max-width: 767px) {
    ul.breadcrumb li:last-child {
        display: list-item;
    }
}

body:has(.legal-page) .page-title {
    padding-top: 32px;
}

@media (max-width: 395px) {
    body:has(.legal-page) .page-title h1 {
        font-size: 18px;
    }
}

@media (min-width: 396px) and (max-width: 767px) {
    body:has(.legal-page) .page-title h1 {
        font-size: 22px;
    }
}

@media (min-width: 768px) {
    .legal-page__intro {
        padding: 20px 0 24px;
        font-size: 15px;
    }
    .legal-page__section-header {
        padding: 22px 0;
        font-size: 20px;
        gap: 16px;
    }
    .legal-page__section-num {
        min-width: 32px;
    }
    .legal-page__section-chevron {
        width: 20px;
        height: 20px;
    }
    .legal-page__section-body {
        padding: 0 0 28px 48px;
        font-size: 15px;
    }
    .legal-page__subhead {
        font-size: 17px;
        margin: 24px 0 12px;
    }
    .legal-page__card {
        padding: 16px 20px;
    }
    .legal-page__card-label {
        font-size: 14px;
    }
    .legal-page__card-name {
        font-size: 15px;
    }
    .legal-page__card-grid {
        grid-template-columns: 90px 1fr;
        font-size: 14px;
    }
    .legal-page__purpose-card {
        padding: 16px 20px;
    }
    .legal-page__purpose-title {
        font-size: 14px;
    }
    .legal-page__purpose-data {
        font-size: 13px;
    }
    .legal-page__partner-card {
        padding: 16px 20px;
    }
    .legal-page__partner-name {
        font-size: 14px;
    }
    .legal-page__partner-detail,
    .legal-page__partner-purpose {
        font-size: 13px;
    }
}
