:root {
  /* The same palette used by the public booking page. */
  --td-black: #111111;
  --td-black-soft: #171717;
  --td-graphite: #242424;
  --td-green: #00b894;
  --td-green-dark: #009f7a;
  --td-text: #f5f5f5;
  --td-muted: #b8b8b8;
}

html { scroll-behavior: smooth; }

.legal-page {
  min-height: 100vh;
  background: var(--td-black);
  color: var(--td-text);
}

.legal-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 0, rgba(0, 184, 148, 0.12), transparent 32rem),
    linear-gradient(180deg, var(--td-black) 0%, var(--td-black-soft) 55%, var(--td-black) 100%);
}

.legal-page a {
  color: #6ee7b7;
  text-decoration: underline;
  text-decoration-color: rgba(0, 184, 148, 0.55);
  text-underline-offset: 0.18em;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.legal-page a:hover { color: #d1fae5; text-decoration-color: currentColor; }

.legal-page a:focus-visible,
.legal-page button:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 3px;
}

.legal-header {
  border-color: rgba(0, 184, 148, 0.24);
  background: rgba(17, 17, 17, 0.92);
}

.legal-header a { color: var(--td-muted); text-decoration: none; }
.legal-header a:hover { color: #a7f3d0; }

.legal-brand-mark {
  border: 1px solid rgba(0, 184, 148, 0.42);
  background: linear-gradient(135deg, #6ee7b7, var(--td-green-dark));
  color: var(--td-black);
}

.legal-document {
  max-width: 68rem;
  padding-bottom: 5rem;
}

.legal-intro {
  max-width: 48rem;
  border-bottom: 1px solid rgba(0, 184, 148, 0.24);
  padding-bottom: 2.5rem;
}

.legal-eyebrow { color: #6ee7b7; }
.legal-title { color: var(--td-text); }
.legal-lead { color: #d4d4d4; line-height: 1.8; }
.legal-caption { color: var(--td-muted); line-height: 1.65; }

.legal-document > section:not(.legal-intro) {
  border: 1px solid rgba(82, 82, 82, 0.58);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(23, 23, 23, 0.88), rgba(17, 17, 17, 0.9));
  padding: 1.25rem;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.legal-document > section + section { margin-top: 1.25rem; }
.legal-document h2 {
  margin-bottom: 1rem;
  border-color: rgba(0, 184, 148, 0.3);
  color: #d1fae5;
  line-height: 1.35;
}
.legal-document h3 { color: #a7f3d0; }
.legal-document p,
.legal-document li { color: #d4d4d4; line-height: 1.8; }
.legal-document strong,
.legal-document .font-semibold { color: var(--td-text); }
.legal-document ul { padding-left: 0.25rem; }
.legal-document li::marker { color: var(--td-green); }
.legal-document .font-mono { overflow-wrap: anywhere; color: #a7f3d0; }

/* Reusable legal-content elements for the policy pages. */
.legal-toc,
.legal-note {
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: 1rem;
  background: rgba(0, 184, 148, 0.08);
}
.legal-toc a { color: #d1fae5; }
.legal-table { border-color: rgba(0, 184, 148, 0.28); }
.legal-table th { background: rgba(0, 184, 148, 0.14); color: #d1fae5; }
.legal-table td { border-color: rgba(82, 82, 82, 0.65); color: #d4d4d4; }

@media (min-width: 640px) {
  .legal-document > section:not(.legal-intro) { padding: 1.75rem; }
}

@media (max-width: 639px) {
  .legal-document { padding-top: 2rem; }
  .legal-intro { margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
  .legal-document > section:not(.legal-intro) { border-radius: 1.25rem; }
}
