/* Plain legal typography matches the official privacy-policy page. */
.legal-page { padding-top: 64px; }
.legal-heading { text-align: center; margin-bottom: 48px; }
.legal-heading h1 { font-family: "Noto Sans JP", sans-serif; font-size: clamp(24px, 3vw, 28px); font-weight: 700; margin: 0 0 16px; }
.legal-heading p { margin: 0; font-size: 16px; }
.legal-heading .legal-revision { margin-top: 8px; font-size: 14px; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-toc { position: sticky; top: 100px; max-height: calc(100dvh - 120px); overflow-y: auto; border-top: 1px solid #777; border-bottom: 1px solid #777; }
.legal-toc summary { padding: 16px 4px; font-size: 18px; font-weight: 700; cursor: pointer; }
.legal-toc ol { list-style: none; margin: 0; padding: 0 0 12px; }
.legal-toc a { display: block; padding: 9px 4px; font-size: 14px; line-height: 1.7; text-decoration: underline; text-underline-offset: .2em; }
.legal-content { min-width: 0; font-family: "Noto Sans JP", sans-serif; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.legal-article { margin-bottom: 40px; }
.legal-article h2 { font-size: 20px; font-weight: 700; line-height: 1.7; margin: 0 0 16px; scroll-margin-top: 110px; }
.legal-article ol { margin: 0; padding-left: 1.6em; }
.legal-article li { white-space: pre-line; margin-bottom: 16px; padding-left: .3em; }
.legal-skip { position: fixed; z-index: 60; top: 8px; left: 8px; padding: 12px; background: #fff; transform: translateY(-150%); }
.legal-skip:focus { transform: none; }
.legal-page a:focus-visible, .legal-toc summary:focus-visible, .legal-skip:focus-visible { outline: 3px solid #8b660d; outline-offset: 3px; }
.legal-article h2:focus { outline: 2px solid #8b660d; outline-offset: 6px; }
@media (max-width: 760px) {
 .legal-page { padding-top: 40px; }
 .legal-heading { margin-bottom: 32px; }
 .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
 .legal-toc { position: static; max-height: none; }
 .legal-toc a { min-height: 44px; }
 .legal-article h2 { font-size: 18px; scroll-margin-top: 90px; }
}
