/* =============================================================================
   Casa Vergara — refresh layer
   Loaded LAST on: landing.html, privacy.html, terms.html
   Covers:
     1. "Relax and Enjoy Your Stay" highlights section (responsive + motion)
     2. Privacy Policy / Terms & Conditions pages (hero, tabs, contents list,
        reading progress, responsive article)
   Safe to delete this file (and the matching markup) to go back to the old look.
   ========================================================================== */

/* =============================================================================
   1. HIGHLIGHTS — "Relax and Enjoy Your Stay"
   ========================================================================== */

body .landing-highlights-strip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f9fc 0%, #e9f2f9 100%);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(5rem, 9vw, 7.5rem);
}

/* Two slow water lines drifting along the bottom edge of the section.
   Same wave, different tint and speed, so they never line up. */
body .landing-highlights-strip::before,
body .landing-highlights-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 1200px 100%;
}
body .landing-highlights-strip::before {
  height: clamp(60px, 9vw, 104px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C200 0 400 0 600 50 S1000 100 1200 50 V100 H0Z' fill='%232f86bd' fill-opacity='.10'/%3E%3C/svg%3E");
  animation: cvHlDrift 34s linear infinite;
}
body .landing-highlights-strip::after {
  height: clamp(44px, 7vw, 78px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C200 0 400 0 600 50 S1000 100 1200 50 V100 H0Z' fill='%230c3b5d' fill-opacity='.07'/%3E%3C/svg%3E");
  animation: cvHlDrift 22s linear infinite reverse;
}
@keyframes cvHlDrift {
  to { background-position-x: -1200px; }
}

/* heading */
body .landing-highlights-strip .landing-highlights-head {
  margin-bottom: clamp(1.75rem, 4vw, 3rem) !important;
}
body .landing-highlights-strip .landing-highlights-head h2 {
  font-size: clamp(1.85rem, 4.6vw, 2.75rem);
  margin-bottom: 0;
}
body .landing-highlights-strip .highlights-divider {
  width: 72px;
  height: 4px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--accent), #f1d861);
  transform-origin: center;
}
body .landing-highlights-strip .hl-lead {
  max-width: 46ch;
  margin: 1rem auto 0;
  color: var(--cv-muted, #6c7a8d);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.65;
}

/* grid */
body .landing-highlights-strip .hl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
  max-width: 1120px;
  margin: 0 auto;
}

/* card */
body .landing-highlights-strip .hl-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(1.75rem, 3.2vw, 2.6rem) clamp(1.25rem, 2.4vw, 2rem) clamp(1.9rem, 3.4vw, 2.75rem);
  background: #fff;
  border: 1px solid rgba(12, 59, 93, 0.08);
  border-radius: 1.4rem;
  box-shadow: 0 10px 30px rgba(12, 59, 93, 0.07);
  transition: transform 0.35s var(--cv-ease, ease), box-shadow 0.35s var(--cv-ease, ease), border-color 0.35s ease;
}
/* gold bar that sweeps in along the bottom edge */
body .landing-highlights-strip .hl-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #f1d861);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--cv-ease, ease);
}

body .landing-highlights-strip .hl-icon {
  position: relative;
  flex: none;
  width: 4.75rem;
  height: 4.75rem;
  margin-bottom: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 1.3rem;
  font-size: 2rem;
  color: var(--primary);
  background: linear-gradient(135deg, #eaf4fb, #d9eaf5);
  transition: background 0.35s ease, color 0.35s ease, transform 0.45s var(--cv-ease, ease);
}
/* ring that pulses once when the card scrolls into view */
body .landing-highlights-strip .hl-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 1.65rem;
  border: 1.5px solid rgba(217, 179, 18, 0.6);
  opacity: 0;
  pointer-events: none;
}

