/* Full legacy content, presented with the shared Octodus design tokens. */
.legacy-page .legacy-content { width: 100%; }
.legacy-page .legacy-section { padding: clamp(64px, 8vw, 118px) max(28px, calc((100vw - 1240px)/2)); border-bottom: 1px solid var(--line); }
.legacy-page .legacy-section:nth-of-type(even) { background: var(--surface-2); }
.legacy-page .legacy-hero { min-height: 520px; padding-top: clamp(140px, 16vw, 220px); padding-bottom: clamp(75px, 9vw, 130px); background: var(--surface-2); border: 0; }
.legacy-page .legacy-hero h1 { max-width: 1020px; margin: 20px 0 32px; font-size: clamp(52px, 7.5vw, 108px); font-weight: 600; line-height: .98; letter-spacing: -.065em; }
.legacy-page .legacy-section h2 { max-width: 920px; margin: 0 0 28px; font-size: clamp(35px, 4vw, 60px); font-weight: 600; line-height: 1.1; letter-spacing: -.05em; }
.legacy-page .legacy-section h3 { max-width: 800px; margin: 36px 0 12px; font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.legacy-page .legacy-section h4 { margin: 24px 0 8px; font-size: 19px; }
.legacy-page .legacy-section p, .legacy-page .legacy-section li, .legacy-page .legacy-section blockquote { max-width: 850px; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.7; }
.legacy-page .legacy-hero p { max-width: 760px; font-size: clamp(19px, 1.8vw, 24px); }
.legacy-page .legacy-section p { margin: 0 0 20px; }
.legacy-page .legacy-section ul, .legacy-page .legacy-section ol { max-width: 880px; padding-left: 1.5em; margin: 20px 0 32px; }
.legacy-page .legacy-section li { padding: 5px 0; }
.legacy-page .legacy-section a:not(.button) { color: var(--accent-deep); text-decoration: underline; text-underline-offset: .2em; }
.legacy-page .legacy-section a:not(.button):hover { color: var(--accent); }
.legacy-page .legacy-section img { max-width: 100%; height: auto; object-fit: contain; margin: 30px 0; }
.legacy-page .legacy-section figure { max-width: 100%; margin: 40px 0; }
.legacy-page .legacy-section figcaption { color: var(--muted); font-size: 14px; }
.legacy-page .legacy-section table { display: block; width: 100%; max-width: 1120px; overflow-x: auto; border-collapse: collapse; margin: 28px 0; }
.legacy-page .legacy-section th, .legacy-page .legacy-section td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legacy-page .legacy-section details { max-width: 900px; padding: 24px 0; border-top: 1px solid var(--line); }
.legacy-page .legacy-section details summary { cursor: pointer; font-size: clamp(20px, 2vw, 28px); font-weight: 600; }
.legacy-page .legacy-section button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; }
.legacy-page .legacy-section a[href*="t.me/octodus_bot"], .legacy-page .legacy-section a[href*="dash.octodus.com"] { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; margin: 12px 12px 12px 0; border: 1px solid transparent; border-radius: 999px; background: var(--accent-bright); color: var(--accent-ink); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out); }
.legacy-page .legacy-section a[href*="t.me/octodus_bot"]:hover, .legacy-page .legacy-section a[href*="dash.octodus.com"]:hover { background: var(--accent-deep); color: var(--bg); transform: translateY(-1px); }
.legacy-page .legacy-section > div, .legacy-page .legacy-section > article { max-width: 1240px; margin-inline: auto; }
.legacy-page .legacy-source-note { max-width: 1240px; margin: 40px auto 0; padding-inline: 28px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .legacy-page .legacy-section { padding: 70px 24px; }
  .legacy-page .legacy-hero { padding-top: 120px; min-height: 0; }
  .legacy-page .legacy-section th, .legacy-page .legacy-section td { padding: 12px; min-width: 150px; }
  .legacy-page .legacy-section button { width: 100%; margin-top: 8px; }
}
