/* legal.html — page-specific styles */
[data-theme="light"] .nav-logo { color: #bf601a; }

.layout { display: flex; max-width: 1040px; margin: 0 auto; padding: 56px 6% 80px; gap: 56px; }

.sidebar { width: 200px; flex-shrink: 0; }
.sidebar-nav { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 5px 10px; border-radius: 5px; border-left: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.sidebar-nav a:hover { color: var(--text); border-left-color: var(--accent); }
.sidebar-label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding: 12px 10px 4px; }

@media (max-width: 720px) { .layout { flex-direction: column; } .sidebar { width: 100%; } .sidebar-nav { position: static; flex-direction: row; flex-wrap: wrap; } }

.content { flex: 1; min-width: 0; }
.doc-title { font-size: clamp(28px, 5vw, 44px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 10px; }
.doc-meta { font-size: 13px; color: var(--muted); margin-bottom: 48px; }
.doc-meta a { color: var(--accent); text-decoration: none; }

.doc-section { margin-bottom: 52px; }
.doc-section h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 16px; padding-top: 4px; color: var(--text); }
.doc-section h3 { font-size: 15px; font-weight: 700; color: var(--muted); margin: 20px 0 8px; }
.doc-section p { font-size: 15px; color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul { margin: 10px 0 14px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc-section ul li { font-size: 15px; color: var(--muted); padding-left: 20px; position: relative; line-height: 1.6; }
.doc-section ul li::before { content: '·'; position: absolute; left: 5px; color: var(--accent); font-weight: 900; font-size: 18px; line-height: 1.1; }
.doc-section a { color: var(--accent); text-decoration: none; }
.doc-section a:hover { text-decoration: underline; }

.callout { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 16px 20px; margin: 20px 0; }
.callout p { font-size: 14px; color: var(--muted); margin: 0; }
.callout strong { color: var(--text); }

.section-rule { border: none; border-top: 1px solid var(--border); margin: 52px 0; }
