:root {
  color: #2f2822;
  background: #faf7f1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #faf7f1;
}

a {
  color: #b94818;
  text-underline-offset: 3px;
}

a:hover {
  color: #8f3513;
}

.legal-header {
  border-bottom: 1px solid #e3d6c4;
  background: #fffdf7;
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-brand {
  color: #2f2822;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.legal-nav a {
  color: #665c52;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: #b94818;
}

.legal-main {
  padding: 56px 0 72px;
}

.legal-language-switch {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 4px;
  margin: 0 0 28px;
  padding: 4px;
  border: 1px solid #e3d6c4;
  border-radius: 6px;
  background: #fffdf7;
}

.legal-language-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #665c52;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.legal-language-switch button[aria-pressed="true"] {
  background: #d95e24;
  color: #ffffff;
}

.legal-language-switch button:focus-visible {
  outline: 2px solid #b94818;
  outline-offset: 2px;
}

.legal-main article[hidden] {
  display: none;
}

.legal-intro {
  padding-bottom: 30px;
  border-bottom: 1px solid #e3d6c4;
}

.legal-kicker {
  margin: 0 0 12px;
  color: #b94818;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-intro h1 {
  max-width: 760px;
  margin: 0;
  color: #2f2822;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
}

.legal-summary {
  max-width: 760px;
  margin: 20px 0 0;
  color: #665c52;
  font-size: 18px;
  line-height: 1.7;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 22px 0 0;
  color: #766b60;
  font-size: 14px;
}

.legal-content {
  padding-top: 18px;
}

.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid #e8ded1;
}

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

.legal-section h2 {
  margin: 0 0 14px;
  color: #2f2822;
  font-size: 23px;
  line-height: 1.3;
}

.legal-section h3 {
  margin: 22px 0 8px;
  color: #3d342d;
  font-size: 17px;
}

.legal-section p,
.legal-section li {
  color: #514940;
  font-size: 16px;
  line-height: 1.75;
}

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

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

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

.legal-note {
  margin-top: 18px;
  border-left: 4px solid #d95e24;
  background: #fff8ef;
  padding: 14px 16px;
}

.legal-contact {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-style: normal;
}

.legal-footer {
  border-top: 1px solid #e3d6c4;
  background: #fffdf7;
}

.legal-footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #766b60;
  font-size: 13px;
}

@media (max-width: 640px) {
  .legal-header-inner,
  .legal-main,
  .legal-footer-inner {
    width: min(100% - 28px, 920px);
  }

  .legal-header-inner {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .legal-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }

  .legal-main {
    padding: 38px 0 52px;
  }

  .legal-language-switch {
    width: 100%;
    margin-bottom: 22px;
  }

  .legal-intro h1 {
    font-size: 36px;
  }

  .legal-summary {
    font-size: 16px;
  }

  .legal-section h2 {
    font-size: 21px;
  }

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

  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }
}
