/* LECHAIM — Accessibility statement page */
:root {
  --navy: #152640;
  --navy-deep: #102038;
  --cream: #f7f1e6;
  --ivory: #fffef8;
  --gold: #c4a06a;
  --text: #1a2436;
  --muted: #4d5a6e;
  --font-display: "Playfair Display", "Frank Ruhl Libre", serif;
  --font-body: "Heebo", "Assistant", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.a11y-page {
  margin: 0;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

.a11y-skip {
  position: absolute;
  right: 1rem;
  top: -3.5rem;
  z-index: 80;
  padding: 0.5rem 0.9rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.a11y-skip:focus,
.a11y-skip:focus-visible {
  top: 0.75rem;
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.a11y-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 160, 106, 0.28);
  direction: ltr;
}

.a11y-header__inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0.55rem max(1rem, env(safe-area-inset-right), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.a11y-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.a11y-brand img:first-child {
  height: 36px;
  width: auto;
}

.a11y-brand img:last-child {
  height: 24px;
  width: auto;
  max-width: 7.2rem;
}

.a11y-header__links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  direction: rtl;
}

.a11y-header__links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.a11y-header__links a:hover {
  text-decoration: underline;
}

.a11y-header__links a:focus-visible,
.a11y-brand:focus-visible,
.a11y-article a:focus-visible,
.a11y-footer a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.a11y-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.75rem max(1.15rem, env(safe-area-inset-right), env(safe-area-inset-left)) 3rem;
}

.a11y-kicker {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.a11y-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

.a11y-title::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  margin: 0.75rem 0 0;
  background: var(--gold);
}

.a11y-updated {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.a11y-article section {
  margin: 0 0 1.85rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--ivory);
  border: 1px solid rgba(196, 160, 106, 0.35);
  border-radius: 14px;
}

.a11y-article h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
}

.a11y-article p,
.a11y-article li {
  margin: 0 0 0.7rem;
}

.a11y-article ul {
  margin: 0.2rem 0 0.4rem;
  padding-inline-start: 1.25rem;
}

.a11y-article a {
  color: var(--navy);
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.18em;
}

.a11y-contact {
  display: grid;
  gap: 0.35rem;
  margin: 0.4rem 0 0.8rem;
}

.a11y-contact span {
  color: var(--muted);
  font-size: 0.92rem;
}

.a11y-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer--compact {
  --footer-wave-fill: var(--cream);
  position: relative;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  overflow: hidden;
  background: #17345d;
  color: #fff;
  text-align: center;
  padding: 2.4rem 1.1rem calc(8.6rem + env(safe-area-inset-bottom, 0px));
}

.site-footer__wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  width: 100%;
  height: 2.4rem;
  line-height: 0;
  pointer-events: none;
}

.site-footer__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-footer__wave path {
  fill: var(--footer-wave-fill, var(--cream));
}

.site-footer__brand {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer__tag {
  margin: 0;
  font-size: clamp(0.8rem, 1.8vw, 0.92rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.15rem;
  margin: 0.55rem 0 0.15rem;
}

.site-footer__nav a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.site-footer__follow {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.site-footer__link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.site-footer__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (min-width: 960px) {
  .site-footer--compact {
    padding: 2.8rem 2rem 2.4rem;
  }
}

@media (min-width: 720px) {
  .a11y-article section {
    padding: 1.35rem 1.5rem 1.4rem;
  }
}

/* Keep the existing UserWay control; only a visible keyboard focus ring */
.uwy .userway_buttons_wrapper :is(button, a, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px !important;
}
