/**
 * Compliance pages — the plainest readable defaults, on the live site's tokens.
 *
 * This is NOT a design system. Every colour, font and radius below is a variable
 * already defined in the live site's css/styles.css (--ink, --paper, --text,
 * --muted, --emerald, --font-head, --font-body, --r, --hairline). Nothing new is
 * introduced. What is here is the minimum needed to set a long legal document
 * readably: a measure, a heading rhythm, a table, and a callout.
 *
 * TWO MEASURED CHOICES, both to stay inside the existing palette rather than
 * extend it:
 *
 *   Links in prose are the body ink with an underline, not --emerald. Measured,
 *   --emerald #2FA84C on --paper #FAFBF9 is 2.96:1 and fails. Rather than invent
 *   a darker green, prose links use --text (17.08:1) and are distinguished by
 *   the underline, which is the plainest possible convention for a document.
 *
 *   The footer legal links use --muted-on-dark (7.27:1 on --ink) with an
 *   --emerald-bright hover (9.54:1), exactly matching how .footer__tel already
 *   behaves on the live page.
 *
 * The page does not load js/main.js. That script drives the hero video, the
 * scroll-scrub and the CTA rewriting, none of which exist here, and every
 * element it looks for would be absent.
 */

/* The live stylesheet sets body background to --ink for the cinematic page.
   A document is read on paper. */
body.legal-page {
  background: var(--paper);
  color: var(--text);
}

/* ── Header: static, not the live page's fixed hero-dependent nav ─────────── */

.lg-head {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.lg-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1.1rem 0;
}
.lg-head__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.lg-head__brand .ringmark {
  width: 26px;
  height: 26px;
}
.lg-head__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.lg-head__links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
.lg-head__links a:hover {
  color: var(--text);
}

/* ── Document ─────────────────────────────────────────────────────────────── */

.lg-main {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.lg-title {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--text);
}
.lg-lede {
  margin-top: 0.9rem;
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--muted);
}
.lg-dates {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.lg-dates strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  margin-top: 0.15rem;
}

.lg-body {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 62rem) {
  .lg-body {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }
}

/* Contents. Sticky only where there is room for it. */
.lg-toc {
  border-top: 1px solid var(--hairline);
  padding-top: 0.9rem;
  min-width: 0;
}
.lg-toc h2 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.lg-toc ol {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.lg-toc a {
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
}
.lg-toc a:hover {
  color: var(--text);
}
@media (min-width: 62rem) {
  .lg-toc {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}

.lg-prose {
  min-width: 0;
  max-width: 76ch;
}
.lg-sec {
  padding-bottom: 1.8rem;
  scroll-margin-top: 1.5rem;
}
.lg-sec > h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--text);
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  margin-bottom: 0.8rem;
}
.lg-sec:first-child > h2 {
  padding-top: 0;
  border-top: 0;
}
.lg-prose h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin: 1.6rem 0 0.5rem;
}
.lg-prose p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 68ch;
  margin-bottom: 0.9rem;
}
.lg-prose ul,
.lg-prose ol {
  margin: 0 0 1.2rem 1.15rem;
  display: grid;
  gap: 0.5rem;
  max-width: 68ch;
}
.lg-prose li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  padding-left: 0.2rem;
}
.lg-prose li::marker {
  color: var(--emerald);
}
.lg-prose strong {
  color: var(--text);
  font-weight: 600;
}
.lg-prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lg-prose a:hover {
  text-decoration-thickness: 2px;
}

/* Steps — a numbered instruction, used by the deletion page. */
.lg-steps {
  list-style: none;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0;
}
.lg-steps li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--hairline);
}
.lg-steps .n {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--emerald);
  padding-top: 0.15rem;
}
.lg-steps h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

/* The Limited Use disclosure. Bordered because a reviewer is looking for that
   exact paragraph and should not have to find it inside a run of body copy. */
.lg-callout {
  border: 1px solid var(--emerald);
  border-left-width: 3px;
  border-radius: var(--r);
  background: var(--emerald-dim);
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0 1.6rem;
  max-width: 68ch;
}
.lg-callout h3 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.lg-callout p {
  margin: 0;
  color: var(--text);
}

/* Tables — the privacy policy's data table and sub-processor table. */
.lg-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  margin: 0 0 1.6rem;
}
.lg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
  font-size: 0.9rem;
}
.lg-table th,
.lg-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  line-height: 1.6;
}
.lg-table thead th {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--paper-2);
  white-space: nowrap;
}
.lg-table tbody th {
  color: var(--text);
  font-weight: 600;
  max-width: 24ch;
}
.lg-table tbody tr:last-child th,
.lg-table tbody tr:last-child td {
  border-bottom: 0;
}

/* An unresolved identity fact. Deliberately impossible to mistake for copy. */
.lg-todo {
  background: #FFF3CD;
  color: #6B4E00;
  border: 1px solid #B8860B;
  border-radius: 6px;
  padding: 0.05em 0.4em;
  font-family: var(--font-head);
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Booking page ─────────────────────────────────────────────────────────── */

.lg-embed {
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  height: 760px;
  margin: 1.4rem 0 1rem;
}
.lg-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.lg-contact {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
}
.lg-contact a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.lg-contact a:hover {
  text-decoration: underline;
}
.lg-contact span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
