/* Shared styles for the legal center + policy document pages
   (legal.html, terms.html, privacy.html, cookies.html, gdpr.html,
   security.html, dpa.html). Same lg- system the Company page uses,
   extracted so the six documents can't drift from each other. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background: var(--bg-page); color: var(--text-primary);
}

.lg-shell { max-width: 1440px; margin: 0 auto; padding: clamp(28px,4vw,48px) clamp(20px,5vw,40px) 80px; }

.lg-back { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 22px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: color 150ms; }
.lg-back:hover { color: var(--accent); }

.lg-head { margin: 0 0 8px; }
.lg-eyebrow { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.26em; color: var(--accent); }
.lg-title { margin: 12px 0 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(34px,5vw,48px); letter-spacing: -0.03em; color: var(--text-primary); }
.lg-lead { margin: 14px 0 0; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.lg-updated { margin: 10px 0 0; font-size: 12.5px; color: var(--text-muted); }

.lg-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px,4vw,56px); margin-top: 40px; align-items: start; }
@media (max-width: 860px) { .lg-layout { grid-template-columns: 1fr; } .lg-toc { position: static !important; } }

.lg-toc { position: sticky; top: 84px; }
.lg-toc-title { margin: 0 0 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-muted); }
.lg-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lg-toc a { display: block; padding: 8px 12px; border-radius: 9px; border-left: 2px solid transparent; font-size: 13.5px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: background 150ms, color 150ms, border-color 150ms; }
.lg-toc a:hover { background: var(--bg-elevated); color: var(--text-primary); }
.lg-toc a.is-active { background: var(--accent-tint); border-left-color: var(--accent); color: var(--accent); }
.lg-toc-related { margin-top: 26px; }
.lg-toc-related a { font-size: 13px; }

.lg-doc { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lg-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: clamp(22px,3vw,32px); box-shadow: var(--shadow-card); scroll-margin-top: 84px; }
.lg-card h2 { margin: 0 0 4px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--text-primary); }
.lg-card .lg-sub { margin: 0 0 16px; font-size: 13px; color: var(--text-muted); }
.lg-card h3 { margin: 22px 0 6px; font-size: 15px; font-weight: 600; color: var(--text-primary); }
.lg-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.7; color: var(--text-secondary); }
.lg-card ul.lg-list, .lg-card ol.lg-list { margin: 0 0 12px; padding-left: 1.1rem; }
.lg-card ul.lg-list li, .lg-card ol.lg-list li { font-size: 14.5px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 4px; }
.lg-card a { color: var(--accent); text-decoration: none; }
.lg-card a:hover { text-decoration: underline; }

.lg-note { margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 14px; }

/* Data tables (cookie inventory, sub-processor list). */
.lg-tablewrap { overflow-x: auto; margin: 0 0 12px; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.55; }
.lg-table th { text-align: left; padding: 9px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.lg-table td { padding: 10px 12px; color: var(--text-secondary); border-bottom: 1px solid var(--border); vertical-align: top; }
.lg-table tr:last-child td { border-bottom: none; }
.lg-table td:first-child { font-weight: 600; color: var(--text-primary); white-space: nowrap; }

/* Legal-center hub cards (legal.html). */
.lg-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 40px; }
.lg-hub-card { display: flex; flex-direction: column; gap: 8px; padding: clamp(22px,3vw,28px); background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); text-decoration: none; transition: border-color 150ms, transform 150ms, box-shadow 150ms; }
.lg-hub-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-elev, var(--shadow-card)); }
.lg-hub-kicker { margin: 0; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); }
.lg-hub-card h2 { margin: 2px 0 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--text-primary); }
.lg-hub-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); }
.lg-hub-open { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
.lg-hub-card.is-active { border-color: var(--accent); }

/* Combined legal center (legal.html): the selected document renders inline
   below the hub cards. */
.lg-dochost { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 40px; scroll-margin-top: 84px; }
