.legal-page {
  min-height: 100vh;
  background: #fff;
  color: #111;
  font-family: var(--font-family-primary, Comfortaa, "Segoe UI", sans-serif);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
}

/* —— Header chrome (same visual language as homepage) —— */
.site-chrome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1170px;
  min-width: 320px;
  margin: 0 auto;
  padding: 18px 32px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 20;
  background: #fff;
}

.site-chrome-brand {
  color: #111;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.site-chrome-brand:hover {
  opacity: 0.7;
}

.site-chrome-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-chrome-header .LangSwitcher_switcher__drQ3w {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-chrome-header .Nav_btn__oysBX {
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-chrome-header .Nav_btn__oysBX svg {
  width: 22px;
  height: auto;
  display: block;
}

.site-chrome-header .Nav_navMenu__eyEdM {
  list-style: none;
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 200px;
}

.site-chrome-header .Nav_nav__NryzU.Nav_open__iZy2Z .Nav_navMenu__eyEdM {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* —— Main content —— */
.legal-page main {
  flex: 1 0 auto;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 64px;
  box-sizing: border-box;
}

.legal-page h1 {
  font-family: var(--font-family-secondary, Comfortaa, sans-serif);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  text-transform: none;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: 0.04em;
}

.legal-page main p,
.legal-page main li {
  margin: 0 0 1rem;
  color: #222;
}

.legal-page main a {
  color: #111;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-page main a:hover {
  opacity: 0.7;
}

.legal-page .breadcrumb {
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.legal-page .breadcrumb a {
  color: #666;
  text-decoration: none;
}

.legal-page .breadcrumb a:hover {
  text-decoration: underline;
}

.legal-page code {
  font-size: 0.85em;
  word-break: break-all;
  background: #f5f5f5;
  padding: 0.1em 0.35em;
}

.legal-page nav.legal-links {
  display: none;
}

.seo-nav {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .site-chrome-header {
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    min-width: 0;
    gap: 10px;
  }

  .site-chrome-brand {
    letter-spacing: 0.14em;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }

  .site-chrome-tools {
    gap: 2px;
    min-width: 0;
  }

  .site-chrome-header .LangSwitcher_wrapper__ep0C5 {
    max-width: none;
  }

  .site-chrome-header .LangSwitcher_switcher__drQ3w {
    padding: 0 10px;
    font-size: 13px;
    height: 36px;
    min-height: 36px;
  }

  .site-chrome-header .Nav_navMenu__eyEdM {
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 24px));
    z-index: 40;
  }

  .site-chrome-header .Nav_navLink__uKhR2 {
    display: block;
    min-height: 44px;
    padding: 12px 14px;
    line-height: 1.3;
    box-sizing: border-box;
  }

  .legal-page main {
    padding: 24px 16px 40px;
  }

  .legal-page h1 {
    font-size: 1.375rem;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .legal-page h2 {
    font-size: 1.05rem;
    margin-top: 1.75rem;
  }

  .legal-page main p,
  .legal-page main li {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .legal-page ol,
  .legal-page ul {
    padding-left: 1.15rem;
  }

  .legal-page .breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 1.1rem;
  }
}
