/* Shared legal footer link and Legal & Privacy page. */
.site-footer-legal-link,
.legal-footer-row a {
  color: #466265;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .025em;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .18s ease;
}

.site-footer-legal-link:hover,
.legal-footer-row a:hover {
  color: #1f6f78;
  text-decoration: underline;
}

.site-footer-legal-link {
  display: inline-block;
  margin: 2px 0 7px;
}

.legal-footer-row {
  padding: 3px 18px 18px;
  color: #68707c;
  text-align: center;
}

body.legal-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: #20252d;
  background:
    radial-gradient(circle at 92% 9%, rgba(31, 111, 120, .1), transparent 28rem),
    radial-gradient(circle at 4% 88%, rgba(196, 154, 83, .11), transparent 27rem),
    #f6f1e8;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.legal-page a:focus-visible {
  outline: 2px solid #80531e;
  outline-offset: 4px;
}

.legal-skip-link {
  position: fixed;
  z-index: 1600;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  color: #fff;
  background: #173f43;
  border-radius: 4px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .16s ease;
}

.legal-skip-link:focus {
  transform: translateY(0);
}

.legal-layout {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 88px) 0 clamp(58px, 8vw, 112px);
  flex: 1;
}

.legal-hero {
  max-width: 820px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.legal-eyebrow {
  margin: 0 0 18px;
  color: #80531e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  color: #17201e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}

.legal-lead {
  max-width: 720px;
  margin: 25px 0 0;
  color: #4c5654;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.6;
}

.legal-rule {
  width: 100%;
  height: 1px;
  margin-top: 34px;
  background: rgba(23, 32, 30, .16);
}

.legal-rule span {
  display: block;
  width: 76px;
  height: 2px;
  background: #c49a53;
  transform: translateY(-.5px);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .42fr);
  align-items: start;
  gap: clamp(36px, 6vw, 78px);
}

.legal-content {
  min-width: 0;
}

.legal-section {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(32, 37, 45, .11);
}

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

.legal-section h2 {
  margin: 0 0 15px;
  color: #173f43;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.18;
}

.legal-section h3 {
  margin: 22px 0 10px;
  color: #27322f;
  font-size: 15px;
  line-height: 1.35;
}

.legal-section p,
.legal-section li {
  color: #46504d;
  font-size: 16px;
  line-height: 1.72;
}

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

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

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 21px;
}

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

.legal-section a,
.legal-panel a {
  color: #1f6f78;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-panel {
  position: sticky;
  top: 118px;
  padding: 27px;
  color: #34403d;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(32, 37, 45, .1);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(30, 42, 38, .08);
}

.legal-panel h2 {
  margin: 0 0 22px;
  color: #17201e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
}

.legal-details {
  margin: 0;
}

.legal-details div {
  padding: 0 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(32, 37, 45, .09);
}

.legal-details div:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-details dt {
  margin: 0 0 5px;
  color: #58625f;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-details dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.legal-updated {
  margin-top: 36px;
  color: #58625f;
  font-size: 12px;
  letter-spacing: .035em;
}

.legal-page .site-footer-shell {
  background: transparent;
  border-top: 0;
}

.legal-page .site-footer-shell::before {
  content: "";
  display: block;
  width: min(680px, 72%);
  height: 1px;
  margin: 0 auto 26px;
  background: rgba(32, 37, 45, .12);
}

@media (min-width: 1021px) {
  .legal-page .site-nav-links {
    gap: 8px 26px;
  }

  .legal-page .site-nav-links a {
    padding: 8px 2px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.2;
  }
}

@media (max-width: 1020px) {
  .legal-page .site-nav-links {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .legal-page .site-nav-links a {
    line-height: 1.1;
  }
}

@media (max-width: 820px) {
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-layout {
    width: calc(100% - 24px);
    padding: 36px 0 64px;
  }

  .legal-hero h1 {
    font-size: clamp(45px, 14vw, 66px);
  }

  .legal-grid {
    gap: 32px;
  }

  .legal-panel {
    padding: 22px;
    border-radius: 18px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 15.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-skip-link,
  .site-footer-legal-link,
  .legal-footer-row a {
    transition: none;
  }
}