body .landing-highlights-strip .hl-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--primary);
  margin: 0 0 0.6rem;
}
body .landing-highlights-strip .hl-card p {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(0.96rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  color: #5b6b7a;
}

/* hover only where hover exists, so phones never get "stuck" states */
@media (hover: hover) {
  body .landing-highlights-strip .hl-card:hover {
    transform: translateY(-6px);
    border-color: rgba(12, 59, 93, 0.14);
    box-shadow: 0 22px 44px rgba(12, 59, 93, 0.15);
  }
  body .landing-highlights-strip .hl-card:hover::after { transform: scaleX(1); }
  body .landing-highlights-strip .hl-card:hover .hl-icon {
    background: var(--primary);
    color: #f1d861;
    transform: rotate(-6deg) scale(1.06);
  }
}

/* entrance: one staggered moment per section */
.cv-js .hl-reveal:not(.is-in) .hl-card,
.cv-js .hl-reveal:not(.is-in) .highlights-divider,
.cv-js .hl-reveal:not(.is-in) .hl-lead { opacity: 0; }

.cv-js .hl-reveal.is-in .hl-card {
  animation: cvHlRise 0.75s var(--cv-ease, ease) backwards;
  animation-delay: calc(var(--i, 0) * 130ms + 150ms);
}
.cv-js .hl-reveal.is-in .hl-icon::after {
  animation: cvHlRing 1.1s ease-out backwards;
  animation-delay: calc(var(--i, 0) * 130ms + 650ms);
}
.cv-js .hl-reveal.is-in .highlights-divider { animation: cvHlGrow 0.8s var(--cv-ease, ease) backwards; }
.cv-js .hl-reveal.is-in .hl-lead { animation: cvHlFade 0.8s ease backwards 0.1s; }

@keyframes cvHlRise {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes cvHlRing {
  0%   { opacity: 0.9; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.35); }
}
@keyframes cvHlGrow {
  from { opacity: 1; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes cvHlFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* tablet: stay three-across, just tighter */
@media (max-width: 991.98px) {
  body .landing-highlights-strip .hl-grid { max-width: 880px; }
  body .landing-highlights-strip .hl-icon { width: 4rem; height: 4rem; font-size: 1.65rem; border-radius: 1.1rem; margin-bottom: 1.1rem; }
  body .landing-highlights-strip .hl-icon::after { border-radius: 1.4rem; }
  body .landing-highlights-strip .hl-card p { max-width: none; }
}

/* phone: horizontal cards (icon left, text right) so the section stays short */
@media (max-width: 767.98px) {
  body .landing-highlights-strip .hl-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    gap: 0.85rem;
  }
  body .landing-highlights-strip .hl-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon title" "icon text";
    column-gap: 1.1rem;
    row-gap: 0.2rem;
    align-items: center;
    align-content: center;
    text-align: left;
    padding: 1.15rem 1.15rem 1.3rem;
    border-radius: 1.15rem;
  }
  body .landing-highlights-strip .hl-icon {
    grid-area: icon;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0;
    font-size: 1.45rem;
    border-radius: 1rem;
  }
  body .landing-highlights-strip .hl-icon::after { inset: -5px; border-radius: 1.25rem; }
  body .landing-highlights-strip .hl-card h3 { grid-area: title; font-size: 1.2rem; margin: 0; align-self: end; }
  body .landing-highlights-strip .hl-card p { grid-area: text; font-size: 0.95rem; line-height: 1.55; align-self: start; }
  /* on phones the cards slide in from the side, one after another */
  @keyframes cvHlRise {
    from { opacity: 0; transform: translateX(-22px); }
    to   { opacity: 1; transform: none; }
  }
}

/* =============================================================================
   2. LEGAL PAGES — Privacy Policy / Terms & Conditions
   ========================================================================== */

:root { --legal-top: 5.5rem; }

/* ---- hero ---------------------------------------------------------------- */
.legal-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(47, 134, 189, 0.45), transparent 60%),
    linear-gradient(135deg, #0a3250 0%, #0c3b5d 55%, #145584 100%);
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(4.25rem, 8vw, 6rem);
}
/* the page background rises into the hero as a still water line */
.legal-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(34px, 6vw, 64px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 55 C200 5 400 5 600 55 S1000 105 1200 55 V100 H0Z' fill='%23f5f7fa'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.legal-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.legal-crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.legal-crumbs a:hover { color: #fff; text-decoration: underline; }
.legal-crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

body .legal-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 0.9rem;
}
.legal-hero-lead {
  max-width: 54ch;
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.84);
}

