/* =====================================================================
 * START: assets/css/nahse-legal-pages.css  (NAHSE DFW Legal Pages v1.0.0)
 * ---------------------------------------------------------------------
 * TO-DO
 *  1. Upload to /wp-content/themes/Avada-Child-Theme/assets/css/
 *  2. Loads only on pages using [nahse_privacy_policy_page] or
 *     [nahse_terms_of_service_page].
 *  3. If the Avada header height changes, adjust --nahse-lg-hero-top and
 *     --nahse-lg-sticky-top below (same values as the Jobs page).
 * ---------------------------------------------------------------------
 * Every selector is scoped under .nahse-lg, except the Avada resets which
 * only apply on the legal pages (body.nahse-lg-page, added by PHP, with
 * body:has(.nahse-lg) kept as a backup). #main side padding is never
 * touched (Avada 100% width page); only top/bottom are reset.
 * Breakpoints: header-dependent values follow Avada (Large > 1213,
 * Medium 641 to 1213, Small <= 640). The sticky TOC only runs on Large,
 * where the desktop header shows. Below that the jump menu is used.
 * ===================================================================== */

/* ---------- Avada resets (only on the legal pages) ---------- */
body.nahse-lg-page #main { padding-top: 0 !important; padding-bottom: 0 !important; } /* sides stay: the Avada 100% container relies on them */
body.nahse-lg-page .avada-page-titlebar-wrapper,
body.nahse-lg-page .fusion-page-title-bar { display: none !important; }
@supports selector(:has(*)) {
	body:has(.nahse-lg) #main { padding-top: 0 !important; padding-bottom: 0 !important; }
	body:has(.nahse-lg) .avada-page-titlebar-wrapper,
	body:has(.nahse-lg) .fusion-page-title-bar { display: none !important; }
}

