/* ==========================================================================
   Legal pages (Legal Notice, Privacy Policy, Cookie Policy, Terms of Use)
   [Proposed] 2026-11-16. Follows DESIGN.md: Colors (Lime Wash reading ground,
   Graphite header and footer, Ink Line for discreet text), Typography
   (Display L title, Heading for sections, Body Poppins 300 at max 36em,
   Label caps), Layout (12-column grid, page gutters, spacing scale),
   Shapes (square, 1px rules), Components (links), Voice.
   Loaded after site.css, which supplies tokens, type roles and links.
   ========================================================================== */

.legal-page { background: var(--limewash); color: var(--graphite); }
.legal-page ::selection { background: var(--graphite); color: var(--limewash); }

/* Header: Graphite bar, wordmark home, one quiet link back */
.lg-header { background: var(--graphite); color: var(--limewash); }
.lg-header__inner { display: flex; justify-content: space-between; align-items: center; min-height: 88px; gap: 2rem; padding-block: 1rem; }
.lg-header__brand { display: block; }
.lg-header__brand svg { display: block; height: 15px; width: auto; fill: currentColor; }
.lg-header .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 760px) { .lg-header__brand svg { height: 12px; } } /* as the main site header */

/* Body */
.lg-main { padding-block: clamp(4.5rem, 9vw, 8rem) clamp(6rem, 11vw, 9.5rem); }
.lg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); }
.lg-nav { grid-column: 1 / span 3; align-self: start; position: sticky; top: 3rem; }
.lg-nav ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .25rem; }
.lg-nav a { display: inline-block; padding: .45rem 0; font-size: .92rem; position: relative; }
.lg-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 1s var(--ease-out); }
.lg-nav a:hover::after, .lg-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.lg-nav .label { color: var(--inkline); }

.lg-doc { grid-column: 5 / span 7; min-width: 0; }
.lg-doc .display--l { max-width: 14ch; }
.lg-updated { display: block; margin-top: 1.5rem; color: var(--inkline); }
.lg-doc .lg-intro { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.lg-section { margin-top: clamp(3.5rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--rule-light); }
.lg-section h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.625rem, 2.4vw, 2.375rem); line-height: 1.18; margin: 0 0 1.5rem; }
.lg-section h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.375rem, 1.7vw, 1.625rem); line-height: 1.32; margin: 2.5rem 0 1rem; }
.lg-doc p, .lg-doc li { max-width: 36em; text-wrap: pretty; }
.lg-doc p { margin: 0; }
.lg-doc p + p, .lg-doc p + ul, .lg-doc ul + p, .lg-doc dl + p, .lg-doc p + dl { margin-top: 1.1em; }
.lg-doc ul { margin: 0; padding-left: 1.1em; }
.lg-doc li + li { margin-top: .5em; }
.lg-doc li::marker { color: var(--inkline); }
.lg-doc a:not(.link) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgba(14, 13, 9, .25); transition: text-decoration-color .6s var(--ease-out); }
.lg-doc a:not(.link):hover { text-decoration-color: currentColor; }
.lg-doc strong { font-weight: 500; }

/* Company details */
.lg-facts { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; gap: .9rem 2rem; margin: 0; max-width: 36em; }
.lg-facts dt { font-weight: 500; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; padding-top: .3rem; }
.lg-facts dd { margin: 0; }
.lg-pending { color: var(--inkline); }

/* Footer */
.lg-footer { background: var(--graphite); color: var(--limewash); padding-block: 3rem 2.5rem; }
.lg-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; }
.lg-footer__top svg { display: block; height: 15px; width: auto; fill: currentColor; }
.lg-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; margin: 0; padding: 0; }
.lg-footer__links a { font-size: .92rem; position: relative; }
.lg-footer__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.15rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 1s var(--ease-out); }
.lg-footer__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.lg-footer .footer__legal { margin-top: 0; }

@media (max-width: 900px) {
  .lg-nav { grid-column: 1 / -1; position: static; margin-bottom: 3.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule-light); }
  .lg-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
  .lg-doc { grid-column: 1 / -1; }
  .lg-facts { grid-template-columns: 1fr; gap: .2rem; }
  .lg-facts dd + dt { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-page *, .legal-page *::before, .legal-page *::after { transition: none !important; }
}
.lg-footer__links button { font-size: .92rem; }
.lg-footer__links button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.15rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 1s var(--ease-out); }
.lg-footer__links button:hover::after { transform: scaleX(1); transform-origin: left; }