.legal-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.legal-switch a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.legal-switch a:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.55); }
.legal-switch a[aria-current="page"] {
  background: linear-gradient(135deg, #f1d861, var(--accent));
  border-color: transparent;
  color: #0a2c46;
}

/* hero entrance: the one orchestrated moment on these pages */
.legal-hero .legal-rise {
  animation: cvLegalRise 0.7s var(--cv-ease, ease) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}
@keyframes cvLegalRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---- reading progress ---------------------------------------------------- */
.legal-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--legal-bar-top, 0px);
  height: 3px;
  z-index: 1040;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.legal-progress.is-on { opacity: 1; }
.legal-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f1d861);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---- main area ----------------------------------------------------------- */
.legal-main {
  background: var(--cv-canvas, #f5f7fa);
  padding: clamp(0.5rem, 2vw, 1.25rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.legal-shell { max-width: 1120px; margin: 0 auto; }

/* terms: Room / Event switch (sliding thumb) */
.legal-tabs {
  --pad: 0.3rem;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 440px);
  margin: 0 0 clamp(1.1rem, 3vw, 1.75rem);
  padding: var(--pad);
  background: #fff;
  border: 1px solid var(--cv-line, #e5ebf1);
  border-radius: 999px;
  box-shadow: var(--cv-shadow-sm, 0 2px 8px rgba(12, 35, 56, 0.06));
}
.legal-tabs-thumb {
  position: absolute;
  top: var(--pad);
  bottom: var(--pad);
  left: var(--pad);
  width: calc((100% - var(--pad) * 2) / 2);
  border-radius: 999px;
  background: var(--primary, #0c3b5d);
  box-shadow: 0 6px 14px rgba(12, 59, 93, 0.25);
  transition: transform 0.4s var(--cv-ease, ease);
}
.legal-tabs[data-active="event"] .legal-tabs-thumb { transform: translateX(100%); }
.legal-tabs button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--primary, #0c3b5d);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.3s ease;
}
.legal-tabs button[aria-selected="true"] { color: #fff; }
.legal-tabs button:focus-visible { outline: 3px solid rgba(47, 134, 189, 0.45); outline-offset: 2px; }

/* layout: contents list + article */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
@media (min-width: 992px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; }
}

/* contents list */
.legal-toc { position: sticky; top: var(--legal-top); z-index: 5; }
.legal-toc-title {
  margin: 0 0 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary, #0c3b5d);
}
.legal-toc-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--cv-muted, #6c7a8d);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.legal-toc-list .n { font-variant-numeric: tabular-nums; font-weight: 700; opacity: 0.7; }
.legal-toc-list a:focus-visible { outline: 3px solid rgba(47, 134, 189, 0.45); outline-offset: 2px; }

/* phones and tablets: a pill strip that sticks under the header */
@media (max-width: 991.98px) {
  .legal-toc-title { display: none; }
  /* solid backing so body text never peeks through above/around the strip */
  .legal-toc {
    top: calc(var(--legal-top) - 12px);
    margin: -0.5rem -0.5rem 0;
    padding: 0.75rem 0.5rem 0.5rem;
    background: var(--cv-canvas, #f5f7fa);
  }
  .legal-toc-list {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--cv-line, #e5ebf1);
    border-radius: 999px;
    box-shadow: var(--cv-shadow-sm, 0 2px 8px rgba(12, 35, 56, 0.06));
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .legal-toc-list::-webkit-scrollbar { display: none; }
  .legal-toc-list li { flex: none; }
  .legal-toc-list a {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 600;
  }
  .legal-toc-list a.is-active { background: var(--primary, #0c3b5d); color: #fff; }
  .legal-toc-list a.is-active .n { opacity: 1; color: #f1d861; }
}

/* desktop: vertical list with a gold marker */
@media (min-width: 992px) {
  .legal-toc { max-height: calc(100vh - var(--legal-top) - 1rem); overflow-y: auto; padding-right: 0.25rem; }
  .legal-toc-list { border-left: 2px solid var(--cv-line, #e5ebf1); }
  .legal-toc-list a { padding: 0.55rem 0.75rem 0.55rem 1rem; margin-left: -2px; border-left: 2px solid transparent; }
  .legal-toc-list a:hover { color: var(--primary, #0c3b5d); }
  .legal-toc-list a.is-active {
    color: var(--primary, #0c3b5d);
    font-weight: 600;
    border-left-color: var(--accent, #d9b312);
    background: linear-gradient(90deg, rgba(217, 179, 18, 0.12), transparent);
  }
}

/* article */
.legal-doc {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--cv-line, #e5ebf1);
  border-radius: clamp(1.1rem, 2.4vw, 1.6rem);
  box-shadow: var(--cv-shadow-md, 0 10px 28px rgba(12, 35, 56, 0.09));
  overflow: hidden;
}
.legal-doc-head {
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1.25rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, #fbfdff, #f2f7fb);
  border-bottom: 1px solid var(--cv-line, #e5ebf1);
}
.legal-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.legal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-50, #eef4f9);
  color: var(--primary, #0c3b5d);
  font-size: 0.82rem;
  font-weight: 600;
}
.legal-chip.is-gold { background: var(--accent-soft, #fbf5d9); color: #7a6405; }
.legal-doc-title {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  color: var(--primary, #0c3b5d);
}
.legal-doc-sub { margin: 0; color: var(--cv-muted, #6c7a8d); }

.legal-sec {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1rem clamp(0.9rem, 2vw, 1.4rem);
  padding: clamp(1.25rem, 2.6vw, 1.85rem) clamp(1.25rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--cv-line, #e5ebf1);
  scroll-margin-top: calc(var(--legal-top) + 4.25rem);
}
@media (min-width: 992px) { .legal-sec { scroll-margin-top: calc(var(--legal-top) + 0.5rem); } }
.legal-sec-n {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--primary-50, #eef4f9);
  color: var(--primary, #0c3b5d);
  font-weight: 700;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}
.legal-sec h2 {
  margin: 0.2rem 0 0.55rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--primary, #0c3b5d);
}
.legal-sec p {
  margin: 0;
  max-width: 68ch;
  white-space: pre-line;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text, #3a4560);
  overflow-wrap: anywhere;
}
.legal-sec.is-flash { animation: cvLegalFlash 1.4s ease; }
@keyframes cvLegalFlash {
  0%   { background: rgba(217, 179, 18, 0.18); }
  100% { background: transparent; }
}

.legal-doc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, #f6fafd, #eef5fa);
}
.legal-doc-foot p { margin: 0; color: var(--primary, #0c3b5d); font-weight: 600; }
.legal-doc-foot small { display: block; margin-top: 0.15rem; font-weight: 400; color: var(--cv-muted, #6c7a8d); }
.legal-foot-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.legal-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--cv-line-strong, #d5dee8);
  background: #fff;
  color: var(--primary, #0c3b5d);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.legal-top-btn:hover { border-color: var(--primary, #0c3b5d); background: var(--primary-50, #eef4f9); }

/* entrance for the freshly loaded document */
.legal-doc.is-entering { animation: cvLegalRise 0.5s var(--cv-ease, ease) backwards; }
.legal-doc.is-entering .legal-sec {
  animation: cvLegalRise 0.6s var(--cv-ease, ease) backwards;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}

/* loading skeleton */
.legal-skel {
  min-height: 60vh;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--cv-line, #e5ebf1);
  border-radius: clamp(1.1rem, 2.4vw, 1.6rem);
  box-shadow: var(--cv-shadow-sm, 0 2px 8px rgba(12, 35, 56, 0.06));
}
.legal-skel i {
  display: block;
  height: 0.9rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf2f7 25%, #f7fafc 50%, #edf2f7 75%) 0 0 / 200% 100%;
  animation: cvLegalShimmer 1.3s linear infinite;
}
.legal-skel i.t { height: 1.6rem; width: 45%; margin-bottom: 1.5rem; }
.legal-skel i.w1 { width: 100%; }
.legal-skel i.w2 { width: 92%; }
.legal-skel i.w3 { width: 70%; margin-bottom: 1.9rem; }
@keyframes cvLegalShimmer { to { background-position: -200% 0; } }

.legal-empty,
.legal-error {
  padding: 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--cv-line, #e5ebf1);
  border-radius: 1.25rem;
  color: var(--cv-muted, #6c7a8d);
}

/* small phones */
@media (max-width: 575.98px) {
  .legal-sec { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .legal-sec-n { width: 2.1rem; height: 2.1rem; border-radius: 0.65rem; font-size: 0.88rem; }
  .legal-sec p { font-size: 0.98rem; line-height: 1.75; }
  .legal-doc-foot { flex-direction: column; align-items: stretch; }
  .legal-foot-actions .btn, .legal-foot-actions .legal-top-btn { flex: 1 1 100%; justify-content: center; }
  .legal-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .legal-switch a { justify-content: center; gap: 0.4rem; padding-inline: 0.5rem; font-size: 0.85rem; white-space: nowrap; }
  .legal-chips { gap: 0.4rem; }
  .legal-chip { font-size: 0.78rem; padding: 0.3rem 0.65rem; }
  .legal-chip.is-gold { order: 3; }
  .legal-tabs button { font-size: 0.88rem; padding-inline: 0.4rem; gap: 0.35rem; }
}

/* ---- reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body .landing-highlights-strip::before,
  body .landing-highlights-strip::after { animation: none !important; }
  .cv-js .hl-reveal .hl-card,
  .cv-js .hl-reveal .highlights-divider,
  .cv-js .hl-reveal .hl-lead,
  .cv-js .hl-reveal .hl-icon::after,
  .legal-hero .legal-rise,
  .legal-doc.is-entering,
  .legal-doc.is-entering .legal-sec,
  .legal-sec.is-flash,
  .legal-skel i { animation: none !important; opacity: 1 !important; }
  body .landing-highlights-strip .hl-card,
  body .landing-highlights-strip .hl-icon,
  .legal-tabs-thumb { transition: none !important; }
}

/* ---- print ---------------------------------------------------------------- */
@media print {
  .legal-hero { background: none; color: #000; padding: 0 0 1rem; }
  .legal-hero::after, .legal-crumbs, .legal-switch, .legal-tabs, .legal-toc, .legal-progress, .legal-doc-foot { display: none !important; }
  body .legal-hero h1, .legal-hero-lead { color: #000; }
  .legal-doc { box-shadow: none; border: 0; }
  .legal-sec { break-inside: avoid; }
}

/* ---- landing hero photo: gentle, on-brand motion ---------------------------
   A slow drift on the photo, a soft sheen that crosses it every few seconds,
   and a one-time fade-in. Kept subtle so the hero still reads as calm. */
.hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 176px 28px 28px 176px;
  box-shadow: 0 18px 40px rgba(12, 59, 93, 0.2);
  animation: cvHeroIn 1s var(--cv-ease, ease) both;
}
.hero-image-wrap .hero-pool-image {
  display: block;
  box-shadow: none;
  transform-origin: 60% 50%;
  animation: cvHeroDrift 22s ease-in-out infinite;
  will-change: transform;
}
.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.0) 42%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(241, 216, 97, 0.22) 55%,
    transparent 64%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: soft-light;
  animation: cvHeroSheen 7s ease-in-out 1.2s infinite;
}
@keyframes cvHeroDrift {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  50%  { transform: scale(1.08) translate3d(-1.2%, -0.6%, 0); }
  100% { transform: scale(1.02) translate3d(0, 0, 0); }
}
@keyframes cvHeroSheen {
  0%   { background-position: 130% 0; opacity: 0; }
  8%   { opacity: 1; }
  30%  { background-position: -30% 0; opacity: 1; }
  38%  { opacity: 0; }
  100% { background-position: -30% 0; opacity: 0; }
}
@keyframes cvHeroIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-image-wrap,
  .hero-image-wrap .hero-pool-image,
  .hero-image-wrap::after {
    animation: none !important;
  }
}
