/*
 * Copyright (c) 2026 Plexor Labs, Inc. All rights reserved.
 * Proprietary and confidential - see LICENSE at the repository root.
 * SPDX-License-Identifier: LicenseRef-Plexor-Proprietary
 *
 * The legal pages' own sheet (/legal/privacy, /legal/terms). Those pages are generated at build
 * time from the approved text (scripts/legal.mjs) and run no app code, so, like the 404, they carry
 * the few brand values they need: the same hex values as src/styles/tokens.css and 404.css.
 */
:root { color-scheme: light; --bg: #F4F5F3; --surface: #FFFFFF; --text: #14171C; --text-2: #4A515B; --text-3: #5C636E;
        --accent: #057C81; --warm: #ECEEEA; --line: #E4E6E2; --line-2: #D5D8D3; --mark: #FDF2DF; --mark-fg: #6D4705; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --bg: #16181D; --surface: #1E2128;
  --text: #F4F5F3; --text-2: #C3C9D3; --text-3: #8A93A3; --accent: #0BB8BE; --warm: #1A1D23; --line: #2C313B; --line-2: #2C313B;
  --mark: #33270F; --mark-fg: #EEC685; } }
:root[data-theme="dark"] { color-scheme: dark; --bg: #16181D; --surface: #1E2128; --text: #F4F5F3; --text-2: #C3C9D3;
  --text-3: #8A93A3; --accent: #0BB8BE; --warm: #1A1D23; --line: #2C313B; --line-2: #2C313B; --mark: #33270F; --mark-fg: #EEC685; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif; }
body { font-size: 16px; line-height: 1.6; }
a { color: var(--accent); text-underline-offset: 3px; }
.lg-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.lg-lockup { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; min-height: 56px; padding: 0 16px;
  color: var(--text); font-weight: 700; text-decoration: none; }
.lg-prod { color: var(--accent); }
.lg-main { max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; overflow-wrap: anywhere; }
.lg-main h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.02em; margin: 8px 0 24px; }
.lg-main h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 12px; }
.lg-main h3 { font-size: 18px; margin: 28px 0 8px; }
.lg-main p, .lg-main li { color: var(--text-2); }
.lg-main strong { color: var(--text); }
.lg-main code { font-size: .9em; padding: 1px 5px; border-radius: 4px; background: var(--warm); color: var(--text); }
.lg-main ul { padding-left: 22px; }
.lg-main li { margin: 6px 0; }
.lg-table { margin: 16px 0 24px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lg-table th { color: var(--text); background: var(--warm); }
.lg-table td { color: var(--text-2); }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-placeholder { background: var(--mark); color: var(--mark-fg); padding: 0 3px; border-radius: 3px; }
.lg-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; max-width: 760px;
  margin: 0 auto; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.lg-foot nav { display: flex; flex-wrap: wrap; margin-right: -12px; }
.lg-foot nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px;
  color: var(--text-3); }
/* At phone width a three-column table is unreadable: each row becomes a card, each cell carrying
   its column's name (the generator writes it as data-label). */
@media (max-width: 560px) {
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lg-table table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: auto; }
  .lg-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .lg-table tr:last-child { border-bottom: 0; }
  .lg-table td { border-bottom: 0; padding: 4px 12px; }
  .lg-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--text-3);
    text-transform: uppercase; letter-spacing: .04em; }
}
