/* Legal pages (Privacy Policy, Terms of Service).
   Builds on styles.css: same tokens, header, eyebrow and footer. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.legal-page { background: var(--cream); }

/* Header: back link next to the booking button */
.legal-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid rgba(245, 239, 230, .15);
  font-size: 14px; font-weight: 500; color: var(--cream); white-space: nowrap;
  transition: border-color .3s, background .3s;
}
.legal-back:hover { border-color: rgba(245, 239, 230, .35); background: rgba(245, 239, 230, .05); }
.legal-back__long { display: none; }
@media (min-width: 600px) { .legal-back__long { display: inline; } .legal-back__short { display: none; } }

/* Dark title band */
.legal-hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--cream);
  padding: clamp(148px, 17vw, 200px) var(--gutter) clamp(60px, 8vw, 96px);
}
.legal-hero::before, .legal-hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.legal-hero::before { width: 620px; height: 620px; right: -180px; top: -260px; background: var(--red); opacity: .28; }
.legal-hero::after { width: 520px; height: 520px; left: -220px; bottom: -340px; background: var(--red-dark); opacity: .4; }
.legal-hero__inner { position: relative; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.legal-title { font-size: clamp(46px, 7.4vw, 100px); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.legal-lede { max-width: 560px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--muted-light); text-wrap: pretty; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.legal-meta span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(245, 239, 230, .06); border: 1px solid rgba(245, 239, 230, .1);
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light);
}
.legal-meta .dot { animation: none; }

/* Body: table of contents + document */
.legal-body { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(80px, 10vw, 128px); color: var(--ink); }
.legal-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 960px) {
  .legal-grid { grid-template-columns: 250px minmax(0, 720px); gap: 72px; align-items: start; justify-content: space-between; }
}

.legal-toc {
  border: 1px solid rgba(20, 17, 16, .12); border-radius: 20px; background: var(--paper);
}
.legal-toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 20px;
  list-style: none; cursor: pointer;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--label-on-light);
}
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after { content: '+'; font-family: Geist, sans-serif; font-size: 20px; color: var(--ink); transition: transform .3s var(--ease); }
.legal-toc[open] summary::after { transform: rotate(45deg); }
.legal-toc ol { list-style: none; margin: 0; padding: 0 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a {
  display: flex; gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: 10px;
  font-size: 14.5px; line-height: 1.35; color: var(--body-on-light); transition: background .25s, color .25s;
}
.legal-toc a span { flex: none; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--label-on-light); }
.legal-toc a:hover { background: rgba(20, 17, 16, .05); color: var(--ink); }
.legal-toc a.is-active { background: rgba(215, 55, 43, .1); color: var(--red-deep); }
.legal-toc a.is-active span { color: var(--red-deep); }
@media (min-width: 960px) {
  .legal-toc {
    position: sticky; top: 108px; max-height: calc(100vh - 132px); overflow-y: auto;
    border: 0; background: none; border-radius: 0;
  }
  .legal-toc summary { min-height: 0; padding: 0 10px 14px; pointer-events: none; }
  .legal-toc summary::after { display: none; }
  .legal-toc ol { padding: 0; }
}

/* Document */
.legal-content { min-width: 0; }
.legal-intro { font-size: clamp(18px, 1.7vw, 20px); line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.legal-summary {
  margin: 32px 0 8px; padding: clamp(22px, 3vw, 30px); border-radius: 22px;
  background: var(--paper); border: 1px solid rgba(20, 17, 16, .1);
}
.legal-summary h2 {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep);
}
.legal-summary h2::before { content: ''; width: 22px; height: 2px; background: var(--red); }
.legal-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.legal-summary li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.legal-summary li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
}

.legal-section { scroll-margin-top: 104px; padding-top: 40px; }
.legal-section h2 {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; padding-top: 26px;
  border-top: 1px solid rgba(20, 17, 16, .12);
  font-size: clamp(23px, 2.3vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; color: var(--ink);
}
.legal-num { flex: none; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--red-deep); }
.legal-section h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.legal-section p, .legal-section li { font-size: 17px; line-height: 1.7; color: var(--body-on-light); text-wrap: pretty; }
.legal-section p + p { margin-top: 14px; }
.legal-section ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal-section ul + p { margin-top: 16px; }
.legal-section li::marker { color: var(--red); }
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal-content a:not(.legal-cta__btn) { color: var(--red-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-content a:not(.legal-cta__btn):hover { color: var(--red); }

/* Closing contact card */
.legal-cta {
  position: relative; overflow: hidden; margin-top: 56px; padding: clamp(28px, 4vw, 44px); border-radius: 26px;
  background: var(--ink); color: var(--cream);
}
.legal-cta::after {
  content: ''; position: absolute; width: 360px; height: 360px; right: -120px; top: -180px; border-radius: 50%;
  background: var(--red); opacity: .32; filter: blur(90px); pointer-events: none;
}
.legal-cta > * { position: relative; }
.legal-cta__title { font-size: clamp(26px, 3vw, 36px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.legal-cta p { margin-top: 12px; max-width: 480px; font-size: 16.5px; line-height: 1.6; color: var(--muted-light); }
.legal-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.legal-cta__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: transform .35s var(--ease), background .3s, border-color .3s;
}
.legal-cta__btn:hover { transform: translateY(-2px); }
.legal-cta__btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(215, 55, 43, .8); }
.legal-cta__btn--ghost { border: 1px solid rgba(245, 239, 230, .2); color: var(--cream); }
.legal-cta__btn--ghost:hover { border-color: rgba(245, 239, 230, .45); }
@media (max-width: 599px) { .legal-cta__btn { width: 100%; justify-content: center; } }

/* Slim footer */
.footer--legal { padding-top: 0; }
.footer--legal .footer__bar { border-top: 0; padding-top: 28px; }
.footer__legal a[aria-current="page"] { color: var(--cream); }
