/*
 * Styles for the public privacy, terms, support and connection-guide pages (COVE-381). Loaded after app.css
 * and reusing its home tokens (.home, --h-*, --display, --serif). Classes use the lg- prefix so they never meet the app's own
 * doc- classes. Built and allowlisted by scripts/build-web.mjs and src/assets.ts.
 */


/* Page switcher shared by the four pages. */
.lg-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; width: fit-content; max-width: 100%; margin: 1.6rem auto 0; padding: 0.3rem; border-radius: 14px; background: rgba(255, 255, 255, 0.72); box-shadow: 0 0 0 1px var(--h-line), 0 10px 24px -18px rgba(13, 28, 31, 0.45); }
.lg-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 10px; font: 560 var(--text-md)/1 var(--sans); color: var(--h-muted); text-decoration: none; transition: color 160ms var(--h-ease), background-color 160ms var(--h-ease), box-shadow 160ms var(--h-ease); }
.lg-tabs a:hover { color: var(--h-ink); background: rgba(13, 28, 31, 0.05); }
.lg-tabs a[aria-current="page"] { color: var(--h-ink); background: #fff; box-shadow: 0 1px 2px rgba(13, 28, 31, 0.12), 0 6px 14px -10px rgba(13, 28, 31, 0.4); }
.lg-tabs a:focus-visible, .lg-toc a:focus-visible, .lg-doc a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lg-meta { margin-top: 0.9rem; font-size: var(--text-sm); color: var(--h-muted); }

/* The short version: the facts a careful reader wants before the detail. */
.lg-short { max-width: 52rem; margin: 0 auto; padding: 1.75rem 1.75rem 1.5rem; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--h-line), 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 22px 44px -30px rgba(13, 28, 31, 0.45); }
.lg-short h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); letter-spacing: -0.025em; }
.lg-short ul { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.85rem 2rem; }
.lg-short li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start; font-size: var(--text-body); line-height: 1.5; color: #33413f; }
.lg-short li svg { width: 22px; height: 22px; margin-top: 0.05rem; color: var(--accent); }
.lg-short strong { color: var(--h-ink); font-weight: 650; }

/* Reading layout: a quiet contents column beside comfortable serif text. */
.lg-body { display: grid; gap: 2.5rem; max-width: 68rem; margin: 0 auto; padding: 3.5rem max(1.25rem, env(safe-area-inset-left)) 5rem; }
.lg-toc { display: none; }
.lg-doc { min-width: 0; max-width: 42rem; }
.lg-doc section + section { margin-top: 3rem; }
.lg-doc section { scroll-margin-top: 6rem; }
.lg-doc h2 { font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.8rem); letter-spacing: -0.03em; }
.lg-doc h3 { margin-top: 1.6rem; }
.lg-doc p, .lg-doc li { font: var(--text-lg)/1.7 var(--serif); color: #33413f; }
.lg-doc p { margin-top: 0.8rem; }
.lg-doc ul, .lg-doc ol { margin: 0.8rem 0 0; padding-left: 1.25rem; display: grid; gap: 0.45rem; }
.lg-doc li::marker { color: var(--h-muted); }
.lg-doc strong { color: var(--h-ink); font-weight: 650; }
.lg-doc a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lg-doc a:hover { color: var(--accent); }
.lg-doc code { font: 500 0.88em/1.4 ui-monospace, "SF Mono", Menlo, monospace; padding: 0.08em 0.35em; border-radius: 6px; background: #eef3f1; color: var(--h-ink); overflow-wrap: anywhere; }
.lg-doc .lg-note { margin-top: 1.1rem; padding: 1rem 1.15rem; border-radius: 14px; background: var(--h-band); font: var(--text-body)/1.6 var(--sans); color: #33413f; }

/* Numbered setup steps on the connection guide. */
.lg-steps { list-style: none; counter-reset: step; padding-left: 0 !important; gap: 0.9rem !important; }
.lg-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 0.85rem; }
.lg-steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; margin-top: 0.2rem; border-radius: 999px; background: var(--h-ink); color: #fff; font: 650 var(--text-sm)/1 var(--sans); font-variant-numeric: tabular-nums; }

/* Example prompts, set like messages to an assistant. */
.lg-prompts { list-style: none; padding-left: 0 !important; gap: 0.6rem !important; }
.lg-prompts li { width: fit-content; max-width: 100%; padding: 0.7rem 1rem; border-radius: 16px 16px 16px 6px; background: #fff; box-shadow: 0 0 0 1px var(--h-line), 0 10px 22px -18px rgba(13, 28, 31, 0.5); font: var(--text-body)/1.5 var(--sans); color: var(--h-ink); }

/* Support contact card. */
.lg-contact { display: grid; gap: 0.35rem; margin-top: 1.2rem; padding: 1.35rem 1.4rem; border-radius: 18px; background: var(--h-dark); color: var(--h-dark-text); }
.lg-contact p { margin: 0; font: var(--text-body)/1.55 var(--sans); color: var(--h-dark-muted); }
.lg-contact .lg-contact-line { font: 650 var(--text-lg)/1.3 var(--display); color: #fff; }

@media (min-width: 64rem) {
  .lg-body { grid-template-columns: 13rem minmax(0, 42rem); justify-content: center; gap: 4.5rem; }
  .lg-toc { display: block; position: sticky; top: 6.5rem; align-self: start; }
  .lg-toc p { font-size: var(--text-sm); font-weight: 650; color: var(--h-ink); }
  .lg-toc ol { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.1rem; }
  .lg-toc a { display: block; padding: 0.4rem 0.6rem; margin-left: -0.6rem; border-radius: 8px; font-size: var(--text-md); line-height: 1.35; color: var(--h-muted); text-decoration: none; transition: color 160ms var(--h-ease), background-color 160ms var(--h-ease); }
  .lg-toc a:hover { color: var(--h-ink); background: rgba(13, 28, 31, 0.05); }
  .lg-short ul { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 40rem) {
  .lg-short { margin-inline: max(1.25rem, env(safe-area-inset-left)); padding: 1.35rem 1.2rem 1.2rem; }
  .lg-tabs a { padding: 0 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-tabs a, .lg-toc a { transition: none; }
}
