/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES — Shared styles for Admission Policy & Privacy Policy
   Loads after main.css (global tokens already available)
   Used by: admission-policy.html, privacy-policy.html
═══════════════════════════════════════════════════════════════ */


/* ── Hero — identical banner format to why-visit.html ────────── */
.legal__hero {
  position: relative;
  height: clamp(400px, 30vw, 540px);
  overflow: hidden;
  border-bottom: 1px solid var(--color-stroke);
}

.legal__hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.legal__hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.legal__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 32%),
              linear-gradient(281deg, rgba(0,0,0,0) 18.35%, #000 94.8%);
  pointer-events: none;
}

.legal__hero-title {
  position: absolute;
  bottom: clamp(32px, 5vw, 80px);
  left: var(--nav-px);
  max-width: clamp(320px, 55vw, 730px);
}

.legal__hero-title h1 {
  font-family: var(--font-display);
  font-weight: 400;
  /* font-size: clamp(32px, 6vw, 88px); */
  font-size: clamp(2.25rem, 1.4612rem + 3.3657vw, 5.5rem);
  line-height: 1.02;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0;
}


/* ── Main content wrapper ─────────────────────────────────────── */
.legal__main {
  background: #08070D;
  padding: clamp(48px, 6vw, 88px) 0;
}


/* ── Policy box: bordered container for admission rules ──────── */
/* Figma: single bordered box with all the bullet list items */
.legal__policy-box {
  /* border: 1px solid var(--color-stroke);
  padding: clamp(24px, 3vw, 40px); */
  margin-bottom: clamp(40px, 5vw, 80px);
}


/* ── Content sections — shared between both pages ────────────── */
/* Each section = heading + body text, separated by a bottom border */
.legal__section {
  border-bottom: 1px solid var(--color-stroke);
  padding-bottom: clamp(16px, 1.5vw, 24px);
  margin-bottom: clamp(32px, 3.5vw, 56px);
}

.legal__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Section heading — Josefin Sans 20px, vivid orchid #D00EB9 */
.legal__section-heading {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.5;
  color: #D00EB9;
  text-transform: uppercase;
  margin: 0 0 clamp(12px, 1.2vw, 16px) 0;
  letter-spacing: 0;
}

/* Body text — Josefin Sans 16px */
.legal__body {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.4;
  color: var(--color-white);
  margin: 0;
}

.legal__body + .legal__body {
  margin-top: 1em;
}

/* Teal link / highlight colour */
.legal__hl-teal {
  color: var(--color-turquoise-500);
}

/* Teal link that is also underlined */
.legal__link-teal {
  color: var(--color-turquoise-500);
  text-decoration: underline;
  transition: opacity 0.2s;
}
.legal__link-teal:hover {
  opacity: 0.8;
  color: var(--color-turquoise-500);
}

/* Orchid coloured link (rare case) */
.legal__link-orchid {
  color: #D00EB9;
  text-decoration: underline;
}

/* Bold emphasis inside body */
.legal__body strong {
  font-weight: 700;
}


/* ── Bullet list system ───────────────────────────────────────── */
/*
  Figma uses a horizontal dash/line before each item.
  We replicate this with a 32px-wide pseudo-element dash.
*/
.legal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 16px);
}

.legal__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.4;
  color: var(--color-white);
}

/* The Figma "line" prefix — 32px wide dash in orchid colour */
.legal__list li::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: #D00EB9;
  flex-shrink: 0;
  margin-top: 0.7em; /* vertically centre against first line of text */
}

/* Teal variant: category label above the value */
.legal__def-term {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.4;
  color: var(--color-turquoise-500);
  margin: 0 0 4px 0;
}

.legal__def-body {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.4;
  color: var(--color-white);
  margin: 0;
}

/* Definition group */
.legal__def-group {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.5vw, 24px);
}

.legal__def-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 48px; /* indent to match Figma dash + gap */
  position: relative;
}

/* Orchid dash before each definition item */
.legal__def-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 32px;
  height: 1px;
  background: #D00EB9;
}

/* Sub-list (nested within a definition item, Figma "indented" items) */
.legal__sublist {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal__sublist li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.4;
  color: var(--color-white);
}

.legal__sublist li::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: #D00EB9;
  flex-shrink: 0;
  margin-top: 0.7em;
}


/* ── Important Notice heading — LEMON MILK 48px ──────────────── */
.legal__notice-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.5vw, 48px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 clamp(20px, 2vw, 32px) 0;
}

.legal__notice-heading-hl {
  color: var(--color-turquoise-500);
}


/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
  .legal__hero {
    height: clamp(340px, 70vw, 500px);
  }

  .legal__hero-title h1 {
    font-size: clamp(28px, 8vw, 56px);
  }
}

@media (max-width: 767px) {
  .legal__hero-title h1 {
    font-size: clamp(24px, 9vw, 44px);
  }

  .legal__policy-box {
    padding: 20px 16px;
  }

  .legal__def-item {
    padding-left: 32px;
  }
}
