.legal-page { padding: 120px 0 80px; min-height: 100vh; }
.legal-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 32px; transition: opacity 0.2s; }
.legal-back:hover { opacity: 0.8; }
.legal-back svg { width: 18px; height: 18px; }
.legal-title { font-size: clamp(28px, 5vw, 42px); font-weight: 800; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.02em; }
.legal-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 40px; }
.legal-section { margin-bottom: 40px; scroll-margin-top: 100px; }
.legal-section h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.legal-section p, .legal-section li { font-size: 15px; line-height: 1.75; color: var(--text-muted); }
.legal-section p { margin-bottom: 12px; }
.legal-section ul { padding-left: 24px; margin-bottom: 12px; list-style: disc; }
.legal-section li { margin-bottom: 6px; }
.legal-section strong { color: var(--text-primary); font-weight: 600; }
.legal-highlight { background: rgba(14, 203, 129, 0.08); border: 1px solid rgba(14, 203, 129, 0.2); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 16px; }
.legal-highlight p { color: var(--text-primary); margin-bottom: 0; }
.legal-warn { background: rgba(246, 70, 93, 0.08); border: 1px solid rgba(246, 70, 93, 0.25); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 16px; }
.legal-warn p { color: #f6465d; margin-bottom: 0; }
.legal-nav { display: flex; gap: 12px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.legal-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: var(--radius-md); border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.legal-nav a:hover { border-color: var(--accent); color: var(--accent); }

/* instructions.html — full manual */
.instructions-subpage { padding-top: 100px; padding-bottom: 80px; }
.instructions-subpage .section-container { max-width: 960px; }
.instructions-subpage .legal-back { margin-bottom: 20px; }
.instructions-subpage .inst-page-hero { margin-bottom: 2.25rem; }
.instructions-subpage .inst-page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; }
.instructions-subpage .inst-lead { max-width: 48rem; }
.instructions-subpage .inst-screenshot-tip {
  margin: 1rem auto 0;
  max-width: 44rem;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(14, 203, 129, 0.92);
  background: rgba(14, 203, 129, 0.08);
  border: 1px solid rgba(14, 203, 129, 0.22);
  border-radius: 12px;
  text-align: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}
.inst-c0-block { margin-top: 0.5rem; }
.inst-c0-block h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin: 1.5rem 0 0.65rem; }
.inst-c0-block p { line-height: 1.7; }
.inst-c0-list { margin: 0.35rem 0 1.15rem; padding-left: 1.35rem; list-style: disc; color: var(--text-muted); }
.inst-c0-list li { margin-bottom: 0.65rem; line-height: 1.65; }
.inst-c0-block strong { color: var(--text-primary); font-weight: 600; }
.inst-c0-brands { margin-top: 1.25rem; font-size: 14px; line-height: 1.65; }
.inst-c0-brands a { color: var(--accent); font-weight: 600; text-decoration: none; }
.inst-c0-brands a:hover { text-decoration: underline; }

/* Application guide — docs layout (sidebar + “on this page”) */
.page-docs .docs-container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.page-docs .docs-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; font-size: 13px; line-height: 1.4; color: var(--text-muted); margin: 0 0 1.5rem; }
.page-docs .docs-breadcrumb__a { color: var(--accent); font-weight: 600; text-decoration: none; }
.page-docs .docs-breadcrumb__a:hover { text-decoration: underline; }
.page-docs .docs-breadcrumb__sep { opacity: 0.4; user-select: none; }
.page-docs .docs-breadcrumb__current { color: var(--text-primary); font-weight: 500; }
.page-docs .docs-layout { display: grid; grid-template-columns: min(240px, 28%) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
.page-docs .docs-main { min-width: 0; }
.page-docs .docs-hero { text-align: left; margin-left: 0; margin-right: 0; max-width: none; }
.page-docs .docs-hero p { text-align: left; margin-left: 0; margin-right: 0; max-width: 48rem; }
.page-docs .docs-hero .docs-hero__h1 { margin-top: 0.35rem; }
.page-docs .docs-hero .section-tag { margin-left: 0; }
.page-docs .docs-hero__meta { margin-bottom: 0.2rem; }
.page-docs .docs-hero__lead { margin-top: 0.75rem; }
.page-docs .docs-hero__tip { text-align: left; margin: 1rem 0 0; max-width: 44rem; }
.page-docs .docs-sidebar { position: sticky; top: 5.5rem; align-self: start; padding: 0.25rem 0 1rem; }
.page-docs .docs-sidebar__kicker {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
  margin: 0 0 0.35rem;
}
.page-docs .docs-sidebar__title { font-size: 0.8rem; font-weight: 700; color: var(--text-primary); margin: 0 0 1rem; }
.page-docs .docs-toc { display: flex; flex-direction: column; gap: 1.25rem; }
.page-docs .docs-toc__label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(132, 142, 156, 0.95);
  margin: 0 0 0.35rem 0.1rem; padding: 0;
}
.page-docs a.docs-toc__link {
  display: block; padding: 0.3rem 0.35rem 0.3rem 0.65rem; margin: 0 0 0.2rem; border-left: 2px solid rgba(48, 54, 61, 0.85);
  font-size: 13px; line-height: 1.4; color: var(--text-muted); text-decoration: none; font-weight: 500;
  border-radius: 0 4px 4px 0; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.page-docs a.docs-toc__link:hover { color: var(--text-primary); background: rgba(14, 203, 129, 0.06); border-left-color: rgba(14, 203, 129, 0.4); }
.page-docs a.docs-toc__link.is-active { color: #0ecb81; font-weight: 600; border-left-color: #0ecb81; background: rgba(14, 203, 129, 0.1); }
.page-docs .docs-toc-mobile { display: none; margin: 0 0 1.5rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(0, 0, 0, 0.18); }
.page-docs .docs-toc-mobile[open] { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2); }
.page-docs .docs-toc-mobile__summary { cursor: pointer; list-style: none; padding: 0.75rem 1rem; font-size: 14px; font-weight: 600; color: var(--text-primary); user-select: none; }
.page-docs .docs-toc-mobile__summary::-webkit-details-marker { display: none; }
.page-docs .docs-toc-mobile__nav { display: flex; flex-direction: column; gap: 0.1rem; padding: 0 0.5rem 0.85rem 0.5rem; border-top: 1px solid var(--border); }
.page-docs .docs-toc-mobile__nav a.docs-toc__link { border-left: 2px solid rgba(48, 54, 61, 0.85); margin: 0 0 0.1rem; padding: 0.4rem 0.45rem 0.4rem 0.6rem; }
.instructions-subpage .inst-chapter { scroll-margin-top: 5.5rem; }
.instructions-subpage .docs-callout.inst-quick { margin-top: 0.5rem; }
@media (min-width: 1024px) {
  .page-docs .docs-toc-mobile { display: none; }
}
@media (max-width: 1023px) {
  .page-docs .docs-layout { display: block; }
  .page-docs .docs-sidebar { display: none; }
  .page-docs .docs-toc-mobile { display: block; }
}