/* ---------- Tokens ---------- */
.nahse-lg {
	--nahse-lg-hero-top: 140px;
	--nahse-lg-sticky-top: 88px;
	--nahse-lg-anchor: 120px;
	--nahse-lg-navy: #0a1433;
	--nahse-lg-blue: #003194;
	--nahse-lg-gold: #f2c14e;
	--nahse-lg-sand: #f6f5f2;
	--nahse-lg-ink: #2a3352;
	--nahse-lg-muted: #4a5373;
	--nahse-lg-soft: #7a8199;
	--nahse-lg-line: #e6e8ef;
	--nahse-lg-field: #dde1ec;
	--nahse-lg-pale: #dbe3ff;
	--nahse-lg-ease: cubic-bezier(.2, .7, .2, 1);
	--nahse-lg-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--nahse-lg-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	display: block;
	width: 100%;
	background: var(--nahse-lg-sand);
	color: var(--nahse-lg-navy);
	font-family: var(--nahse-lg-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.nahse-lg *, .nahse-lg *::before, .nahse-lg *::after { box-sizing: border-box; }
.nahse-lg [hidden] { display: none !important; }
.nahse-lg h1, .nahse-lg h2, .nahse-lg h3 { margin: 0; padding: 0; font-family: var(--nahse-lg-sans); text-transform: none; color: inherit; border: 0; background: none; }
.nahse-lg p { margin: 0; }
.nahse-lg ol, .nahse-lg ul { margin: 0; padding: 0; list-style: none; }
.nahse-lg li { margin: 0; }
.nahse-lg strong { font-weight: 600; color: var(--nahse-lg-navy); }

/* Explicit link and field styles so Avada's globals cannot leak in */
.nahse-lg a, .nahse-lg a:visited { color: var(--nahse-lg-blue); text-decoration: none; box-shadow: none; border-bottom: 0; transition: color .2s, background .2s, border-color .2s; }
.nahse-lg a:hover, .nahse-lg a:focus { color: var(--nahse-lg-navy); text-decoration: none; }
.nahse-lg select {
	-webkit-appearance: none; appearance: none; margin: 0; font-family: var(--nahse-lg-sans); text-transform: none; letter-spacing: normal;
	box-shadow: none; min-height: 0; height: auto; line-height: 1.3; max-width: 100%;
}
.nahse-lg a:focus-visible, .nahse-lg select:focus-visible { outline: 3px solid var(--nahse-lg-gold); outline-offset: 2px; }
.nahse-lg [tabindex="-1"]:focus { outline: none; } /* headings focused by the jump menu / TOC */

.nahse-lg__wrap { position: relative; max-width: 1375px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.nahse-lg__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* ---------- Hero ---------- */
.nahse-lg__hero { position: relative; background: var(--nahse-lg-blue); color: #fff; overflow: hidden; }
.nahse-lg__hero-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 90% at 90% 20%, rgba(120, 160, 255, .3), transparent 60%); pointer-events: none; }
.nahse-lg__hero-inner { padding-top: var(--nahse-lg-hero-top); padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.nahse-lg__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nahse-lg-gold); }
.nahse-lg .nahse-lg__title { font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.nahse-lg__meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.nahse-lg__updated { font-size: 15px; color: var(--nahse-lg-pale); }
.nahse-lg__switch { display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); }
.nahse-lg__switch-item { display: inline-block; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.nahse-lg a.nahse-lg__switch-item, .nahse-lg a.nahse-lg__switch-item:visited { color: #fff; }
.nahse-lg a.nahse-lg__switch-item:hover, .nahse-lg a.nahse-lg__switch-item:focus { background: rgba(255, 255, 255, .12); color: #fff; }
.nahse-lg__switch-item.is-active { background: #fff; color: var(--nahse-lg-blue); }

/* ---------- Body layout ---------- */
.nahse-lg__body { display: flex; gap: 56px; align-items: flex-start; padding-top: 56px; padding-bottom: 112px; }
.nahse-lg__article { flex: 1; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 40px; }

/* ---------- Table of contents (Large screens) ---------- */
.nahse-lg__toc { flex: 0 0 260px; display: flex; flex-direction: column; gap: 2px; }
.nahse-lg__toc-label { padding: 0 0 12px 16px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nahse-lg-soft); }
.nahse-lg__toc-list { display: flex; flex-direction: column; gap: 2px; }
.nahse-lg a.nahse-lg__toc-link, .nahse-lg a.nahse-lg__toc-link:visited { display: flex; gap: 10px; padding: 8px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--nahse-lg-muted); transition: color .2s, border-color .2s; }
.nahse-lg a.nahse-lg__toc-link:hover, .nahse-lg a.nahse-lg__toc-link:focus { color: var(--nahse-lg-blue); }
.nahse-lg a.nahse-lg__toc-link.is-active { color: var(--nahse-lg-blue); font-weight: 600; border-left-color: var(--nahse-lg-blue); }
.nahse-lg__toc-n { flex: none; font-family: var(--nahse-lg-mono); font-size: 12px; padding-top: 1px; }

/* ---------- Jump menu (Medium / Small screens, JS only) ---------- */
.nahse-lg__jump { display: none; flex-direction: column; gap: 8px; }
.nahse-lg__jump-label { font-size: 13px; font-weight: 600; color: var(--nahse-lg-muted); }
.nahse-lg .nahse-lg__jump-select {
	width: 100%; padding: 14px 44px 14px 16px; border-radius: 14px; border: 1px solid var(--nahse-lg-field); background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23003194' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; font-size: 15px; font-weight: 500; color: var(--nahse-lg-navy); cursor: pointer;
}

/* ---------- Content ---------- */
.nahse-lg__intro { display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.nahse-lg__lead { font-size: 18px; line-height: 1.7; color: var(--nahse-lg-navy); text-wrap: pretty; }
.nahse-lg__card { padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: #fff; display: flex; flex-direction: column; gap: 40px; }
.nahse-lg__sec { scroll-margin-top: var(--nahse-lg-anchor); display: flex; flex-direction: column; gap: 18px; }
.nahse-lg__sec + .nahse-lg__sec { padding-top: 40px; border-top: 1px solid var(--nahse-lg-line); }
.nahse-lg__sec-head { display: flex; align-items: baseline; gap: 14px; }
.nahse-lg__num { flex: none; font-family: var(--nahse-lg-mono); font-size: 13px; font-weight: 500; color: var(--nahse-lg-blue); }
.nahse-lg .nahse-lg__h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--nahse-lg-navy); }
.nahse-lg__sec h3 { margin: 12px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--nahse-lg-navy); }
.nahse-lg__sec p { font-size: 17px; line-height: 1.7; color: var(--nahse-lg-ink); text-wrap: pretty; overflow-wrap: break-word; }
.nahse-lg__intro a, .nahse-lg__sec p a, .nahse-lg__list a,
.nahse-lg__intro a:visited, .nahse-lg__sec p a:visited, .nahse-lg__list a:visited { color: var(--nahse-lg-blue); text-decoration: underline; text-underline-offset: 3px; }
.nahse-lg__intro a:hover, .nahse-lg__sec p a:hover, .nahse-lg__list a:hover { color: var(--nahse-lg-navy); text-decoration: underline; }
.nahse-lg__list { display: flex; flex-direction: column; gap: 12px; }
.nahse-lg__list > li { position: relative; padding-left: 20px; font-size: 17px; line-height: 1.7; color: var(--nahse-lg-ink); text-wrap: pretty; overflow-wrap: break-word; }
.nahse-lg__list > li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--nahse-lg-blue); }
.nahse-lg .nahse-lg__ack { margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--nahse-lg-line); font-size: 16px; color: var(--nahse-lg-muted); font-style: italic; }

