/* generated by _src/build.mjs from _src/parts/legal.css */
/* goal.one: the five legal documents (terms, privacy, accessibility, plan terms, grants).
 * Dark hero, then a sticky contents rail beside one long paper sheet. */

/* ------------------------------------------------------------------ hero */
.lg-hero { min-height: 0; grid-template-columns: minmax(0, 1fr); padding-bottom: 44px; }
.lg-hero-in { position: relative; z-index: 4; display: grid; justify-items: start; gap: 22px; padding: 96px 0 6px; max-width: 1080px; }
.lg-hero .p-h { font-size: clamp(46px, 7cqi, 112px); overflow-wrap: anywhere; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px; max-width: 980px; }
.lg-meta li {
  display: inline-flex; align-items: center; min-height: 34px; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; line-height: 1.35; color: rgba(246, 245, 242, .8);
  background: rgba(246, 245, 242, .06); box-shadow: inset 0 0 0 1px rgba(246, 245, 242, .1);
}
.lg-meta li:first-child { color: var(--paper); font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .02em; }
.lg-binding { max-width: 720px; font-size: 15px; line-height: 1.5; color: rgba(246, 245, 242, .56); }
.lg-brand {
  display: flex; gap: 14px; align-items: flex-start; max-width: 760px; padding: 16px 18px; border-radius: 18px;
  font-size: 15px; line-height: 1.5; color: rgba(246, 245, 242, .78);
  background: linear-gradient(135deg, rgba(246, 245, 242, .09), rgba(246, 245, 242, .03));
  box-shadow: inset 0 0 0 1px rgba(246, 245, 242, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lg-brand b { color: var(--paper); font-weight: 600; }
.lg-brand-mark {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: -.02em; color: #0B0B0B; background: var(--paper);
}

/* ------------------------------------------------------------------ the document */
.lg-doc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 28px; }
.lg-side { position: sticky; top: 84px; align-self: start; min-width: 0; }
.lg-side-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.lg-find {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px;
  background: rgba(28, 27, 26, .07); box-shadow: none;
  transition: box-shadow .2s var(--out);
}
.lg-find:focus-within { background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px rgba(11, 11, 11, .22); }
@media (max-width: 639px), (pointer: coarse) { .lg-find { height: 44px; } }
.lg-find svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.lg-find input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); }
.lg-find input::placeholder { color: var(--faint); }
.lg-found { min-height: 0; font-size: 11px; color: var(--muted); }
.lg-found:empty { display: none; }
.lg-toc {
  list-style: none; margin: 0; padding: 6px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  max-height: calc(100svh - 330px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.lg-toc li { margin: 0; }
.lg-toc li.is-off { display: none; }
.lg-toc a {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px; align-items: baseline;
  padding: 8px 10px; border-radius: 11px; font-size: 13.5px; line-height: 1.3; color: var(--muted); text-decoration: none;
  transition: background .2s var(--out), color .2s var(--out);
}
.lg-toc a:hover { background: var(--row-hover); color: var(--ink); }
.lg-toc a[aria-current] { background: var(--ink); color: var(--canvas); }
.lg-toc a[aria-current] .lg-n { color: inherit; opacity: .7; }
.lg-toc .lg-n { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 11px; color: var(--faint); white-space: nowrap; }
.lg-tools { display: grid; gap: 10px; }
.lg-tool {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.lg-tool:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.lg-tool svg, .lg-docs svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-other { font-size: 11px; color: var(--muted); padding: 4px 4px 0; }
.lg-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lg-docs a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 6px; border-radius: 10px;
  font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair);
}
.lg-docs a svg { opacity: .35; transition: transform .25s var(--spring-fast), opacity .2s; }
.lg-docs a:hover svg { opacity: 1; transform: translateX(3px); }

/* the sheet */
.lg-paper {
  position: relative; min-width: 0; padding: 56px clamp(22px, 5vw, 76px) 40px; border-radius: 28px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--float);
  font-size: 16.5px; line-height: 1.68; color: var(--ink);
  overflow-wrap: break-word;
}
.lg-progress { position: sticky; top: 72px; z-index: 2; height: 0; margin: -56px 0 56px; }
.lg-progress i {
  position: absolute; left: -2px; right: -2px; top: 0; height: 3px; border-radius: 3px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--ink), var(--live));
}
.lg-intro { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.lg-intro > p { font-size: 18.5px; line-height: 1.6; color: var(--ink); }
.lg-paper p { margin: 0 0 14px; max-width: 74ch; }
.lg-paper p.lg-clause { padding-left: 0; }
.lg-paper strong { font-weight: 600; }
.lg-paper a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.lg-paper a:hover { text-decoration-color: currentColor; }
.lg-paper a.lg-mail, .lg-paper a[href^="http"] { overflow-wrap: anywhere; }
.lg-nb { white-space: nowrap; }

.lg-sec { padding: 44px 0 10px; border-top: 1px solid var(--hair); scroll-margin-top: 96px; transition: opacity .25s var(--out); }
.lg-intro + .lg-sec, .lg-progress + .lg-sec { border-top: 0; padding-top: 8px; }
.lg-sec.is-off { opacity: .22; }
.lg-sec h2 {
  position: relative; display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px;
  font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em;
}
.lg-sec h2 .lg-n {
  flex: none; display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 9px; border-radius: 9px; transform: translateY(-3px);
  font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 500; letter-spacing: 0;
  color: var(--canvas); background: var(--ink);
}
.lg-hash { margin-left: auto; padding-left: 8px; font-size: 18px; font-weight: 400; color: var(--faint) !important; text-decoration: none !important; opacity: 0; transition: opacity .2s; }
.lg-sec h2:hover .lg-hash, .lg-hash:focus-visible { opacity: 1; }
.lg-sub { margin: 26px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.lg-list { margin: 0 0 16px; padding-left: 1.4em; max-width: 72ch; }
.lg-list li { margin: 0 0 8px; padding-left: .2em; }
.lg-list li::marker { color: var(--faint); font-size: .9em; }
ul.lg-list li::marker { color: var(--ink); }
.lg-callout {
  margin: 0 0 22px; padding: 18px 20px; border-radius: 16px; max-width: 78ch;
  background: var(--live-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--live);
}
.lg-callout p { margin: 0 0 8px; max-width: none; }
.lg-callout p:last-child { margin: 0; }
.lg-ph { padding: 1px 6px; border-radius: 6px; background: var(--wait-soft); color: var(--wait); font-size: .92em; }
.lg-hit { padding: 0 2px; border-radius: 4px; background: #FFE58A; color: #0B0B0B; }

.lg-table {
  margin: 4px 0 22px; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line);
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.lg-table:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.lg-table th, .lg-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.lg-table thead th { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); background: var(--tile); }
.lg-table tbody th { font-weight: 600; }
.lg-table tbody tr:last-child > * { border-bottom: 0; }

.lg-end { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.lg-end .mono { font-size: 11px; color: var(--muted); }
.lg-top { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none !important; }
.lg-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-90deg); }

:root[data-theme="dark"] .lg-callout { background: rgba(235, 74, 30, .12); }
:root[data-theme="dark"] .lg-ph { background: rgba(214, 170, 60, .16); color: #E6C46A; }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1023px) {
  .lg-doc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lg-side { position: static; }
  .lg-toc { max-height: 300px; }
  .lg-tools { grid-template-columns: minmax(0, 1fr); }
  .lg-progress { top: 64px; }
}
@media (max-width: 720px) {
  .lg-hero-in { padding-top: 56px; gap: 18px; }
  .lg-hero .p-h { font-size: clamp(40px, 12vw, 64px); }
  .lg-meta li { font-size: 12.5px; }
  .lg-brand { font-size: 14px; padding: 14px; gap: 12px; }
  .lg-paper { padding: 36px 18px 28px; border-radius: 22px; font-size: 16px; }
  .lg-progress { margin: -36px 0 36px; }
  .lg-intro > p { font-size: 17px; }
  .lg-sec { padding-top: 34px; }
  .lg-sec h2 { gap: 10px; font-size: 23px; }
  .lg-sec h2 .lg-n { min-width: 38px; height: 26px; font-size: 11.5px; }
  .lg-hash { display: none; }
  .lg-list { padding-left: 1.2em; }
  .lg-table table { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-sec, .lg-toc a, .lg-docs a svg { transition: none; }
}

/* ------------------------------------------------------------------ print: just the document */
@media print {
  .side, .top, .foot, .lg-hero .mesh, .lg-hero .grid-lines, .lg-hero .grain, .lg-side, .lg-progress, .lg-hash, .lg-end, .skip, .palette { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; transform: none !important; }
  .lg-hero { background: none !important; color: #000 !important; min-height: 0; padding: 0 0 12px; }
  .lg-hero .p-h .lit { -webkit-text-fill-color: #000; background: none; }
  .lg-meta li, .lg-binding, .lg-brand, .lg-brand b { color: #000 !important; background: none !important; box-shadow: none !important; }
  .lg-doc { display: block; padding: 0; }
  .lg-paper { box-shadow: none; padding: 0; font-size: 11pt; }
  .lg-sec { break-inside: auto; }
  .lg-sec h2 { break-after: avoid; }
}

html[lang="en"] .lg-lang-note { display: none; }
.lg-lang-note { margin: 18px 0 0; max-width: 60ch; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.72); }
