/* Fox Destinations legal pages. Scoped to .legal-page so the shared site stays untouched. */
.legal-page {
  --legal-paper: #f7f5f1;
  --legal-card: #fffefa;
  --legal-ink: #252725;
  --legal-muted: #6d716e;
  --legal-rule: #e5e1d9;
  --legal-accent: #7d705f;
  min-height: 100dvh;
  background: var(--legal-paper);
  color: var(--legal-ink);
}

.legal-page .skip {
  z-index: 100;
}

.legal-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--legal-rule);
  background: rgba(247, 245, 241, .96);
}

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

.legal-brand {
  color: var(--legal-ink);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.35;
}

.legal-brand span {
  display: block;
  color: var(--legal-accent);
  font-size: .57rem;
  letter-spacing: .24em;
  margin-top: 4px;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .84rem;
  font-weight: 500;
}

.legal-nav a {
  color: #444844;
  text-decoration: none;
  transition: color .2s ease;
}

.legal-nav a:hover {
  color: var(--legal-accent);
}

.legal-nav .legal-nav__cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 19px;
  border-radius: 999px;
  background: #252725;
  color: #fffefa;
}

.legal-nav .legal-nav__cta:hover {
  background: #454741;
  color: #fffefa;
}

.legal-main {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) 0 100px;
}

.legal-hero {
  max-width: 790px;
  padding: 0 0 clamp(34px, 5vw, 58px);
  border-bottom: 1px solid var(--legal-rule);
  animation: legal-arrive .55s cubic-bezier(.2, .7, .2, 1) both;
}

.legal-kicker {
  margin: 0 0 15px;
  color: var(--legal-accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 12ch;
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 2rem + 4.5vw, 5.25rem);
  letter-spacing: -.035em;
  line-height: 1.03;
}

.legal-hero__intro {
  max-width: 58ch;
  margin: 0;
  color: #555a55;
  font-size: clamp(1rem, .95rem + .35vw, 1.18rem);
  line-height: 1.75;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--legal-muted);
  font-size: .78rem;
  letter-spacing: .02em;
}

.legal-updated::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--legal-accent);
  content: "";
}

.legal-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: clamp(38px, 8vw, 104px);
  align-items: start;
  padding-top: clamp(34px, 5vw, 58px);
}

.legal-toc {
  position: sticky;
  top: 28px;
  padding: 2px 0 0 18px;
  border-left: 1px solid var(--legal-rule);
}

.legal-toc__title {
  margin: 0 0 13px;
  color: var(--legal-muted);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.legal-toc ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  color: #666b65;
  font-size: .76rem;
  line-height: 1.45;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--legal-ink);
}

.legal-article {
  min-width: 0;
  max-width: 760px;
}

.legal-section {
  scroll-margin-top: 28px;
  padding: 0 0 34px;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--legal-rule);
}

.legal-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 1.22rem + .7vw, 1.9rem);
  letter-spacing: -.015em;
}

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

.legal-section p,
.legal-section li {
  color: #515650;
  font-size: .94rem;
  line-height: 1.8;
}

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

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

.legal-section ul,
.legal-section ol {
  padding-left: 1.25rem;
  margin: 10px 0 16px;
}

.legal-section li {
  padding-left: 4px;
  margin: 0 0 7px;
}

.legal-section a {
  color: #514a3f;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal-section button[data-fox-cookie-settings] {
  padding: 0;
  border: 0;
  background: none;
  color: #514a3f;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-section button[data-fox-cookie-settings]:hover {
  color: var(--legal-ink);
}

.legal-note {
  margin: 22px 0 0;
  padding: 17px 19px;
  border-left: 2px solid var(--legal-accent);
  background: #efede7;
  color: #555a55;
  font-size: .87rem;
  line-height: 1.7;
}

.legal-contact {
  padding: 22px 24px;
  border: 1px solid var(--legal-rule);
  border-radius: 12px;
  background: var(--legal-card);
}

.legal-contact p {
  margin: 0 0 8px;
}

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

.legal-footer {
  border-top: 1px solid var(--legal-rule);
  padding: 29px 0 calc(32px + env(safe-area-inset-bottom));
}

.legal-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.legal-footer p {
  margin: 0;
  color: var(--legal-muted);
  font-size: .78rem;
}

.fox-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px 20px;
  font-size: .8rem;
}

.fox-legal-links a,
.fox-legal-links button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: #555a55;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: #c5c0b6;
  text-underline-offset: 3px;
  cursor: pointer;
}

.fox-legal-links a:hover,
.fox-legal-links button:hover {
  color: var(--legal-ink);
  text-decoration-color: currentColor;
}

.fox-legal-links button:focus-visible {
  outline: 2px solid var(--legal-accent);
  outline-offset: 4px;
}

@keyframes legal-arrive {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .legal-header__inner {
    min-height: 66px;
  }

  .legal-nav {
    gap: 14px;
    font-size: .78rem;
  }

  .legal-nav .legal-nav__cta {
    min-height: 38px;
    padding: 0 13px;
  }

  .legal-main {
    width: min(100% - 36px, 680px);
    padding-top: 52px;
    padding-bottom: 68px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-toc {
    position: static;
    padding: 0 0 18px;
    border-left: 0;
    border-bottom: 1px solid var(--legal-rule);
  }

  .legal-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
  }

  .legal-toc a {
    font-size: .75rem;
  }
}

@media (max-width: 480px) {
  .legal-main {
    width: min(100% - 32px, 440px);
  }

  .legal-header__inner {
    gap: 12px;
  }

  .legal-brand {
    font-size: .68rem;
    letter-spacing: .14em;
  }

  .legal-brand span {
    font-size: .51rem;
  }

  .legal-nav {
    gap: 11px;
    font-size: .72rem;
  }

  .legal-nav .legal-nav__cta {
    min-height: 36px;
    padding: 0 11px;
  }

  .legal-section {
    padding-bottom: 27px;
    margin-bottom: 27px;
  }

  .legal-section p,
  .legal-section li {
    font-size: .91rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-hero {
    animation: none;
  }

  .legal-page *,
  .legal-page *::before,
  .legal-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .legal-header,
  .legal-toc,
  .legal-footer {
    display: none;
  }

  .legal-page {
    background: #fff;
  }

  .legal-main {
    width: 100%;
    padding: 0;
  }

  .legal-layout {
    display: block;
  }
}