/* Contact card */
.nahse-lg__contact { padding: 28px; border-radius: 20px; background: var(--nahse-lg-sand); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.nahse-lg .nahse-lg__contact-addr { display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 1.6; color: var(--nahse-lg-ink); }
.nahse-lg__contact-name { font-size: 18px; font-weight: 600; color: var(--nahse-lg-navy); }
.nahse-lg a.nahse-lg__btn, .nahse-lg a.nahse-lg__btn:visited { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--nahse-lg-blue); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.nahse-lg a.nahse-lg__btn:hover, .nahse-lg a.nahse-lg__btn:focus { background: var(--nahse-lg-navy); color: #fff; }

/* ---------- Motion (JS adds nahse-lg--motion; content is visible without it) ---------- */
@media (prefers-reduced-motion: reduce) {
	.nahse-lg *, .nahse-lg *::before, .nahse-lg *::after { animation: none !important; transition: none !important; }
	.nahse-lg [data-hero] > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Large screens: sticky TOC (Avada Large > 1213px) ---------- */
@media (min-width: 1214px) {
	.nahse-lg__toc { position: sticky; top: calc(var(--nahse-lg-sticky-top) + 32px); max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; }
	body.admin-bar .nahse-lg__toc { top: calc(var(--nahse-lg-sticky-top) + 64px); max-height: calc(100vh - 182px); }
	body.admin-bar .nahse-lg { --nahse-lg-anchor: 152px; }
}

/* ---------- Medium / Small: no sidebar, jump menu instead ---------- */
@media (max-width: 1213px) {
	/* Fixed NAHSE mobile header is 88px tall */
	.nahse-lg { --nahse-lg-hero-top: 128px; --nahse-lg-anchor: 104px; }
	body.admin-bar .nahse-lg { --nahse-lg-anchor: 136px; }
	.nahse-lg__body { display: block; }
	.nahse-lg__article { max-width: 860px; }
	.nahse-lg__toc { display: none; }
	.nahse-lg--js .nahse-lg__jump { display: flex; }
	/* Without JS the TOC shows as a plain list above the article */
	.nahse-lg:not(.nahse-lg--js) .nahse-lg__toc { display: flex; max-width: 860px; margin: 0 0 40px; }
}
@media (max-width: 782px) {
	body.admin-bar .nahse-lg { --nahse-lg-anchor: 150px; }
}
@media (max-width: 640px) {
	.nahse-lg { --nahse-lg-hero-top: 112px; }
}
@media (max-width: 600px) {
	/* Admin bar is not fixed at this width */
	body.admin-bar .nahse-lg { --nahse-lg-anchor: 104px; }
}
@media (max-width: 767px) {
	.nahse-lg__hero-inner { padding-bottom: 56px; }
	.nahse-lg__body { padding-top: 40px; padding-bottom: 80px; }
	.nahse-lg__article { gap: 32px; }
	.nahse-lg__card { border-radius: 22px; gap: 32px; }
	.nahse-lg__sec + .nahse-lg__sec { padding-top: 32px; }
	.nahse-lg__lead { font-size: 17px; }
	.nahse-lg__sec p, .nahse-lg__list > li { font-size: 16px; }
	.nahse-lg__list > li::before { top: 11px; }
	.nahse-lg__contact { padding: 22px; }
}
@media (max-width: 480px) {
	.nahse-lg__wrap { padding-left: 16px; padding-right: 16px; }
	.nahse-lg__card { padding: 24px 20px; }
	.nahse-lg__meta { align-items: flex-start; }
	.nahse-lg__switch { width: 100%; }
	.nahse-lg__switch-item { flex: 1 1 0; padding: 10px 12px; text-align: center; }
	.nahse-lg a.nahse-lg__btn { width: 100%; justify-content: center; }
	.nahse-lg__sec-head { gap: 10px; }
}

/* ---------- Print ---------- */
@media print {
	.nahse-lg [data-hero] > * { opacity: 1 !important; transform: none !important; animation: none !important; }
	.nahse-lg__toc, .nahse-lg__jump, .nahse-lg__hero-glow, .nahse-lg__switch, .nahse-lg__btn { display: none !important; }
	.nahse-lg, .nahse-lg__hero, .nahse-lg__card { background: #fff !important; color: #000 !important; }
	.nahse-lg .nahse-lg__title, .nahse-lg__updated, .nahse-lg__eyebrow { color: #000 !important; }
	.nahse-lg__hero-inner { padding-top: 0; padding-bottom: 16px; }
	.nahse-lg__body { display: block; padding: 0; }
	.nahse-lg__card { padding: 0; }
	.nahse-lg__sec { break-inside: auto; }
	.nahse-lg__h2 { break-after: avoid; }
}

/* =====================================================================
 * END: assets/css/nahse-legal-pages.css
 * ===================================================================== */
