.legal-page main > section:first-child h1 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.4;
    text-wrap: balance;
}

.legal-content {
    overflow-wrap: anywhere;
}

.legal-content p,
.legal-content li {
    color: #444;
    font-size: 16px;
    line-height: 1.9;
}

.legal-content p {
    margin: 0 0 1.2rem;
}

.legal-content h2 {
    margin: 2.5rem 0 1rem;
    color: #222;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.5;
}

.legal-content h3 {
    margin: 1.6rem 0 0.6rem;
    color: #222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content ul > li {
    list-style-type: disc;
}

.legal-content ol > li {
    list-style-type: decimal;
}

.legal-content a {
    color: var(--primary-orange, #ff4b00);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.legal-content a:hover {
    color: #c43a00;
}

.legal-content a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.legal-content .policy-date {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 2rem;
}

.legal-purpose-list > li {
    padding-left: 0.25rem;
}

.legal-purpose-list h3 {
    margin-top: 1rem;
}

.legal-disclosure {
    display: grid;
    grid-template-columns: minmax(180px, 28%) minmax(0, 1fr);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.legal-disclosure dt,
.legal-disclosure dd {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.legal-disclosure dt {
    background: #f9fafb;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.legal-disclosure dd {
    min-width: 0;
    margin: 0;
}

.legal-disclosure dt:nth-last-of-type(1),
.legal-disclosure dd:last-child {
    border-bottom: 0;
}

.legal-disclosure dd > :last-child {
    margin-bottom: 0;
}

.contact-company {
    max-width: 760px;
    margin: 24px auto 0;
    padding: 0 24px;
    line-height: 1.8;
}

.contact-company p:first-child {
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-company p:last-child {
    font-size: 13px;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .legal-content h2 {
        font-size: 21px;
    }

    .legal-disclosure {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal-disclosure dt,
    .legal-disclosure dd {
        padding: 20px;
    }

    .legal-disclosure dt {
        border-bottom: 0;
    }

}
