:root {
  --accent: #ef7d18;
  --accent-dark: #cf6510;
  --text: #111827;
  --muted: #6b7280;
  --white: #ffffff;
  --line: rgba(0, 0, 0, 0.1);
  --shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
  --header-offset: 168px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: clip;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.visually-hidden,
.lang-top-label.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.lang-top-bar,
.language-layer {
  position: static;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.lang-top-bar-inner,
.language-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.lang-switcher,
.lang-switcher--top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  border: 1px solid var(--line);
  background: #f3f4f6;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.lang-btn.is-active,
.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lang-btn.is-active:hover,
.lang-btn.active:hover {
  color: #fff;
}

.lang-btn:hover:not(.is-active):not(.active) {
  color: var(--accent);
}

.lang-sep,
.lang-separator {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  user-select: none;
}

.site-header {
  width: 100%;
  position: static;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand:visited,
.brand:hover,
.brand:active,
.brand:focus {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-title {
  font-family: Inter, system-ui, sans-serif;
  font-size: 32px;
  line-height: 1;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-subtitle {
  font-size: 13px;
  line-height: 1.25;
  color: var(--muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: Inter, system-ui, sans-serif;
}

.nav-links a:visited {
  color: var(--text);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent);
}

.legal-main {
  flex: 1;
  padding: 48px 24px 56px;
}

.legal-inner {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.legal-stack {
  display: grid;
  gap: 24px;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 34px;
  box-shadow: var(--shadow);
  scroll-margin-top: var(--header-offset);
  max-width: 100%;
  min-width: 0;
}

.legal-card h1,
.legal-card h2 {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--text);
  margin: 0 0 18px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.legal-card h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--text);
  font-weight: 850;
  line-height: 1.25;
}

.legal-card p,
.legal-card li {
  color: #374151;
  margin: 0 0 12px;
  line-height: 1.72;
  font-size: 16px;
  max-width: 75ch;
  overflow-wrap: break-word;
}

.legal-card strong {
  color: var(--text);
  font-weight: 700;
}

.legal-card a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

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

.footer,
.site-footer {
  background: #fff;
  color: var(--muted);
  text-align: center;
  padding: 32px 20px 36px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-copy {
  margin: 0 0 12px;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: 13px;
  font-weight: 700;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
}

.footer-nav a:visited {
  color: var(--text);
}

.footer-nav a:hover,
.footer-nav a.is-active {
  color: var(--accent);
}

@media (max-width: 760px) {
  :root {
    --header-offset: 200px;
  }

  .lang-top-bar-inner,
  .language-inner {
    justify-content: center;
    padding: 6px 18px;
  }

  .nav {
    padding: 14px 18px;
    flex-wrap: nowrap;
  }

  .nav-links {
    display: none !important;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 17px;
  }

  .brand-title {
    font-size: 24px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .legal-main {
    padding: 32px 18px 44px;
  }

  .legal-card {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .legal-card h1,
  .legal-card h2 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .legal-card h3 {
    font-size: 19px;
  }

  .legal-card p,
  .legal-card li {
    font-size: 16px;
    line-height: 1.68;
  }

  .footer {
    padding: 28px 18px 34px;
  }
}
