/* Legal pages have no dark hero under the header, so the header can't
   rely on scroll position to gain its dark background — without this
   it stays transparent and the white logo/nav text is unreadable
   against the light .legal-main background. */
body[data-legal-page] .site-header {
  background: rgba(13, 30, 22, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.language-switch button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.language-switch button.is-active,
.language-switch button:hover,
.language-switch button:focus-visible {
  background: rgba(200, 169, 107, 0.18);
  border-color: rgba(200, 169, 107, 0.75);
  outline: none;
}

.legal-main {
  padding-top: 136px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, #f8f5ef 0%, #ffffff 320px, #ffffff 100%);
}

.legal-card {
  background: #fff;
  border: 1px solid rgba(13, 30, 22, 0.08);
  box-shadow: 0 20px 48px rgba(13, 30, 22, 0.08);
  border-radius: 18px;
  padding: 34px 28px;
}

.legal-title {
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-light);
  margin-bottom: 28px;
}

.legal-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(13, 30, 22, 0.08);
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.legal-section p,
.legal-section li {
  color: #2f3f37;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .language-switch {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .legal-main {
    padding-top: 124px;
    padding-bottom: 64px;
  }

  .legal-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .language-switch {
    justify-content: flex-start;
  }
}
