.legal-page { --anchor-h: 0px; }
.legal-main { padding-block: var(--section-y); }
.legal-title-block { margin-bottom: 32px; }
.legal-title-block h1 { font-size: clamp(30px,1.2vw + 24px,40px); }
.legal-intro { margin-top: 16px; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--muted); }
.legal-meta { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.legal-home-link { display: none; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; white-space: nowrap; }
.legal-home-link:hover { text-decoration: underline; }
.legal-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
.legal-document { min-width: 0; max-width: 720px; }
.legal-document-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); }
.sidebar-label { display: none; }
.legal-document-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 6px; border-radius: var(--r-tab); font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.legal-document-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.legal-toc { margin-top: 12px; }
.legal-toc summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--text); list-style: none; cursor: pointer; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after { content: ''; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-right: 2px; }
.legal-toc[open] summary::after { transform: rotate(225deg); }
.legal-toc strong { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 24px 0 8px; }
#legal-toc-list { list-style: none; padding: 0; }
#legal-toc-list a { display: flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.5; color: var(--muted); padding: 6px 0 6px 12px; box-shadow: inset 2px 0 0 var(--line); }
#legal-toc-list a:hover { color: var(--text); }
#legal-toc-list a[aria-current="location"] { color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.legal-support { display: none; }
.legal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.legal-language-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); }
.legal-language-group button { height: 44px; min-width: 72px; border: 0; border-radius: var(--r-tab); background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.legal-language-group button.active { background: var(--accent); color: var(--on-accent); }
.print-button { height: 44px; padding-inline: 14px; }
.legal-summary { padding: 20px 24px; margin-bottom: 32px; background: var(--surface); border-radius: var(--r-panel); }
.legal-summary h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.legal-summary ul { font-size: 15px; line-height: 1.7; }
.legal-summary li + li { margin-top: 6px; }
.legal-summary__note { font-size: 13px; color: var(--muted); margin-top: 8px; }
#content-ko, #content-en { color: var(--text-2); font-size: 16px; line-height: 1.8; }
:is(#content-ko, #content-en) h2 { font-size: 19px; font-weight: 650; color: var(--text); margin-top: 40px; margin-bottom: 16px; scroll-margin-top: calc(var(--header-h) + 16px); }
:is(#content-ko, #content-en) > h2:first-child { margin-top: 0; }
:is(#content-ko, #content-en) p { margin-bottom: 16px; }
:is(#content-ko, #content-en) :is(ul,ol) { padding-left: 1.25em; }
:is(#content-ko, #content-en) li { margin-bottom: 6px; }
:is(#content-ko, #content-en) strong { font-weight: 650; color: var(--text); }
:is(#content-ko, #content-en) a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
:is(#content-ko, #content-en) .alert { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 20px 24px; margin-block: 32px; }
:is(#content-ko, #content-en) .alert h2 { margin-top: 0; }
:is(#content-ko, #content-en) .mt-5 { margin-top: 48px; }
:is(#content-ko, #content-en) .text-muted { color: var(--muted); font-size: 15px; }
html:not(.js-enabled) #content-en[hidden] { display: block !important; margin-top: 48px; }
.legal-noscript { font-size: 14px; color: var(--muted); margin-top: 24px; }
@media (min-width: 768px) { .legal-home-link { display: inline-flex; } }
@media (min-width: 1024px) {
  .legal-page .nav-actions { margin-left: auto; }
  .legal-layout { grid-template-columns: 240px minmax(0,720px); column-gap: 64px; align-items: start; }
  .legal-sidebar { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
  .legal-document-nav { display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; border-radius: 0; }
  .sidebar-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
  .legal-document-nav a { justify-content: start; border-radius: 0; padding-inline: 12px; font-weight: 500; color: var(--text-2); box-shadow: inset 2px 0 0 var(--line); }
  .legal-document-nav a[aria-current="page"] { color: var(--text); font-weight: 600; background: transparent; box-shadow: inset 2px 0 0 var(--accent); }
  .legal-toc summary { display: none; }
  .legal-support { display: block; margin-top: 24px; background: var(--surface); border-radius: var(--r-panel); padding: 20px; }
  .legal-support .icon { color: var(--muted); margin-bottom: 12px; }
  .legal-support strong { display: block; color: var(--text); font-size: 15px; font-weight: 650; }
  .legal-support p { font-size: 14px; color: var(--muted); margin-top: 8px; }
  .legal-support .button { height: 44px; margin-top: 12px; }
  #content-ko, #content-en { font-size: 17px; }
  :is(#content-ko, #content-en) h2 { font-size: 22px; margin-top: 48px; }
}
@media print {
  .site-header, .legal-sidebar, .legal-toolbar, .legal-summary, .site-footer, .back-to-top { display: none !important; }
  .legal-page, .legal-document { background: white; color: black; }
  .legal-layout { display: block; }
  .legal-main { width: 100%; padding: 0; }
  #content-ko, #content-en, :is(#content-ko, #content-en) :is(h2,strong,a) { color: black; }
  :is(#content-ko, #content-en) h2 { break-after: avoid; }
  :is(#content-ko, #content-en) a { text-decoration: underline; }
}
:is(#content-ko, #content-en) a { display: inline-block; min-width: 44px; min-height: 44px; vertical-align: middle; }
