/* EULA page: preserve legal text while optimizing navigation and reading comfort. */
:root { --muted: #50514c; }
html { scroll-padding-top: calc(var(--nav-h) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Space Grotesk", system-ui, sans-serif; line-height: 1.68; }
a { text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 5; transform: translateY(-150%); border: 2px solid; padding: 10px 14px; background: var(--paper-2); box-shadow: var(--shadow-sm); font-family: "Space Mono", monospace; font-weight: 700; }
.skip:focus { transform: none; }

.layout { width: min(1180px, calc(100% - 40px)); margin: 34px auto 80px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); border: 2px solid; border-radius: var(--radius); padding: 14px; background: var(--paper-2); box-shadow: var(--shadow-sm); }
.toc strong { display: block; margin: 0 8px 8px; color: var(--blue); font-family: "Space Mono", monospace; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.toc a { display: flex; align-items: center; min-height: 44px; border-radius: 6px; padding: 8px; font-size: .92rem; text-decoration: none; }
.toc a:hover, .toc a:focus-visible { background: var(--blue-soft); }

article { min-width: 0; border: 2px solid; border-radius: var(--radius); padding: clamp(28px, 5vw, 58px); background: var(--paper-2); box-shadow: var(--shadow); }
article > :not(h1):not(h2):not(h3):not(hr):not(.notice) { max-width: var(--reading); }
h1 { max-width: 14ch; margin: 0 0 28px; font-size: clamp(2.65rem, 5.3vw, 4.9rem); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
h2 { margin-top: 3.3rem; border-top: 2px solid; padding-top: 1.75rem; font-size: clamp(1.65rem, 2.8vw, 2.25rem); line-height: 1.18; letter-spacing: -.025em; }
h3 { margin-top: 2rem; font-size: 1.15rem; line-height: 1.3; }
p, li { color: #292a26; }
ol.lettered { padding-left: 1.7rem; }
code { font-size: .9em; }
.notice { max-width: var(--reading); margin: 0 0 30px; border-left: 5px solid var(--blue); padding: 14px 18px; background: var(--blue-soft); color: #30312d; }
hr { margin: 3rem 0; border: 0; border-top: 2px solid; }

footer { border-top: 2px solid; background: var(--ink); color: var(--paper-2); }
footer div { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: "Space Mono", monospace; font-size: .75rem; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 2px 18px; justify-content: flex-end; }

@media (max-width: 820px) {
  .layout { width: min(100% - 28px, 1180px); margin-top: 20px; grid-template-columns: 1fr; gap: 18px; }
  .toc { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px; box-shadow: none; }
  .toc strong { grid-column: 1 / -1; margin: 6px 8px; }
  .toc a { min-height: 44px; font-size: .84rem; }
  article { padding: clamp(22px, 6vw, 34px); box-shadow: var(--shadow-sm); }
}

@media (max-width: 480px) {
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc a { min-height: 44px; padding: 6px 8px; }
  h1 { font-size: clamp(2.25rem, 10vw, 3rem); }
  h2 { margin-top: 2.7rem; padding-top: 1.4rem; }
  .notice { padding: 13px 14px; font-size: .94rem; }
}
