/* ==========================================================================
   Cookie consent banner + footer legal links
   Rothchild Law Office — added outside the Webflow export so a re-publish
   from Webflow cannot overwrite it. Loaded by every page alongside js/consent.js.
   ========================================================================== */

:root {
  --rlo-mint: #c9e9bf;
  --rlo-dark-mint: #698461;
  --rlo-ink: #131313;
  --rlo-serif: "Times New Roman", TimesNewRoman, Times, Baskerville, Georgia, serif;
}

/* --- Footer legal link row ------------------------------------------------ */

.footerlegallinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin-top: 0.5rem;
}

/* Override the Webflow .footerlegallink block/8rem rule inside the row only. */
.footerlegallinks .footerlegallink {
  display: inline-block;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  color: #000;
  text-align: center;
  line-height: 1.5rem;
}

.footerlegallinks .footerlegallink:hover,
.footerlegallinks .footerlegallink:focus-visible {
  text-decoration: underline;
}

/* A <button> styled as one of the footer links (Cookie Preferences). */
.footerlegalbutton {
  font: inherit;
  color: #000;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1.5rem;
  text-align: center;
  text-decoration: underline;   /* read as a link, like its siblings */
}

/* --- Consent banner ------------------------------------------------------- */

.rlo-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2147483000;
  background: #fff;
  color: var(--rlo-ink);
  border-top: 4px solid var(--rlo-dark-mint);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
  font-family: var(--rlo-serif);
  font-size: 1rem;
  line-height: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
}

.rlo-consent[hidden] {
  display: none;
}

.rlo-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.25rem;
}

.rlo-consent__title {
  font-size: 1.5rem;
  line-height: 2rem;
  margin: 0 0 .5rem;
  font-weight: 700;
}

.rlo-consent__text {
  margin: 0 0 1rem;
  max-width: 78ch;
}

.rlo-consent__text a {
  color: var(--rlo-dark-mint);
  text-decoration: underline;
}

.rlo-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.rlo-btn {
  font: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: .55rem 1.5rem;
  border-radius: 10px;
  border: 2px solid var(--rlo-ink);
  background: #fff;
  color: var(--rlo-ink);
  cursor: pointer;
  min-height: 44px;      /* WCAG 2.5.5 target size */
}

/* Accept and Reject are deliberately the same size and weight — no dark pattern. */
.rlo-btn--accept {
  background: var(--rlo-mint);
  border-color: var(--rlo-dark-mint);
}

.rlo-btn--reject {
  background: #fff;
}

.rlo-btn--link {
  border-color: transparent;
  background: none;
  text-decoration: underline;
  padding-left: .5rem;
  padding-right: .5rem;
}

.rlo-btn:hover {
  background: var(--rlo-mint);
}

.rlo-btn--link:hover {
  background: none;
}

/* --- Preferences panel ---------------------------------------------------- */

.rlo-consent__prefs[hidden] {
  display: none;
}

.rlo-consent__prefs {
  border-top: 1px solid #d8d8d8;
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.rlo-cat {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px solid #ececec;
}

.rlo-cat:last-of-type {
  border-bottom: 0;
}

.rlo-cat input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: .3rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--rlo-dark-mint);
}

/* Webflow's normalize sets label {font-weight:bold} — reset it per line. */
.rlo-cat label {
  font-weight: 400;
  margin-bottom: 0;
}

.rlo-cat__name {
  font-weight: 700;
  display: block;
}

.rlo-cat__desc {
  font-weight: 400;
  display: block;
  max-width: 78ch;
}

.rlo-cat__locked {
  font-style: italic;
  color: #4a4a4a;
}

/* --- Focus visibility (WCAG 2.4.7) --------------------------------------- */

.rlo-consent :focus-visible,
.footerlegalbutton:focus-visible {
  outline: 3px solid var(--rlo-dark-mint);
  outline-offset: 2px;
}

/* --- Motion ---------------------------------------------------------------*/

@media (prefers-reduced-motion: no-preference) {
  .rlo-consent {
    animation: rlo-consent-in .25s ease-out both;
  }
  @keyframes rlo-consent-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
}

@media (max-width: 767px) {
  .rlo-consent__inner {
    padding: 1.25rem 1rem 1rem;
  }
  .rlo-consent__title {
    font-size: 1.3rem;
  }
  .rlo-consent__actions .rlo-btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* --- Third-party embed placeholders (YouTube / Google Maps) ---------------- */

.rlo-gate {
  background: #f4f6f2;
  border: 1px solid var(--rlo-dark-mint);
  border-radius: 8px;
  padding: 1.25rem;
  font-family: var(--rlo-serif);
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--rlo-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .75rem;
  min-height: 220px;
  overflow: auto;
}

/* Sits inside Webflow's aspect-ratio box, where the iframe is absolutely positioned. */
.rlo-gate--fill {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.rlo-gate__text,
.rlo-gate__note {
  margin: 0;
  max-width: 60ch;
}

.rlo-gate__note {
  font-size: .875rem;
  line-height: 1.35rem;
  color: #4a4a4a;
}

.rlo-gate__btn {
  flex: 0 0 auto;
}

.rlo-gate__link {
  font: inherit;
  color: var(--rlo-dark-mint);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.rlo-gate :focus-visible,
.rlo-gate.rlo-gate :focus-visible {
  outline: 3px solid var(--rlo-dark-mint);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .rlo-gate {
    padding: .875rem;
    gap: .5rem;
  }
  .rlo-gate__note {
    font-size: .8125rem;
    line-height: 1.2rem;
  }
}

.rlo-gate__label {
  display: block;
  font-weight: 700;
}

/* --- Accessibility page: real <h1>/<h2> elements, styled to match the
       site's existing .herotext / .contenttitle text so nothing shifts. ------ */

h1.herotext,
h2.contenttitle {
  font-weight: 400;
  margin-top: 0;
}

h2.contenttitle {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
