/* Legal Everything design tokens */
:root {
  color-scheme: light;
  --primary: #0b4f46;
  --primary-hover: #083e37;
  --accent: #167d6d;
  --heading: #142925;
  --body: #40544d;
  --muted: #596c63;
  --background: #f7f8f5;
  --surface: #fff;
  --sage: #dde9e2;
  --border: #dce4de;
  --control-border: #75877c;
  --gold: #b99455;
  --error: #b42318;
  --font-body: Inter, "Segoe UI", system-ui, sans-serif;
  --font-heading: Manrope, "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1rem, 5vw, 4.5rem);
  --section: clamp(3.5rem, 7.3vw, 6.75rem);
  --shadow: 0 13px 38px #153b2e0a;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--background); }
body { margin: 0; background: var(--background); color: var(--body); font: 1rem/1.65 var(--font-body); }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { color: var(--heading); font-family: var(--font-heading); line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.125rem, 5vw, 4rem); font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 720; }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); font-weight: 680; }
a { color: var(--primary); text-underline-offset: .2em; }
button, input, select, summary { font: inherit; }
button, summary { cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
img { max-width: 100%; height: auto; display: block; }
svg { flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid #167d6d; outline-offset: 4px; }
::selection { background: var(--sage); color: var(--heading); }
.container { width: min(80rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: 1rem; padding: .7rem 1rem; z-index: 9; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--primary); font-weight: 720; font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: .9rem; }
.eyebrow::before { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--gold); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .65rem 1.15rem; border-radius: .55rem; border: 1px solid var(--primary); font-weight: 650; text-decoration: none; text-align: center; color: #fff; background: var(--primary); transition: background .18s, color .18s, border-color .18s; }
.button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button-outline { background: transparent; color: var(--primary); border-color: var(--control-border); }
.button-outline:hover { background: var(--sage); color: var(--primary-hover); }
.button-light { color: var(--primary); background: #fff; border-color: #fff; }
.button-light:hover { color: var(--primary); background: var(--sage); border-color: var(--sage); }
.button-light:focus-visible, .site-footer :focus-visible { outline-color: #ead4a7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.75rem; }
.text-link { font-weight: 630; }
.text-link:hover { color: var(--accent); }

.site-header { background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.header-row { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; text-decoration: none; color: var(--heading); font: 740 1.15rem/1.15 var(--font-heading); letter-spacing: -.04em; }
.brand img { flex: none; }
.desktop-nav { display: none; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .94rem; color: var(--heading); font-weight: 600; }
.header-contact { display: none; }
.nav-link:hover, .nav-link.is-active { color: var(--primary); text-decoration: underline; }
.category-menu, .mobile-menu { position: relative; }
.category-menu summary { display: grid; width: 44px; min-height: 44px; place-content: center; border-radius: .45rem; color: var(--primary); }
.category-menu summary:hover { background: var(--sage); }
.category-menu[open] summary svg { transform: rotate(180deg); }
.menu-popover { background: white; border: 1px solid var(--border); border-radius: .75rem; padding: .4rem; }
.menu-popover ul { list-style: none; padding: 0; }
.menu-popover a { display: flex; gap: .6rem; min-height: 44px; align-items: center; padding: .4rem .65rem; border-radius: .35rem; text-decoration: none; }
.menu-popover a:hover, .menu-popover a[aria-current] { background: var(--sage); }
.mobile-menu > summary { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .58rem; min-height: 44px; color: var(--primary); font-weight: 650; }
.mobile-menu > summary span { font-size: .88rem; }
.mobile-panel { position: absolute; z-index: 2; right: 0; top: calc(100% + .8rem); width: min(22rem, calc(100vw - 2rem)); padding: .85rem 1rem; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: .8rem; display: grid; grid-template-columns: 1fr 44px; }
.mobile-panel > .nav-link { grid-column: 1 / -1; }
.mobile-panel > .nav-link:first-child { grid-column: 1; }
.mobile-panel .category-menu { display: contents; }
.mobile-panel .category-menu summary { grid-column: 2; grid-row: 1; }
.mobile-panel .menu-popover { grid-column: 1 / -1; }
.preview-notice { padding-block: .5rem; background: #eef3ec; color: var(--body); border-bottom: 1px solid #dbe5d9; font-size: .82rem; }
.preview-notice .container { display: flex; flex-wrap: wrap; column-gap: .75rem; }
.preview-notice strong { color: var(--primary); }

.hero { padding-block: clamp(2.4rem, 5vw, 4.8rem) clamp(2.25rem, 4vw, 3.7rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy h1 { font-size: clamp(2.125rem, 6.6vw, 4.2rem); letter-spacing: -.064em; font-weight: 760; text-wrap: balance; }
.hero-copy h1 span { color: var(--primary); }
.hero-copy > p:not(.eyebrow) { font-size: clamp(1.02rem, 1.6vw, 1.2rem); margin-top: 1.25rem; max-width: 35ch; }
.hero-art { border-radius: 1.1rem; overflow: hidden; background: #124337; }
.hero-art img { width: 100%; height: auto; }
.finder { display: grid; gap: 1rem; align-items: start; padding: clamp(1rem, 3vw, 2rem); background: #fff; border: 1px solid var(--border); border-radius: .95rem; box-shadow: var(--shadow); }
.finder-title { display: flex; align-items: center; gap: .8rem; }
.finder-title h2 { font-size: 1.32rem; }
.finder-title p { font-size: .95rem; margin-top: .25rem; }
.category-icon, .stage-icon { display: grid; flex: none; place-content: center; width: 3rem; height: 3rem; background: #e6efe6; color: var(--primary); border-radius: .62rem; }
.finder-input { display: grid; gap: .5rem; }
input[type=search], select { display: block; width: 100%; min-width: 0; min-height: 46px; background: #fff; color: var(--heading); padding: .58rem .76rem; border: 1px solid var(--control-border); border-radius: .52rem; }
input::placeholder { color: var(--muted); opacity: 1; }
select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230b4f46' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right .64rem center; background-repeat: no-repeat; }
.suggestions { display: flex; flex-wrap: wrap; gap: .25rem .45rem; list-style: none; padding: .35rem 0 0; }
.suggestions a { display: inline-flex; align-items: center; min-height: 44px; padding: .19rem .7rem; font-size: .88rem; font-weight: 630; background: #eef3ee; text-decoration: none; border-radius: .4rem; }
.suggestions a:hover { background: var(--sage); text-decoration: underline; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: end; margin-bottom: 1.65rem; }
.section-head > div > p:not(.eyebrow) { margin-top: .55rem; max-width: 64ch; }
.cards { display: grid; gap: 1rem; padding: 0; list-style: none; }
.card { min-width: 0; border: 1px solid var(--border); border-radius: .9rem; background: #fff; transition: border-color .18s, box-shadow .18s; }
.card:hover { border-color: #88a895; box-shadow: var(--shadow); }
.card a { display: flex; height: 100%; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--body); border-radius: inherit; }
.category-card a, .service-card a { padding: clamp(1rem, 2.5vw, 1.45rem); }
.category-card h3 { margin-top: 1.05rem; }
.card h3 { overflow-wrap: anywhere; }
.card p { margin-top: .56rem; }
.card-link { font-size: .93rem; color: var(--primary); font-weight: 700; margin-top: auto; padding-top: 1rem; }
.card a:hover .card-link, .card a:focus-visible .card-link { text-decoration: underline; }
.small-label { font-size: .89rem; font-weight: 650; color: var(--primary); margin-bottom: .5rem; }
.stages-section { background: #eaf1e9; border-block: 1px solid var(--border); }
.stages-grid, .faq-grid { display: grid; align-items: start; gap: 1.5rem 4rem; }
.stages-grid > div > p:not(.eyebrow) { margin-top: .75rem; max-width: 44ch; }
.stages-grid > div > .button { margin-top: 1rem; }
.stages { padding: 0; list-style: none; display: grid; gap: .7rem; }
.stages a { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .85rem; border-radius: .75rem; border: 1px solid var(--border); background: #fff; text-decoration: none; }
.stages a:hover { border-color: #88a895; }
.stages a:hover h3 { text-decoration: underline; }
.stages h3 { font-size: 1.2rem; }
.stages p { margin-top: .35rem; color: var(--body); }
.process { display: grid; gap: 1.25rem; list-style: none; padding: 0; }
.process li { padding: 1.1rem 0; border-top: 1px solid #a6b9aa; }
.process h3 { margin-top: .75rem; }
.process p { margin-top: .5rem; max-width: 42ch; }
.about-inline, .recommended { padding: 1.25rem; border-radius: .75rem; background: var(--sage); margin-top: 1.5rem; }
.about-inline p, .recommended h2 { margin-bottom: .6rem; }
.guides-section { background: #eff3ed; border-block: 1px solid var(--border); }
.guides-section .article-grid, .section > .container > h2 + .article-grid { margin-top: 1.2rem; }
.article-illustration { display: grid; place-items: center; width: 100%; min-height: 115px; color: #184e42; background: repeating-linear-gradient(90deg, #b8cbbc45 0 1px, transparent 1px 26px), #e0ece3; border-radius: .9rem .9rem 0 0; }
.article-illustration[data-topic=receipt] { color: #5d4930; background: repeating-linear-gradient(90deg, #bba47838 0 1px, transparent 1px 26px), #f2e9d5; }
.article-illustration[data-topic=clipboard] { color: #244e4a; background: repeating-linear-gradient(90deg, #91b6b437 0 1px, transparent 1px 26px), #dbeceb; }
.article-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem; }
.article-card .article-meta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin: 0 0 .6rem; font-size: .875rem; font-weight: 620; color: var(--primary); }
.article-meta span + span { color: var(--muted); }
.accordion { border-top: 1px solid #9db0a2; }
.accordion details { border-bottom: 1px solid #9db0a2; }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 54px; padding: .68rem .15rem; color: var(--heading); font-weight: 670; }
.accordion summary:hover { color: var(--primary); }
.accordion details[open] summary svg { transform: rotate(45deg); }
.accordion p { padding: .2rem 2rem 1rem .15rem; max-width: 65ch; }
.contact-section { padding-bottom: var(--section); }
.contact-panel { display: grid; gap: .85rem 1.2rem; justify-items: start; align-items: center; background: #103f35; border-radius: .9rem; padding: clamp(1.25rem, 4vw, 2.7rem); color: #e0eee5; }
.contact-icon { color: #f4dba9; }
.contact-panel h2 { color: white; }
.contact-panel p { margin-top: .45rem; }
.site-footer { background: #102c26; color: #d7e6dc; padding: 2.4rem 0 1.15rem; }
.site-footer .brand, .site-footer h2, .site-footer a { color: #fff; }
.site-footer h2 { font: 700 1rem/1.25 var(--font-body); letter-spacing: 0; margin-bottom: .45rem; }
.site-footer ul { padding: 0; list-style: none; }
.site-footer ul a { padding-block: .25rem; min-height: 36px; display: inline-flex; align-items: center; }
.footer-grid { display: grid; gap: 1.15rem 2rem; }
.footer-grid > div:first-child p { margin-top: .55rem; max-width: 37ch; }
.footer-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-top: 1.75rem; padding-top: .85rem; border-top: 1px solid #49675a; font-size: .88rem; }

.page-heading { background: #eaf1e9; border-bottom: 1px solid var(--border); padding-block: clamp(1.25rem, 4vw, 2.7rem) clamp(2.1rem, 5vw, 4.3rem); }
.page-heading h1 { overflow-wrap: anywhere; max-width: 22ch; }
.page-heading .container > p:not(.eyebrow) { margin-top: .85rem; font-size: 1.11rem; max-width: 65ch; }
.breadcrumbs { margin-bottom: 1.25rem; }
.breadcrumbs ol, .breadcrumbs li { list-style: none; display: flex; flex-wrap: wrap; gap: .16rem .48rem; padding: 0; align-items: center; }
.breadcrumbs li { font-size: .88rem; }
.breadcrumbs a { display: inline-flex; min-height: 32px; align-items: center; }
.directory-toolbar { display: grid; gap: .75rem; align-items: end; background: #fff; border: 1px solid var(--border); border-radius: .85rem; padding: 1.15rem; }
.field { min-width: 0; }
.field label { font-weight: 680; color: var(--heading); display: block; margin-bottom: .32rem; }
.icon-field { position: relative; }
.icon-field svg { position: absolute; top: 13px; left: .72rem; color: var(--muted); pointer-events: none; }
.icon-field input { padding-left: 2.35rem; }
.directory-results { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .4rem 1rem; margin: 1.9rem 0 1rem; }
.empty-state { background: #fff; border: 1px solid var(--border); border-radius: .8rem; padding: 1.25rem; }
.detail-grid { display: grid; align-items: start; gap: 1.6rem 4rem; }
.prose { overflow-wrap: anywhere; }
.prose > * { max-width: 68ch; }
.prose section + section, .prose .review-line + section { margin-top: 1.65rem; }
.prose h2 { margin-bottom: .5rem; font-size: clamp(1.5rem, 3vw, 2.05rem); }
.prose ul, .prose ol { padding-left: 1.45rem; }
.prose li + li { margin-top: .38rem; }
.review-line { color: var(--muted); margin-top: 1rem; }
.detail-aside, .contact-card { background: #fff; border: 1px solid var(--border); border-radius: .85rem; padding: 1.25rem; }
.detail-aside h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.detail-aside ul, .contact-links { padding: 0; list-style: none; }
.detail-aside a, .contact-links a, .source-list a { display: inline-flex; min-height: 44px; align-items: center; }
.detail-aside .button, .contact-card .button { margin-top: .8rem; }
.contact-card { max-width: 40rem; overflow-wrap: anywhere; }
.contact-card h2 { margin: .65rem 0 .45rem; }
.related-section { background: #eaf1e9; border-block: 1px solid var(--border); }
.resource-groups { display: grid; gap: 1rem; }
.resource-groups section { border: 1px solid var(--border); border-radius: .8rem; background: #fff; padding: 1.25rem; }
.resource-groups ul { padding: 0; list-style: none; }
.resource-groups li { margin-top: .75rem; }
.prose .check-list { padding-left: 0; list-style: none; }
.check-list li { display: flex; align-items: baseline; gap: .5rem; }
.check-list svg { color: var(--accent); transform: translateY(.15rem); }
.not-found { padding-block: var(--section); }
@media (min-width: 40rem) {
  .category-grid, .article-grid, .resource-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-input { grid-template-columns: minmax(0, 1fr) auto; }
  .directory-toolbar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .directory-toolbar > button { justify-self: start; }
  .contact-panel { grid-template-columns: auto 1fr; }
  .contact-panel > a { grid-column: 2; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 48rem) {
  .hero-grid { grid-template-columns: 1fr 1.03fr; }
  .hero-copy h1 { font-size: clamp(2.45rem, 4.85vw, 4.2rem); text-wrap: initial; }
  .hero-art img { aspect-ratio: 1.25; object-fit: cover; }
  .finder { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); }
  .stages-grid { grid-template-columns: .83fr 1.17fr; }
  .faq-grid { grid-template-columns: .68fr 1.32fr; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory-toolbar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
  .contact-panel { grid-template-columns: auto 1fr auto; }
  .contact-panel > a { grid-column: auto; }
}
@media (min-width: 64rem) {
  .header-row { min-height: 78px; }
  .desktop-nav, .header-contact { display: flex; }
  .desktop-nav { align-items: center; gap: clamp(.75rem, 2.35vw, 2.3rem); }
  .desktop-nav .category-menu { margin-left: clamp(-2.15rem, -2vw, -.65rem); }
  .desktop-nav .menu-popover { position: absolute; width: 16rem; left: 0; top: calc(100% + .25rem); box-shadow: var(--shadow); }
  .header-contact { padding: .45rem 1rem; border: 1px solid var(--control-border); border-radius: .55rem; }
  .header-contact:hover { background: var(--sage); }
  .mobile-menu { display: none; }
  .category-grid, .article-grid, .resource-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); }
  .detail-aside { position: sticky; top: 1rem; }
  .footer-grid { grid-template-columns: 1.75fr 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
