/* LinguaMinds — theme: Lagoon (teal + mist) */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #102426;
  --ink-soft: #5a7072;
  --cream: #eef6f5;
  --cream-deep: #dceae8;
  --white: #f7fbfb;
  --olive: #1f6f6a;
  --olive-deep: #0d2f2f;
  --olive-soft: #4a9a94;
  --brown: #143c3a;
  --brown-deep: #0a1f1e;
  --line: #c5d8d6;
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --container: 1160px;
  --font-display: "Libre Baskerville", serif;
  --font-body: "Manrope", sans-serif;
  --header-h: 84px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 0.25s;
  --motion-med: 0.55s;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 12px;
}

.section { padding: 72px 0; }
.section__title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 16ch;
}
.section__lead {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 44ch;
  font-size: 1.02rem;
}
.section-head { margin-bottom: 36px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.btn--light {
  background: var(--white);
  color: var(--ink);
}
.btn--light:hover { background: #f0ebe0; }
.btn--dark {
  background: var(--brown);
  color: var(--cream);
}
.btn--dark:hover { background: var(--brown-deep); }
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--outline {
  background: transparent;
  border-color: var(--olive);
  color: var(--ink);
}
.btn--outline:hover { background: var(--olive); color: var(--cream); }
.btn--wide { width: 100%; }

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  padding-top: 18px;
}
.site-header--solid {
  position: sticky;
  top: 0;
  inset: auto;
  padding: 12px 0;
  background: rgba(245, 245, 237, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.site-header--solid .logo { color: var(--ink); }

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--motion-fast) ease;
}
.nav__link:hover,
.nav__link.is-active { color: #fff; }
.site-header--solid .nav__link { color: var(--ink-soft); }
.site-header--solid .nav__link:hover,
.site-header--solid .nav__link.is-active { color: var(--ink); }

.nav-social {
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
}
.site-header--solid .nav-social { background: var(--cream-deep); }
.nav-social a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}
.site-header--solid .nav-social a { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 11px;
}
.site-header--solid .nav-toggle span,
.site-header--solid .nav-toggle span::before,
.site-header--solid .nav-toggle span::after { background: var(--ink); }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { content: ""; top: -7px; }
.nav-toggle span::after { content: ""; top: 7px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: end;
  padding: 120px 0 64px;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 31, 0, 0.35) 0%, rgba(26, 31, 0, 0.72) 70%, rgba(26, 31, 0, 0.88) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(85, 91, 54, 0.25), transparent 55%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.hero__kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 10px;
}
.hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 16ch;
  margin-bottom: 16px;
  font-weight: 600;
}
.hero__text {
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Goal */
.goal-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
}
.goal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  min-height: 160px;
  display: grid;
  align-content: space-between;
  border: 1.5px solid var(--olive);
  background: var(--white);
}
.stat-card--olive {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
}
.stat-card--brown {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
}
.stat-card__value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
}
.stat-card__label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.audience-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: grid;
  gap: 12px;
}
.audience-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--olive);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.audience-card h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.audience-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Mentors */
.mentors {
  background: var(--olive-deep);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
}
.mentors .section__title { color: var(--cream); }
.mentors .section__lead { color: rgba(245, 245, 237, 0.72); }
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.mentor-card {
  display: grid;
  gap: 0;
}
.mentor-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.mentor-card__body {
  background: var(--cream);
  color: var(--ink);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 22px 20px 24px;
  margin-top: -28px;
  position: relative;
  z-index: 1;
  width: calc(100% - 24px);
  margin-inline: auto;
}
.mentor-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.mentor-card__role {
  color: var(--olive);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mentor-card p { color: var(--ink-soft); font-size: 0.9rem; }

/* Path */
.path-list { display: grid; gap: 28px; }
.path-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.path-item:nth-child(even) .path-item__text { order: 2; }
.path-item__num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--olive);
  line-height: 1;
  margin-bottom: 8px;
}
.path-item img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.path-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.path-levels span {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.path-levels span.is-active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
}

