/*
  문서형 하위 페이지(참여 기업 안내 /company/, 개인정보 처리 안내 /privacy/, 404)를 홈 랜딩 톤으로 그린다.
  홈의 「참가 안내」(#guide) 섹션을 기준으로 삼았다: #0B0B10 바탕, #111319 카드 + 흰색 10% 선, radius 20,
  라벨 알약(흰색 10% 바탕·22% 선), 표 머리 아래 흰 선, 글자 흰색 100·70·50%, 파란 면 #003DFF, 다크 위 파란 글자 #8FB0FF.
  색 토큰은 site-chrome.css의 --ft-*를 쓴다. 이 파일과 site-chrome.css만 불러오면 된다.
*/
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; background: var(--ft-bg-1); scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 70% 520px at 50% 0, rgba(0, 61, 255, .20), rgba(0, 61, 255, 0) 72%) no-repeat, var(--ft-bg-1);
  color: var(--ft-text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
b, strong, th, h1, h2, h3 { font-weight: 600; }
a { color: var(--ft-accent-ink); text-underline-offset: 4px; }
a:hover { color: #b9cbff; }
a:focus-visible { outline: 2px solid var(--ft-accent-ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ft-accent); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* ===== 본문 틀 ===== */
.legal-main { width: calc(100% - 72px); max-width: 880px; margin: 0 auto; padding: 96px 0 144px; }
.co-main { max-width: 1128px; }
.legal-main .legal-date, .error-page .legal-date {
  display: inline-flex; align-items: center; margin: 0; padding: 6px 16px; border-radius: 999px;
  background: var(--ft-chip); border: 1px solid var(--ft-line-3); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.45;
}
.legal-main h1 { margin: 20px 0 0; font-size: 48px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; text-wrap: balance; }
.legal-main section { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--ft-line); }
.legal-main h1 + section { margin-top: 56px; }
.legal-main h2 { margin: 0 0 16px; font-size: 26px; font-weight: 600; line-height: 1.45; letter-spacing: -0.02em; }
.legal-main p, .legal-main li { margin: 0; color: var(--ft-text-2); font-size: 17px; line-height: 1.75; }
.legal-main p + p, .legal-main ul + p, .legal-main p + ul { margin-top: 12px; }
.legal-main ul { margin: 0; padding-left: 22px; }
.legal-main li + li { margin-top: 6px; }
.legal-main li::marker { color: var(--ft-text-3); }
.legal-main b, .legal-main strong { color: #fff; }

/* ===== 참여 기업 안내 ===== */
.legal-main .co-lead { max-width: 760px; margin: 24px 0 0; color: var(--ft-text-2); font-size: 18px; line-height: 1.75; }
.co-main h1 { line-height: 1.3; }
.co-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 48px 0 0; }
.co-facts div { padding: 28px 24px; border-radius: 20px; background: var(--ft-card); border: 1px solid var(--ft-line); }
.co-facts dt { color: var(--ft-text-2); font-size: 15px; line-height: 1.4; }
.co-facts dd { margin: 10px 0 0; color: #fff; font-size: 22px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.legal-main .co-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.co-actions a {
  display: inline-flex; align-items: center; justify-content: center; height: 55px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s;
}
.co-primary, .co-actions .co-primary { background: var(--ft-accent); color: #fff; }
.co-primary:hover { background: var(--ft-accent-hover); color: #fff; }
.co-download--line, .co-mail { border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; }
.co-download--line:hover, .co-mail:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); color: #fff; }
.co-download::before {
  content: ""; width: 16px; height: 16px; margin-right: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M4 20h16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M4 20h16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.co-actions a:focus-visible { outline: 2px solid var(--ft-accent-ink); outline-offset: 3px; }
.co-actions + section { margin-top: 96px; }

.co-gains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: gain; }
.co-gains li { margin: 0; padding: 28px 24px; border-radius: 20px; background: var(--ft-card); border: 1px solid var(--ft-line); color: var(--ft-text-2); font-size: 15px; line-height: 1.7; counter-increment: gain; }
.co-gains li + li { margin-top: 0; }
.co-gains li:first-child { border-color: rgba(0, 61, 255, .7); background: linear-gradient(180deg, rgba(0, 61, 255, .22), rgba(0, 61, 255, .06)), var(--ft-card); }
.co-gains b { display: block; margin-bottom: 10px; color: #fff; font-size: 18px; line-height: 1.45; }
.co-gains b::before { content: counter(gain, decimal-leading-zero) "  "; color: var(--ft-accent-ink); font-variant-numeric: tabular-nums; }
.legal-main .co-must { margin: 20px 0 0; padding: 22px 24px; border-radius: 16px; background: var(--ft-accent-soft); border: 1px solid rgba(0, 61, 255, .4); }
.co-must b { display: block; margin-bottom: 6px; color: var(--ft-accent-ink); }
.co-main section p + ul, .co-main section p + table { margin-top: 16px; }

.co-table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.co-table th, .co-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--ft-line); text-align: left; vertical-align: top; }
.co-table thead th { padding-top: 0; padding-bottom: 12px; border-bottom: 1px solid #fff; color: var(--ft-text-3); font-size: 13px; line-height: 1.4; }
.co-table tbody th { width: 136px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-table td { color: var(--ft-text-2); }
.co-items td:last-child { width: 104px; padding-right: 0; color: #fff; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ===== 404 ===== */
.error-page { width: calc(100% - 72px); max-width: 880px; min-height: calc(100svh - 64px - 280px); margin: 0 auto; padding: 160px 0 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-page h1 { margin: 20px 0 0; font-size: 48px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.error-page p:not(.legal-date) { margin: 20px 0 0; color: var(--ft-text-2); font-size: 17px; line-height: 1.7; }
.error-page .legal-date + h1 { margin-top: 20px; }
.error-page .ft-button { margin-top: 40px; display: inline-flex; align-items: center; gap: 8px; height: 55px; padding: 0 32px; border-radius: 999px; background: #fff; color: var(--ft-accent); font-size: 17px; font-weight: 600; text-decoration: none; }
.error-page .ft-button:hover { background: #eef2ff; color: var(--ft-accent); }
.error-page .ft-button svg { width: 15.75px; height: 15px; }

@media (max-width: 959px) {
  .legal-main { width: calc(100% - 40px); padding: 64px 0 96px; }
  .legal-main .legal-date, .error-page .legal-date { font-size: 13px; padding: 5px 12px; }
  .legal-main h1, .error-page h1 { font-size: 30px; line-height: 1.4; }
  .legal-main section { margin-top: 48px; padding-top: 40px; }
  .legal-main h1 + section { margin-top: 40px; }
  .legal-main h2 { font-size: 20px; margin-bottom: 12px; }
  .legal-main p, .legal-main li { font-size: 15px; }
  .legal-main .co-lead { font-size: 16px; }
  .co-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 32px; }
  .co-facts div { padding: 20px; border-radius: 16px; }
  .co-facts dd { font-size: 18px; margin-top: 6px; }
  .co-actions a { width: 100%; height: 52px; }
  .co-actions + section { margin-top: 64px; }
  .co-gains { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .co-gains li { padding: 22px 20px; border-radius: 16px; }
  .co-table { font-size: 15px; }
  .co-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .co-table tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--ft-line); }
  .co-table th, .co-table td { display: block; width: auto; padding: 2px 0; border: 0; white-space: normal; }
  .co-table tbody th { margin-bottom: 6px; }
  .co-items td:last-child { width: auto; }
  .co-items td:last-child::before { content: "기한 "; color: var(--ft-text-3); font-weight: 400; }
  .co-schedule td::before { display: block; margin-bottom: 2px; color: var(--ft-text-3); font-size: 13px; }
  .co-schedule td:nth-of-type(1)::before { content: "귀사에서 하실 일"; }
  .co-schedule td:nth-of-type(2)::before { content: "포워드톤이 하는 일"; }
  .co-schedule td + td { margin-top: 10px; }
  .error-page { width: calc(100% - 40px); padding: 96px 0; }
}
