/* Document pages: manual and privacy. Built on the tokens in site.css. */
.doc-head { background: var(--navy-950); color: var(--on-dark); padding: clamp(48px, 7vw, 88px) 0; }
.doc-head h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.doc-head p { margin-top: 14px; max-width: 46em; font-size: 1.125rem; color: var(--on-dark-muted); }
.doc-body { padding: var(--section) var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; }

.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.sidebar { position: sticky; top: 92px; max-height: calc(100svh - 116px); overflow: auto; padding-right: 8px; }
.sidebar ul { list-style: none; }
.sidebar a { display: block; padding: 5px 0 5px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: 0.9375rem; text-decoration: none; }
.sidebar a:hover { color: var(--ink); border-left-color: #b7c2d6; }
.sidebar .section-header a { margin-top: 18px; padding-bottom: 6px; border-left-color: transparent; color: var(--ink); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.sidebar .section-header:first-child a { margin-top: 0; }

.prose { max-width: 44rem; }
.prose section { padding-bottom: clamp(40px, 5vw, 64px); }
.prose section:last-child { padding-bottom: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 20px; padding-top: 8px; }
.prose h3 { font-size: 1.1875rem; font-weight: 650; margin: 32px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; padding-left: 0.2em; }
.prose strong { font-weight: 600; }
.prose code, .code-pill, .pill, .perm-badge { font-family: var(--mono); font-size: 0.875em; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

.callout { background: var(--accent-soft); border: 1px solid #cfdcfb; border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.callout-label { display: block; margin-bottom: 4px; font-weight: 600; }
.callout-tip { background: #eaf7f0; border-color: #c4e6d3; border-left-color: var(--ok); }
.callout-warn { background: #fdeeed; border-color: #f4c8c4; border-left-color: var(--bad); }

.screen-mock { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; margin: 22px 0; }
.screen-mock .screen-title { font-weight: 600; padding: 14px 0 6px; }
.screen-mock .row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.screen-mock .screen-title + .row { border-top: 0; }
.screen-mock .label { color: var(--muted); }
.screen-mock .value { text-align: right; max-width: 60%; font-weight: 500; }

.phase-legend { display: flex; gap: 10px 24px; flex-wrap: wrap; margin: 16px 0; }
.phase-item { display: flex; align-items: center; gap: 10px; }
.phase-dot { width: 14px; height: 14px; flex-shrink: 0; border-radius: 4px; background: #e53935; }
.phase-item:nth-child(2) .phase-dot { background: #42a5f5; }
.phase-item:nth-child(3) .phase-dot { background: #1e5fc4; }
.phase-item:nth-child(4) .phase-dot { background: #ff4f8b; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.stat-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-card .sv { font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.stat-card .sl { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }

.faq-item { padding: 0 0 24px; }
.faq-q { font-size: 1.0625rem; font-weight: 650; line-height: 1.3; margin-bottom: 6px; }

.shot { width: min(100%, 260px); margin: 24px 0; padding: 6px; background: var(--navy-800); border-radius: 30px; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; aspect-ratio: 460 / 1000; object-fit: cover; object-position: 50% 0; border-radius: 24px; }

/* privacy */
.policy ul { list-style: none; padding-left: 0; }
.policy .check { display: none; }
.policy h2 { margin-top: 8px; }
.doc-body > .policy { max-width: 46rem; }

.footer-simple { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 36px; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
  .screen-mock .row { flex-direction: column; gap: 4px; }
  .screen-mock .value { max-width: none; text-align: left; }
}