/* Cases */
.case-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--brown);
  color: var(--cream);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
}
.case-card__body { padding: 40px 36px; display: grid; align-content: start; gap: 16px; }
.case-card__name {
  font-family: var(--font-display);
  font-size: 2.4rem;
}
.case-card__meta {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  width: fit-content;
}
.case-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.case-points h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}
.case-points li {
  font-size: 0.92rem;
  margin-bottom: 6px;
  opacity: 0.92;
}
.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

/* Formats */
.formats-band {
  background: var(--olive);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  color: var(--cream);
}
.formats-band .section__title { color: var(--cream); }
.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.format-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.format-card h3 { font-size: 1.8rem; }
.format-card ul { display: grid; gap: 8px; }
.format-card li {
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}
.format-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}

/* Lead form */
.lead-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.lead-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: grid;
  gap: 14px;
}
.lead-form label { display: grid; gap: 8px; }
.lead-form span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lead-form input,
.lead-form textarea,
.lead-form select {
  border: 0;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  padding: 12px 0;
  outline: none;
}
.lead-form textarea { min-height: 90px; resize: vertical; }

/* FAQ */
.faq {
  background: var(--brown);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
}
.faq .section__title { color: var(--cream); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "→"; opacity: 0.7; }
.faq-item[open] summary::after { content: "↓"; }
.faq-item p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Page hero */
.page-hero { padding: 40px 0 12px; }
.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 14ch;
  margin-bottom: 14px;
}
.page-hero__text {
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 1.05rem;
}

/* Office / map */
.office {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}
.office__info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.office__address {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 16ch;
}
.office__meta { color: var(--ink-soft); font-weight: 500; }
.office__map {
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-deep);
}
.office__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.contact-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.contact-info__list { display: grid; gap: 16px; margin-top: 20px; }
.contact-info__list span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.contact-info__list a,
.contact-info__list strong { font-weight: 700; font-size: 1.05rem; }

