/* U-Work legal pages (개인정보 처리방침, 고객지원). Loaded after /app.css: same tokens, top bar and footer as the
   portal; only the long-text article layout is added here. CSP is style-src 'self' — no inline styles in the pages. */
.legal { background: var(--canvas); border-bottom: 1px solid var(--line); }
.legal-inner { width: min(860px, 100% - 48px); margin-inline: auto; padding-block: 56px 88px; }
.legal-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.02em; }
.legal-meta { margin-top: 12px; color: var(--muted); font-size: 15px; }
.legal-meta strong { color: var(--ink); font-weight: 600; }
.legal-intro { margin-top: 20px; color: var(--ink-2); font-size: 17px; }

.toc {
  margin-top: 32px; padding: 22px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.toc-title { font-size: 15px; font-weight: 600; color: var(--table-head-text); }
.toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; padding-block: 3px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--action); text-decoration: underline; }

.article {
  margin-top: 24px; padding: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.article section + section { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.article section { scroll-margin-top: 80px; }
.article h2 { font-size: 21px; }
.article h3 { margin-top: 22px; font-size: 17px; color: var(--ink); }
.article p, .article li { color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.article p { margin-top: 12px; }
.article ul, .article ol { margin: 12px 0 0; padding-left: 22px; }
.article li + li { margin-top: 6px; }
.article li::marker { color: var(--action); }
.article a { color: var(--action); }
.note { margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--canvas); color: var(--muted); font-size: 15px; }

.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--canvas); color: var(--table-head-text); font-weight: 600; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td { color: var(--ink-2); }

.contact { margin: 14px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.contact div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 12px 16px; }
.contact div + div { border-top: 1px solid var(--line); }
.contact dt { color: var(--table-head-text); font-weight: 600; font-size: 15px; }
.contact dd { margin: 0; color: var(--ink); }

/* Values that the operator must still confirm. A page containing one is never published (apply.py refuses). */
mark.todo { background: #fff3c4; color: #6b4e00; padding: 0 4px; border-radius: 4px; font-weight: 600; }

.footer-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }

@media (max-width: 640px) {
  .legal-inner { width: calc(100% - 32px); padding-block: 36px 64px; }
  .legal-intro { font-size: 16px; }
  .toc { padding: 18px 20px; }
  .toc ol { columns: 1; }
  .article { padding: 22px 18px; }
  .article section + section { margin-top: 32px; padding-top: 28px; }
  .article h2 { font-size: 19px; }
  .contact div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media print {
  .topbar, .toc, .footer { display: none; }
  .legal, .article { background: #fff; border: 0; padding: 0; }
}

/* Phones: tables become stacked cards; each cell shows its column title (data-label). */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap tr { border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .table-wrap tr + tr { margin-top: 10px; }
  .table-wrap td { padding: 8px 14px; border-bottom: 0; }
  .table-wrap td:first-child { padding-top: 12px; color: var(--ink); font-weight: 600; background: var(--canvas); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .table-wrap td:last-child { padding-bottom: 12px; }
  .table-wrap td[data-label]:not(:first-child)::before {
    content: attr(data-label); display: block; color: var(--table-head-text); font-size: 13px; font-weight: 600;
  }
}
