/**
 * ARI — legal pages (privacy, terms, giving, cookies) and the cookie notice.
 * Kept out of the big home stylesheets so legal typography can change without
 * touching the marketing layout.
 */

/* ---------------------------------------------------------------- legal copy */

.ari-legal {
  --legal-measure: 78ch;
  color: var(--ink, #1a1a18);
  font-family: var(--sans, "Manrope", sans-serif);
  font-size: 1.0125rem;
  line-height: 1.75;
}

.ari-legal > * { max-width: var(--legal-measure); }

.ari-legal .ari-legal-meta {
  margin: 0 0 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line, #c8bea4);
  color: var(--muted, #736d5a);
  font-size: 0.9375rem;
}

.ari-legal h2 {
  margin: 3rem 0 0.875rem;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.25;
  color: var(--navy, #153564);
  letter-spacing: -0.01em;
}

.ari-legal h2:first-child { margin-top: 0; }

.ari-legal h3 {
  margin: 2rem 0 0.625rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-deep, #0d2446);
}

.ari-legal p { margin: 0 0 1.125rem; }

.ari-legal ul,
.ari-legal ol { margin: 0 0 1.375rem; padding-inline-start: 1.5rem; }
.ari-legal li { margin-bottom: 0.625rem; }

.ari-legal strong { color: var(--navy-deep, #0d2446); }

.ari-legal a {
  color: var(--navy, #153564);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.ari-legal a:hover { color: var(--green, #436c40); }

.ari-legal code {
  padding: 0.1em 0.4em;
  border-radius: 3px;
  background: rgba(21, 53, 100, 0.07);
  font-size: 0.9em;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Cookie table — scrolls on its own instead of widening the page. */
.ari-legal .ari-legal-table {
  width: 100%;
  max-width: var(--legal-measure);
  margin: 0 0 1.75rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}

.ari-legal .ari-legal-table thead { background: var(--bone, #f4efe6); }

.ari-legal .ari-legal-table th,
.ari-legal .ari-legal-table td {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line, #c8bea4);
  text-align: start;
  vertical-align: top;
}

.ari-legal .ari-legal-table th {
  font-weight: 700;
  color: var(--navy-deep, #0d2446);
  white-space: nowrap;
}

/* --------------------------------------------------------- cookie notice bar */

/* A notice, not an alarm: paper surface, body-weight text, one quiet accent
   line in brand gold, and buttons a size smaller than the page's own CTAs. */

.ari-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 10050; /* above the hero section, which Salient stacks at 9998 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 0.95rem clamp(1rem, 4vw, 2.25rem);
  background: #fbf9f5;
  border-top: 2px solid var(--gold, #d6a23e);
  box-shadow: 0 -6px 26px rgba(26, 26, 24, 0.09);
  color: var(--ink, #1a1a18);
  font-family: var(--sans, "Manrope", sans-serif);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  transform: translateY(100%);
  transition: transform var(--motion-ui, 240ms) var(--motion-ease-ui, ease);
}

.ari-consent[hidden] { display: none; }
.ari-consent.is-visible { transform: translateY(0); }

.ari-consent__text {
  flex: 1 1 28rem;
  max-width: 62ch;
  margin: 0;
  color: #4a4740;
}

.ari-consent__text a {
  color: var(--navy, #153564);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(21, 53, 100, 0.35);
}

.ari-consent__text a:hover { text-decoration-color: currentColor; }

.ari-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ari-consent__btn {
  min-height: 38px;
  padding: 0.5rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 500 0.8125rem/1.2 var(--sans, "Manrope", sans-serif);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--motion-micro, 160ms) ease,
              border-color var(--motion-micro, 160ms) ease,
              color var(--motion-micro, 160ms) ease;
}

.ari-consent__btn--accept {
  background: var(--navy, #153564);
  color: #fff;
}

.ari-consent__btn--accept:hover { background: #1d4379; }

.ari-consent__btn--essential {
  background: transparent;
  border-color: rgba(21, 53, 100, 0.28);
  color: var(--navy, #153564);
}

.ari-consent__btn--essential:hover {
  background: rgba(21, 53, 100, 0.06);
  border-color: rgba(21, 53, 100, 0.45);
}

.ari-consent__btn:focus-visible {
  outline: 2px solid var(--navy, #153564);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .ari-consent { gap: 0.75rem; padding: 0.9rem 1rem 1.05rem; }
  .ari-consent__actions { width: 100%; }
  .ari-consent__btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ari-consent { transition: none; }
}

/* ------------------------------------------------- legal links in the footer */

.ari-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.8125rem;
}

.ari-footer-legal a {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: opacity var(--motion-micro, 160ms) ease, border-color var(--motion-micro, 160ms) ease;
}

.ari-footer-legal a:hover,
.ari-footer-legal a:focus-visible {
  opacity: 1;
  border-bottom-color: currentColor;
}
