/* Help & legal pages: help, terms, privacy, shipping, ingredients, accessibility. Mobile first. */

/* ---------- page head ---------- */
.lg-head { padding-block: 40px 8px; }
@media (min-width: 900px) { .lg-head { padding-block: 64px 16px; } }
.lg-head .h1 { margin-top: 12px; }
.lg-head .lead { margin-top: 12px; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font: 500 13px/1.4 var(--mono); color: var(--muted); }

/* Draft banner: plain, high contrast, not neon */
.lg-draft { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border: 2px dashed #ffe60099; border-radius: 12px; background: #ffe6000d; }
.lg-draft .i { color: var(--yellow); margin-top: 1px; }
.lg-draft p { font-size: 14px; line-height: 1.45; }
.lg-draft strong { color: var(--yellow); }

/* ---------- table of contents ---------- */
.lg-toc { margin-top: 24px; padding: 16px 20px 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--s2); }
.lg-toc h2 { font: 600 12px/16px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lg-toc ol { list-style: none; counter-reset: toc; margin-top: 8px; }
@media (min-width: 640px) { .lg-toc ol { columns: 2; column-gap: 24px; } }
.lg-toc li { counter-increment: toc; break-inside: avoid; }
.lg-toc a { display: flex; gap: 10px; align-items: baseline; min-height: 44px; padding-block: 10px; font-size: 15px; line-height: 1.4; border-bottom: 1px solid var(--line); }
.lg-toc a::before { content: counter(toc, decimal-leading-zero); font: 600 12px/1 var(--mono); color: var(--slime); flex: none; }
@media (hover: hover) { .lg-toc a:hover { color: var(--slime); } }

/* ---------- body prose ---------- */
.lg-body { padding-block: 32px 64px; }
@media (min-width: 900px) { .lg-body { padding-block: 40px 96px; } }
.lg-body.prose h2 { padding-top: 24px; border-top: 1px solid var(--line); }
.lg-body.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lg-body.prose li + li { margin-top: .4em; }
.lg-body.prose h2 .num { font: 600 13px/1 var(--mono); color: var(--slime); margin-right: 10px; vertical-align: .15em; }
.lg-body .note { padding: 14px 16px; border: 1px solid var(--line); background: var(--s2); border-radius: 12px; font-size: 15px; }
.lg-body .note strong { color: var(--text); }
.lg-body .callout { padding: 16px 18px; border: 2px solid var(--yellow); border-radius: 12px; background: #000; }
.lg-body .callout strong { color: var(--yellow); }
.lg-back { display: inline-flex; margin-top: 32px; }
.lg-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.lg-related ul { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lg-related li + li { margin-top: 0 !important; }
.lg-related a { text-decoration: none !important; color: var(--text) !important; }

/* ---------- definition list (key facts) ---------- */
.lg-facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.lg-facts > div { display: grid; gap: 4px; padding: 14px 18px; border-top: 1px solid var(--line); }
.lg-facts > div:first-child { border-top: 0; }
.lg-facts dt { font: 600 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-facts dd { font-size: 16px; }
@media (min-width: 640px) { .lg-facts > div { grid-template-columns: 200px 1fr; gap: 16px; align-items: baseline; } }

/* ---------- FAQ accordions (help) ---------- */
.lg-jump { margin-top: 24px; }
.faq-group { padding-top: 40px; }
.faq-group > h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2; letter-spacing: -.02em; }
.faq-group > h2 .i { color: var(--slime); width: 26px; height: 26px; }
.faq { margin-top: 16px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 4px; font-weight: 600; font-size: 17px; line-height: 1.35; cursor: pointer; list-style: none; border-radius: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 20px; height: 20px; color: var(--muted); transition: transform var(--d-hover) var(--ease-out); }
.faq details[open] summary .i { transform: rotate(45deg); color: var(--slime); }
@media (hover: hover) { .faq summary:hover { color: var(--slime); } }
.faq .ans { padding: 0 4px 20px; color: var(--muted); max-width: 68ch; }
.faq .ans > * + * { margin-top: .75em; }
.faq .ans a { color: var(--slime); text-decoration: underline; text-underline-offset: 3px; }
.faq .ans strong { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .faq summary .i { transition: none; } }

/* contact + policy index */
.lg-contact { margin-top: 56px; display: grid; gap: 16px; }
.lg-contact .row { --gap: 10px; }
.lg-policies { list-style: none; margin-top: 16px; border-top: 1px solid var(--line); }
.lg-policies a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.lg-policies a span { display: block; }
.lg-policies a small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.lg-policies a .i { color: var(--slime); transition: transform var(--d-hover) var(--ease-out); }
@media (hover: hover) { .lg-policies a:hover .i { transform: translateX(4px); } }

/* ---------- ingredients table: stacked on phones, grid on wide screens ---------- */
.lg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lg-table caption { text-align: left; font: 600 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.lg-table thead th { font: 600 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-table tbody th { font-weight: 600; white-space: nowrap; }
.lg-table .fl { display: inline-flex; align-items: center; gap: 10px; }
.lg-table .fl::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 1px solid #ffffff44; flex: none; }
@media (max-width: 759px) {
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-table, .lg-table caption, .lg-table tbody, .lg-table tr, .lg-table th, .lg-table td { display: block; }
  .lg-table tr { border: 1px solid var(--line); border-radius: 16px; padding: 4px 0; margin-bottom: 12px; background: var(--s2); }
  .lg-table tbody th { padding: 14px 16px 8px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .lg-table td { padding: 10px 16px; border-bottom: 0; }
  .lg-table td::before { content: attr(data-label); display: block; font: 600 11px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}
.lg-jump .chips { list-style: none; }
.lg-jump .chips li { flex: none; }
.lg-policies a small { margin-top: 2px; }