/* Footer */
.site-footer {
  background: var(--brown-deep);
  color: rgba(245, 245, 237, 0.78);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.logo--footer { color: var(--cream); }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-about { margin-top: 12px; max-width: 36ch; }
.footer-contacts { display: grid; gap: 8px; text-align: right; font-weight: 600; }
.footer-contacts a:hover { color: var(--cream); }
.footer-policies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-policy__title {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.footer-policy__text { font-size: 0.88rem; }
.footer-copy { padding-top: 20px; font-size: 0.85rem; opacity: 0.65; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(36, 18, 8, 0.55);
}
.modal.is-open { display: grid; }
.modal__card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.modal__card h3 { margin-bottom: 10px; }
.modal__card p { color: var(--ink-soft); margin-bottom: 20px; }

/* Cookie */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: none;
  justify-content: center;
  pointer-events: none;
}
.cookie-bar.is-visible { display: flex; }
.cookie-bar__inner {
  pointer-events: auto;
  width: min(100%, 900px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 18px;
  background: var(--olive-deep);
  color: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  animation: cookie-rise 0.45s var(--ease-out) both;
}
.cookie-bar__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #e8d58a;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.cookie-bar__icon svg { width: 22px; height: 22px; }
.cookie-bar__text { flex: 1 1 auto; min-width: 0; }
.cookie-bar__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.cookie-bar__desc {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(245, 245, 237, 0.7);
}
.cookie-bar__btn {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
}
.cookie-bar__btn:hover { background: #fff; }

@keyframes cookie-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Motion */
.page-enter .hero__brand,
.page-enter .hero__title,
.page-enter .hero__text,
.page-enter .hero__actions {
  animation: rise-in 0.9s var(--ease-out) both;
}
.page-enter .hero__title { animation-delay: 0.06s; }
.page-enter .hero__text { animation-delay: 0.12s; }
.page-enter .hero__actions { animation-delay: 0.18s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal, .reveal-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--motion-med) var(--ease-out), transform var(--motion-med) var(--ease-out);
}
.reveal.is-inview, .reveal-stagger.is-inview {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-inview > * {
  animation: rise-in 0.7s var(--ease-out) both;
}
.reveal-stagger.is-inview > *:nth-child(2) { animation-delay: 0.06s; }
.reveal-stagger.is-inview > *:nth-child(3) { animation-delay: 0.12s; }
.reveal-stagger.is-inview > *:nth-child(4) { animation-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-enter .hero__brand,
  .page-enter .hero__title,
  .page-enter .hero__text,
  .page-enter .hero__actions,
  .reveal-stagger.is-inview > *,
  .cookie-bar__inner { animation: none; }
  .reveal, .reveal-stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .goal-grid,
  .audience-grid,
  .mentor-grid,
  .path-item,
  .case-card,
  .format-grid,
  .lead-grid,
  .faq-grid,
  .office,
  .contact-grid,
  .footer-policies {
    grid-template-columns: 1fr;
  }
  .path-item:nth-child(even) .path-item__text { order: 0; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .mentors { padding: 40px 24px; }
  .footer-contacts { text-align: left; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; justify-self: end; }
  .site-header__inner { grid-template-columns: auto auto; }
  .nav-social { display: none; }
  .nav {
    position: fixed;
    inset: 78px 16px auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: var(--olive-deep);
    border-radius: var(--radius-md);
    z-index: 50;
  }
  .site-header--solid .nav {
    background: var(--white);
    border: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 14px; }
  .hero { padding: 110px 0 48px; align-content: end; }
  .audience-grid { grid-template-columns: 1fr; }
  .cookie-bar__inner { flex-wrap: wrap; }
  #teachers-list .mentor-card {
    grid-template-columns: 1fr;
  }
  #teachers-list .mentor-card img {
    min-height: 220px;
    aspect-ratio: 4 / 5;
    max-height: 280px;
  }
  .cookie-bar__btn { width: 100%; }
}

/* Legal pages + clickable footer policies */
a.policy-block,
a.footer-policy {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
a.policy-block:hover,
a.footer-policy:hover {
  transform: translateY(-2px);
}
.legal-page {
  padding: 72px 0 96px;
}
.legal-page__inner {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  opacity: 0.75;
}
.legal-back:hover { opacity: 1; }
.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  max-width: 18ch;
}
.legal-updated {
  color: var(--ink-soft, #666);
  font-size: 0.92rem;
  margin-bottom: 36px;
  line-height: 1.5;
}
.legal-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 28px;
}
.legal-body h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  text-transform: none;
  letter-spacing: 0;
}
.legal-body p {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--ink-soft, #444);
}
.legal-body ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  list-style: disc;
}
.legal-body li {
  margin-bottom: 8px;
  line-height: 1.55;
  color: var(--ink-soft, #444);
}
.legal-body strong { color: inherit; }

/* Teachers page — list redesign */
#teachers-list {
  padding: 8px 0 88px;
}
#teachers-list .mentors {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 0;
}
#teachers-list .eyebrow {
  color: var(--olive) !important;
  margin-bottom: 10px;
}
#teachers-list .mentors .section__title {
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: 12px;
}
#teachers-list .mentors .section__lead {
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 0;
}
#teachers-list .mentor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px 24px;
  margin-top: 40px;
}
#teachers-list .mentor-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease;
}
#teachers-list .mentor-card:hover {
  transform: translateY(-3px);
  border-color: var(--olive-soft);
}
#teachers-list .mentor-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}
#teachers-list .mentor-card__body {
  margin: 0;
  width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
#teachers-list .mentor-card h3 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin-bottom: 2px;
}
#teachers-list .mentor-card__role {
  margin-bottom: 12px;
}
#teachers-list .mentor-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}
#teachers-list .btn {
  margin-top: 32px;
  justify-self: start;
}

#footer-address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.path-levels span {
  overflow: hidden;
  max-width: 4.5em;
  white-space: nowrap;
  text-overflow: clip;
}
