/* /css/legal.css — shared styles for Buildaur legal pages.
   Used by /terms.php (End Customer Terms of Use) and
   /merchant-terms.php (Master Terms of Service for Business
   Clients). Standalone — these pages don't include the global
   navbar/sidebar; they own their own chrome end-to-end. */

:root {
    --lg-primary:   #7c5cfd;
    --lg-secondary: #5b9eef;
    --lg-lime:      #a6ff00;
    --lg-dark:      #09031a;
    --lg-surface:   #f0f2f8;
    --lg-text:      #090f1a;
    --lg-muted:     #5b6478;
    --lg-border:    rgba(9,15,26,.08);
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    background: var(--lg-surface);
    color: var(--lg-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
img { max-width: 100%; }

/* Top brand bar — minimal, links back to /user/subscribe so a
   shopper who lands here from a Merchant's footer is funneled to
   the waitlist instead of seeing the gang-sheet builder. */
.lg-topbar {
    background: #fff;
    border-bottom: 1px solid var(--lg-border);
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 10;
}
.lg-topbar-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--lg-text); text-decoration: none; font-weight: 700;
    font-size: 16px; letter-spacing: -0.2px;
}
.lg-topbar-brand img { height: 28px; width: auto; display: block; }
.lg-topbar-link {
    color: var(--lg-primary); text-decoration: none; font-weight: 600;
    font-size: 13.5px;
}
.lg-topbar-link:hover { text-decoration: underline; }

/* Shell + prose container */
.lg-shell {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px 96px;
    position: relative;
}
.lg-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lg-primary); background: rgba(124,92,253,.12);
    padding: 5px 12px; border-radius: 999px;
    margin-bottom: 14px;
}
.lg-h1 {
    font-size: 38px; line-height: 1.15; font-weight: 800;
    margin: 0 0 12px; letter-spacing: -0.7px;
    color: var(--lg-text);
}
.lg-h1 .grad {
    background: linear-gradient(120deg, var(--lg-primary) 0%, var(--lg-secondary) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lg-meta {
    color: var(--lg-muted); font-size: 14px; margin: 0 0 32px;
}
.lg-meta strong { color: var(--lg-text); font-weight: 700; }
.lg-card {
    background: #fff;
    border: 1px solid var(--lg-border);
    border-radius: 18px;
    padding: 36px 40px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

/* Prose typography — tighter than HTML defaults so the long
   legal text reads as a single coherent document rather than a
   wall of disconnected paragraphs. */
.lg-card h2 {
    font-size: 22px; font-weight: 800; letter-spacing: -0.3px;
    color: var(--lg-text);
    margin: 36px 0 10px;
    scroll-margin-top: 80px;
}
.lg-card h2:first-child { margin-top: 0; }
.lg-card h3 {
    font-size: 16.5px; font-weight: 700; letter-spacing: -0.1px;
    color: var(--lg-text);
    margin: 22px 0 8px;
}
.lg-card p {
    font-size: 15px; color: #1f2937;
    margin: 0 0 14px;
}
.lg-card ul, .lg-card ol {
    font-size: 15px; color: #1f2937;
    margin: 0 0 14px; padding-left: 22px;
}
.lg-card li { margin-bottom: 6px; }
.lg-card code {
    background: #f0f2f8; padding: 1px 6px; border-radius: 4px;
    font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
}
.lg-card a {
    color: var(--lg-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.lg-card a:hover { text-decoration-thickness: 2px; }
.lg-card strong { color: var(--lg-text); font-weight: 700; }

/* Banner for the "Important" disclosure on the End Customer Terms. */
.lg-callout {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 0 0 26px;
    font-size: 14.5px; color: #7c2d12;
}
.lg-callout strong { color: #7c2d12; }

/* Footer — modest, with disclaimer about not being legal advice
   for the in-draft documents we're shipping. */
.lg-footer {
    text-align: center;
    color: var(--lg-muted);
    font-size: 12.5px;
    padding: 32px 24px 64px;
    line-height: 1.6;
}
.lg-footer a { color: var(--lg-primary); text-decoration: none; }

/* Mobile */
@media (max-width: 720px) {
    .lg-shell { padding: 32px 16px 64px; }
    .lg-h1 { font-size: 30px; }
    .lg-card { padding: 24px 22px; border-radius: 14px; }
    .lg-card h2 { font-size: 19px; }
}
