/* Home's sections, About, Contact, Privacy and Terms (#385), and Page not
   found (#398), from the
   approved mock-up's Home (Main) and Contact artboards; About and the legal
   pages reuse the Contact and Blog shells (h1 44px, a 720px prose column).
   Tokens from site.css; the service cards, chips and question list from
   services.css. Breakpoints as the mock-up: <= 1000px, <= 820px (phone),
   >= 1800px. */

/* Sections */
.sec { padding: 96px 0; }
.sec-soft { background: var(--soft); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.sec-head h2 { font-size: 36px; line-height: 1.2; }
.sec-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
a.more { font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none; }
a.more:hover { text-decoration: underline; }
.ico { width: 44px; height: 44px; border-radius: 10px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; flex: none; }

/* Services and fees: the Services list's cards, inside a section */
.sec .svc-cards { padding: 0; }
.svc-card .ico { margin-bottom: 2px; }

/* How it works */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-steps li { padding: 28px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.hm-steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 99px; background: var(--navy); color: var(--bg); font-size: 17px; margin-bottom: 16px; }
.hm-steps h3 { font-size: 19px; margin-bottom: 8px; }
.hm-steps p { margin: 0; color: var(--muted); }

/* Why Legal Nexus, with the firm's figures */
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.why h3 { font-size: 17px; margin: 16px 0 8px; }
.why p { margin: 0; color: var(--muted); font-size: 15px; }
/* The figures share .why's columns, so each figure sits over the point below it. */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 32px; margin: 0 0 48px; padding: 0 0 40px; border-bottom: 1px solid var(--line); }
.figures div { display: flex; flex-direction: column; }
.figures dt { order: 2; color: var(--muted); font-size: 15px; }
.figures dd { order: 1; margin: 0; font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; }

/* Cards: testimonials and posts; four a row for Home's areas and the clients it helps (#397) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
figure.card { margin: 0; }
a.card { text-decoration: none; color: var(--text); }
a.card:hover { border-color: var(--navy); }
.card h3 { font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.quote { margin: 0; }
.card .quote p { font-size: 17px; color: var(--ink); line-height: 1.55; }
.who-row { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.card p.who { font-size: 14px; color: var(--muted); }
.card .av { width: 40px; height: 40px; border-radius: 99px; object-fit: cover; flex: none; }
.cat { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }
.post-meta { margin-top: auto; font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }

/* Questions */
.sec .faq { max-width: 820px; }
.sec .faq summary { font-size: 18px; padding: 18px 0; }
.sec .faq details p { margin: 0 0 20px; max-width: 720px; }

/* The closing WhatsApp band */
.band { background: var(--hero); color: #ffffff; border-radius: 20px; padding: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { color: #ffffff; font-size: 32px; }
.band p { margin: 8px 0 0; color: var(--hero-sub); }
a.btn-inv { color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }
a.btn-inv:hover { background: rgba(255, 255, 255, 0.08); }

/* About, Contact and the legal pages: the page heading */
.pg-head { padding: 56px 0 36px; }
.pg-head h1 { font-size: 44px; line-height: 1.15; }
.pg-head p { margin: 8px 0 0; color: var(--muted); font-size: 18px; max-width: 720px; }

/* Page not found (#398): the heading, its line and two buttons */
.pg-head.nf { padding-bottom: 120px; }
.pg-head.nf .hero-cta { margin-top: 28px; }

/* Prose: About's text and the legal pages */
.prose { max-width: 720px; padding-bottom: 96px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose li + li { margin-top: 6px; }
/* The legal pages are documents (#415, lib/doc.ts): a list item's text sits in a paragraph, laid out as plain item text. */
.prose li > p { margin: 0; }
.prose .note { color: var(--muted); font-size: 15px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 56px; align-items: start; }
.about .prose { padding-bottom: 0; }
.about .figures { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin: 0; background: var(--card); gap: 20px; }
.about-people { padding: 64px 0 0; }
.about-people h2 { font-size: 28px; margin-bottom: 24px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.people li { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.people .av { width: 72px; height: 72px; border-radius: 99px; object-fit: cover; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.people h3 { font-size: 19px; }
.people .cred { color: var(--navy); font-weight: 600; font-size: 14px; margin: 0; }
.people p { margin: 0; color: var(--muted); font-size: 15px; }
.prose.about-where { padding: 64px 0 0; }
.about-band { padding: 64px 0 96px; }

/* Contact */
.chan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(var(--others, 2), minmax(0, 1fr)); gap: 16px; }
a.ch { border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 8px; background: var(--card); height: 100%; }
a.ch:hover { border-color: var(--navy); }
a.ch-wa { background: var(--act); border-color: var(--act); color: var(--on-act); }
a.ch-wa:hover { background: var(--act-hover); border-color: var(--act-hover); }
.ch h2 { font-size: 21px; color: inherit; }
.ch .v { font-family: var(--font-mono); font-weight: 500; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.ch p { margin: 0; font-size: 14px; color: var(--muted); }
a.ch-wa .v, a.ch-wa p { color: var(--on-act); }
a.ch-wa .ico { background: rgba(255, 255, 255, 0.16); color: var(--on-act); }
/* Mock-up Contact `.grid`: the office and its map on the left, the form card (#383) on the right. */
.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: 'office form' 'where form';
  gap: 24px 48px;
  padding: 56px 0 96px;
  align-items: start;
}
.ct-office { grid-area: office; }
.ct-where { grid-area: where; }
.ct-form-slot { grid-area: form; }
.ct-office h2, .ct-form h2 { font-size: 26px; margin-bottom: 16px; }
.ct-office dl { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px 16px; }
.ct-office dt { color: var(--muted); }
.ct-office dd { margin: 0; color: var(--ink); }
a.ct-map { display: block; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; text-decoration: none; }
.ct-map-img { width: 100%; height: 260px; object-fit: cover; }
a.ct-map:hover { border-color: var(--navy); }
.ct-card { border-radius: 16px; border: 1px solid var(--line); background: var(--soft); padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ct-card p { margin: 0; color: var(--ink); }
/* "Send a message" (#383, mock-up Contact `.formbox`); the fields are the shared .pf in site.css. */
.ct-form { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--card); }
.ct-form .ct-form-sub { margin: 0 0 20px; color: var(--muted); }
.ct-form .pf { margin-top: 0; }
.ct-form .pf input, .ct-form .pf textarea, .ct-form .pf select { background-color: var(--bg); }
.ct-form .pf-send { justify-self: stretch; height: 50px; }
.ct-form .pf-ok { margin: 0; }
.ct-form-closed { margin: 0; color: var(--muted); }

@media (max-width: 1000px) {
  .why, .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .hm-steps, .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .chan, .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-grid { grid-template-rows: none; grid-template-areas: 'office' 'where' 'form'; }
}
@media (max-width: 820px) {
  .sec { padding: 56px 0; }
  .sec-head h2 { font-size: 28px; }
  .cards, .hm-steps, .why, .figures, .people { grid-template-columns: minmax(0, 1fr); }
  .figures dd { font-size: 32px; }
  .band { padding: 32px 24px; }
  .band h2 { font-size: 26px; }
  .band .hero-cta .btn { flex: 1 1 100%; }
  .pg-head { padding: 32px 0 24px; }
  .pg-head h1 { font-size: 34px; }
  .pg-head.nf { padding-bottom: 64px; }
  .prose { padding-bottom: 56px; }
  .ct-grid { padding: 40px 0 56px; gap: 32px; }
  .ct-form { padding: 20px; }
  .about-people, .prose.about-where { padding: 48px 0 0; }
  .about-band { padding: 48px 0 56px; }
}
