/* =========================================================
   legal.css — privacy notice, website terms, booking terms
   Utilitarian pages: the job is to be read and understood, so
   the treatment is quiet — long measure, clear numbering, and
   unfilled details made impossible to miss.
   ========================================================= */

.legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 9vw, 7rem);
  background: var(--bg);
  color: var(--fg);
}

.legal__layout {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .legal__layout { grid-template-columns: 1fr; }
}

/* ---------- Contents ---------- */
.legal__toc {
  position: sticky;
  top: 110px;
  padding-bottom: 2rem;
}
@media (max-width: 900px) {
  .legal__toc {
    position: static;
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid var(--line);
  }
}
.legal__toc h2 {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.legal__toc ol { counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc li + li { margin-top: .625rem; }
.legal__toc a {
  display: flex;
  gap: .625rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--fg-muted);
  transition: color .3s var(--ease);
}
.legal__toc a::before {
  content: counter(toc) ".";
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.legal__toc a:hover { color: var(--fg); }

/* ---------- Document body ---------- */
.legal__doc { max-width: 68ch; counter-reset: section; }

.legal__doc > section { counter-increment: section; }
.legal__doc > section + section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.legal__doc h2 {
  display: flex;
  gap: .75rem;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.25;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.legal__doc h2::before {
  content: counter(section) ".";
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.legal__doc h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 1.75rem 0 .625rem;
}

.legal__doc p,
.legal__doc li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--fg-muted);
}
.legal__doc p + p { margin-top: 1rem; }

.legal__doc ul { margin: 1rem 0 0; }
.legal__doc ul li {
  position: relative;
  padding-left: 1.375rem;
  margin-top: .5rem;
}
.legal__doc ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .85em;
  width: 8px; height: 1px;
  background: var(--accent);
}

.legal__doc a { color: var(--fg); border-bottom: 1px solid var(--line); }
.legal__doc a:hover { border-color: var(--accent); }

.legal__doc dl { margin-top: 1rem; }
.legal__doc dt {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1.125rem;
}
.legal__doc dd { font-size: 0.9375rem; line-height: 1.7; color: var(--fg-muted); }

/* ---------- Intro / meta ---------- */
.legal__intro { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal__intro p { font-size: var(--fs-lead); line-height: 1.65; color: var(--fg-muted); font-weight: 300; }
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ---------- Unfilled details ----------
   Deliberately loud. These are the things only Ellie can supply, and
   the site must not go live with any of them still showing. */
.todo {
  display: inline;
  padding: .1em .45em;
  background: rgba(189, 132, 90, .18);
  border-bottom: 2px solid #B4795F;
  color: var(--fg);
  font-weight: 600;
  font-style: normal;
}
.todo::before { content: "\25B8 "; color: #B4795F; }

.legal__warning {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: rgba(189, 132, 90, .1);
  border-left: 3px solid #B4795F;
}
.legal__warning p { font-size: 0.875rem; line-height: 1.7; color: var(--fg); }
.legal__warning strong { font-weight: 600; }

/* ---------- Footer legal links ---------- */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
}
.footer__legal a {
  font-size: 0.75rem;
  color: rgba(247, 245, 242, .52);
  transition: color .3s var(--ease);
}
.footer__legal a:hover { color: var(--ivory); }
