.legal-page { padding: 48px 0 64px; background: #ffffff; }
.legal-page-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.legal-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.legal-toc details { border: 1px solid #e5e7eb; border-radius: 12px; background: #f9fafb; padding: 14px 16px; }
.legal-toc summary { cursor: pointer; font-weight: 700; color: #111827; font-size: 15px; }
.legal-toc ol { list-style: none; margin: 12px 0 0; padding: 0; }
.legal-toc li { margin: 0; }
.legal-toc a { display: block; padding: 5px 0; font-size: 13.5px; line-height: 1.35; color: #4b5563; text-decoration: none; }
.legal-toc a:hover { color: #111827; text-decoration: underline; }

.legal-content { max-width: 780px; color: #374151; font-size: 16px; line-height: 1.7; }
.legal-content .legal-subtitle { font-size: 18px; font-weight: 600; color: #111827; margin: 0 0 4px; }
.legal-content .legal-meta { font-size: 14px; color: #6b7280; margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid #e5e7eb; }
.legal-content h4 { font-size: 20px; font-weight: 700; color: #111827; margin: 36px 0 12px; scroll-margin-top: 96px; }
.legal-content h5 { font-size: 16px; font-weight: 700; color: #1f2937; margin: 22px 0 8px; }
.legal-content p { margin: 0 0 12px; }
.legal-content p strong { color: #111827; }
.legal-content .legal-list { margin: 0 0 14px; padding-left: 4px; list-style: none; }
.legal-content .legal-list li { margin: 0 0 6px; padding-left: 4px; }

.legal-table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid #e5e7eb; border-radius: 12px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.legal-table thead th { background: #f3f4f6; color: #111827; font-weight: 700; }
.legal-table tbody th { font-weight: 600; color: #111827; background: #fafafa; }
.legal-table tbody tr:last-child th, .legal-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
    .legal-page { padding: 28px 0 48px; }
    .legal-page-container { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .legal-toc { position: static; max-height: none; }
    .legal-content { font-size: 15px; }
    .legal-content h4 { font-size: 18px; margin-top: 28px; }
    .legal-table { min-width: 560px; }
}
