/* Codalith legal pages, shared styles (matches the home page design system) */
:root {
  --primary: #9fe870; --primary-active: #cdffad; --primary-pale: #e2f6d5;
  --on-primary: #0e0f0c;
  --canvas: #ffffff; --canvas-soft: #e8ebe6;
  --ink: #0e0f0c; --ink-deep: #163300; --body: #454745; --mute: #868685;
  --hairline: rgba(14,15,12,.10);
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 24px; --wrap: 1200px; --ease: cubic-bezier(.22,.61,.36,1); --nav-h: 70px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--canvas-soft); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; font-feature-settings: 'calt' 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0; z-index: 200; font-weight: 600; }
.skip:focus { left: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.5; padding: 13px 24px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s var(--ease), background .2s var(--ease); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--lg { padding: 16px 30px; font-size: 18px; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-active); }
.btn:active { transform: scale(.97); }

/* Nav (brand + single CTA) */
.nav { position: sticky; top: 0; z-index: 100; background: var(--canvas); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-bottom-color: var(--hairline); box-shadow: 0 1px 18px rgba(14,15,12,.05); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; color: var(--ink); }

/* Legal layout */
.legal { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.legal-card { background: var(--canvas); border-radius: var(--radius); max-width: 868px; margin-inline: auto; padding: clamp(28px, 4vw, 56px); }
.legal-eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: .5em; }
.legal-eyebrow i { color: #2ead4b; font-style: normal; }
.legal-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(34px, 5vw, 52px); color: var(--ink); margin-top: 14px; text-wrap: balance; }
.legal-updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--mute); margin-top: 14px; }

/* Placeholder highlight */
mark { background: #fcef9c; color: var(--ink); padding: 0 5px; border-radius: 4px; font-style: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Note box */
.note { display: flex; gap: 12px; background: var(--primary-pale); color: var(--ink-deep); border-radius: 16px; padding: 16px 18px; margin-top: 28px; font-size: 14px; line-height: 1.55; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* Prose */
.prose { max-width: 820px; margin-top: 28px; }
.prose > p { color: var(--body); font-size: 16px; line-height: 1.7; margin-top: 16px; }
.prose .intro { font-size: 18px; line-height: 1.7; color: var(--body); }
.prose h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; font-size: 21px; line-height: 1.3; color: var(--ink); margin-top: 36px; }
.prose h2 + p { margin-top: 10px; }
.prose ul { margin: 12px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.prose li { position: relative; padding-left: 20px; color: var(--body); font-size: 16px; line-height: 1.6; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 999px; background: var(--ink); }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Contact cards */
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.cc { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--hairline); border-radius: 16px; padding: 20px; text-decoration: none; }
.cc:hover { border-color: var(--ink); }
.cc__icon { width: 44px; height: 44px; border-radius: 999px; background: var(--canvas-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.cc__icon svg { width: 20px; height: 20px; }
.cc__t { display: block; font-weight: 600; font-size: 16px; color: var(--ink); }
.cc__s { display: block; font-size: 14px; color: var(--body); margin-top: 2px; word-break: break-word; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.detail { background: var(--canvas-soft); border-radius: 16px; padding: 18px 20px; }
.detail__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.detail__v { font-size: 15px; color: var(--ink); margin-top: 6px; line-height: 1.5; }

/* Footer (matches home) */
.footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); color: var(--canvas-soft); padding: 56px 0 40px; }
.footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: 44px; }
.footer__brandcol { max-width: 320px; }
.footer__tag { margin-top: 14px; font-size: 14px; color: #8a9486; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 24px 32px; }
.footer__h { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #71796d; margin-bottom: 14px; }
.footer__link { display: block; font-size: 14px; color: #c2cabb; text-decoration: none; padding: 7px 0; transition: color .2s; }
.footer__link:hover { color: var(--primary); }
.footer__bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10); font-size: 13px; color: #71796d; }

@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 620px) { .cc-grid { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .wrap { padding-inline: 18px; } .legal-card { padding: 24px 20px; } }
