/* Shared shell for the secondary pages (contact, privacy, terms, support
   terms, public-sector addendum): sticky top nav, main padding, and the site
   footer. Fonts, tokens, resets, focus rings, .container, and buttons come
   from vault-base.css, which every page loads first. Page-specific layout
   lives in legal-doc.css or the page's own inline style block. */

/* Anchor targets clear the sticky nav; smooth scroll stops for reduced motion. */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Top nav — same shape on every secondary page. */
nav.top { position: sticky; top: 0; z-index: 50; padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-default); }
.wordmark { display: inline-flex; align-items: center; width: 124px; min-height: 44px; }
.wordmark img { display: block; width: 100%; height: auto; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; transition: color .16s var(--ease-out-quart); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-primary); }
@media (max-width: 860px) { .nav-links a.nav-secondary { display: none; } }
@media (max-width: 620px) { nav.top { padding: 14px 20px; } .nav-links { gap: 12px; } }

/* Page shell. */
main { display: block; padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 10vw, 128px); }

/* Footer (mirrors index.html). */
footer { padding: clamp(60px, 7vw, 96px) var(--gutter) 44px; border-top: 1px solid var(--border-default); background: var(--surface-raised); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 56px; align-items: start; }
.footer-brand { max-width: 430px; }
.footer-brand p { margin: 18px 0 0; font-size: 14px; color: var(--text-muted); max-width: 34rem; line-height: 1.5; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 36px 52px; }
.footer-group h2 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-tertiary); }
.footer-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-group a { color: var(--text-muted); text-decoration: none; font-size: 14px; line-height: 1.4; transition: color .15s; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-group a:hover, .footer-group a[aria-current="page"] { color: var(--text-primary); }
.footer-bottom { max-width: 1240px; margin: 48px auto 0; padding-top: 22px; border-top: 1px solid color-mix(in oklab, var(--border-default) 82%, transparent); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: var(--text-tertiary); margin: 0; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 30px 28px; }
  .footer-bottom { margin-top: 40px; align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) { .footer-nav { grid-template-columns: 1fr; } }
