/* SUBOX 공통 레이아웃으로 감싼 옛 화면(공지 · 문의 · 오류 · CMS 페이지 · 마이페이지 등)의 본문 기본 모양.
 * layouts/main.php 의 SUBOX 분기에서만 싣는다. 옛 스타일(tokens · components)보다 뒤에 와서 글꼴 · 색 · 폼을 SUBOX 톤으로 맞춘다. */
.sb-legacy { padding-top: 28px; padding-bottom: 40px; color: var(--ink); font-family: var(--body, inherit); }
.sb-legacy .public-container { max-width: 820px; margin: 0 auto; background: var(--card); border: 2.5px solid var(--line); border-radius: var(--radius, 22px); box-shadow: var(--shadow, 6px 6px 0 var(--line)); padding: clamp(22px, 4vw, 40px); }
.sb-legacy h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 38px); line-height: 1.25; color: var(--ink); }
.sb-legacy h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin-top: 24px; }
.sb-legacy p { line-height: 1.75; color: var(--ink-2); }
.sb-legacy a { color: inherit; }

/* 문의 폼 */
.sb-legacy #contact-form { margin-top: 20px; display: grid; gap: 14px; }
.sb-legacy .contact-field { display: grid; gap: 6px; }
.sb-legacy .contact-field label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.sb-legacy input[type="text"], .sb-legacy input[type="email"], .sb-legacy input[type="tel"], .sb-legacy input[type="number"], .sb-legacy input[type="date"], .sb-legacy input[type="datetime-local"], .sb-legacy input[type="url"], .sb-legacy input[type="password"], .sb-legacy select, .sb-legacy textarea {
  width: 100%; min-height: 46px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); padding: 10px 14px; font: inherit; font-size: 15px; }
.sb-legacy textarea { min-height: 140px; resize: vertical; }
.sb-legacy input:focus, .sb-legacy select:focus, .sb-legacy textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--sun); }
.sb-legacy .contact-options { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.sb-legacy .contact-options label, .sb-legacy #contact-form > label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.sb-legacy .contact-field small { font-size: 12px; color: var(--ink-3); }
.sb-legacy .contact-trap { position: absolute; left: -9999px; }
.sb-legacy #contact-form button[type="submit"] { justify-self: start; height: 50px; padding: 0 28px; border: 2.5px solid var(--line); border-radius: 14px; background: var(--sun); color: #161513; font: inherit; font-weight: 900; font-size: 16px; cursor: pointer; box-shadow: 3px 3px 0 var(--line); }
.sb-legacy #contact-result { font-weight: 800; }

/* 오류(404 등) */
.sb-legacy .err-404-container { text-align: center; }
.sb-legacy .err-404-art { width: min(320px, 80%); height: auto; margin: 0 auto 8px; display: block; }
.sb-legacy .err-404-label { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 99px; padding: 3px 12px; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.sb-legacy .err-404-container h1 { margin-top: 12px; }
.sb-legacy .err-404-message { margin-top: 8px; }
.sb-legacy .err-404-home { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; height: 48px; padding: 0 22px; border: 2.5px solid var(--line); border-radius: 14px; background: var(--sun); color: #161513; font-weight: 900; box-shadow: 3px 3px 0 var(--line); text-decoration: none; }
