:root {
  --legal-bg: #f7f3ee;
  --legal-surface: #ffffff;
  --legal-text: #21313c;
  --legal-muted: #667784;
  --legal-brand: #1f5f73;
  --legal-brand-dark: #163f4f;
  --legal-accent: #c88e57;
  --legal-line: rgba(33, 49, 60, 0.12);
  --legal-max: 920px;
}

.footer-legal {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 4px;
  font-size: 0.9rem;
}

.footer-legal a {
  color: var(--brand-dark, var(--legal-brand-dark));
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--accent, var(--legal-accent));
  text-decoration-color: currentColor;
}

.privacy-note a {
  color: var(--brand-dark, var(--legal-brand-dark));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-legal-link {
  color: var(--brand-dark, var(--legal-brand-dark));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  .header .navbar {
    position: relative;
  }

  .header .logo {
    max-width: calc(100% - 60px);
    padding: 8px 12px;
    font-size: 1rem;
  }

  .header .nav-toggle {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
  }

  .header .nav-toggle:hover,
  .header .nav-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.18);
  }

  .header .nav-toggle:focus-visible {
    outline: 3px solid #d49452;
    outline-offset: 3px;
  }

  .nav-toggle-icon {
    display: grid;
    gap: 4px;
    width: 20px;
  }

  .nav-toggle-icon span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .header .navbar.is-open .nav-toggle-icon span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .header .navbar.is-open .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .header .navbar.is-open .nav-toggle-icon span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .header .nav-menu {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 90px);
    margin: 0;
    padding: 12px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: rgba(13, 22, 29, 0.98);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  }

  .header .navbar.is-open .nav-menu {
    display: flex;
  }

  .header .nav-menu li,
  .header .nav-menu a {
    width: 100%;
  }

  .header .nav-menu a {
    min-height: 44px;
    justify-content: flex-start;
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-icon span {
    transition: none;
  }
}

.booking-legal-note {
  margin: 0 0 22px;
  color: var(--muted, var(--legal-muted));
  font-size: 0.92rem;
}

.booking-legal-note a {
  color: var(--brand-dark, var(--legal-brand-dark));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.registration-number {
  margin: 12px 0 18px;
  color: var(--muted, var(--legal-muted));
  font-size: 0.8rem;
  font-weight: 700;
}

.hero .registration-number {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.legal-page {
  margin: 0;
  color: var(--legal-text);
  background: var(--legal-bg);
  font-family: Arial, sans-serif;
  line-height: 1.65;
}

.legal-page *,
.legal-page *::before,
.legal-page *::after {
  box-sizing: border-box;
}

.legal-page a {
  color: inherit;
}

.legal-header {
  background: #15232b;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-nav,
.legal-hero-inner,
.legal-content,
.legal-footer-inner {
  width: min(var(--legal-max), calc(100% - 32px));
  margin: 0 auto;
}

.legal-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-brand {
  font-size: 1.12rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-back {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-hero {
  padding: 64px 0 54px;
  color: #fff;
  background: #1f5f73;
}

.legal-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.legal-hero p {
  max-width: 66ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.legal-main {
  padding: 56px 0 72px;
}

.legal-intro {
  margin: 0 0 38px;
  color: var(--legal-muted);
  font-size: 1.04rem;
}

.legal-section {
  padding: 30px 0;
  border-top: 1px solid var(--legal-line);
}

.legal-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-section h2 {
  margin: 0 0 14px;
  color: var(--legal-brand-dark);
  font-size: 1.42rem;
  line-height: 1.25;
}

.legal-section h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 10px 0 14px 20px;
  padding: 0;
}

.legal-section li + li {
  margin-top: 7px;
}

.legal-section a {
  color: var(--legal-brand-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-details {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 9px 24px;
  margin: 0;
}

.legal-details dt {
  color: var(--legal-muted);
  font-weight: 700;
}

.legal-details dd {
  margin: 0;
}

.legal-callout {
  margin: 18px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--legal-accent);
  background: rgba(255, 255, 255, 0.72);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 38px;
}

.legal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--legal-brand);
  border-radius: 999px;
  color: var(--legal-brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.legal-button:hover,
.legal-button:focus-visible {
  color: #fff;
  background: var(--legal-brand);
}

.legal-footer {
  padding: 26px 0 42px;
  color: var(--legal-muted);
}

.legal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 20px;
  padding-top: 22px;
  border-top: 1px solid var(--legal-line);
}

.legal-footer-inner p {
  margin: 0;
}

@media (max-width: 640px) {
  .legal-nav {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .legal-hero {
    padding: 46px 0 42px;
  }

  .legal-main {
    padding: 42px 0 58px;
  }

  .legal-details {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .legal-details dd + dt {
    margin-top: 10px;
  }
}
