:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: #171918;
  background: #e8e9e7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: #174d87;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0f3762;
}

.page-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0
    max(40px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: #171918;
  font-size: 1.1rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark-accent {
  color: #c94233;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  font-size: 0.9rem;
}

.topbar-links a {
  color: #3f4542;
  font-weight: 600;
  text-decoration: none;
}

.legal-card {
  overflow: hidden;
  border: 1px solid #c2c5c2;
  border-radius: 28px;
  background: #f5f6f4;
}

.legal-header {
  padding: clamp(28px, 6vw, 56px);
  border-bottom: 1px solid #d3d5d2;
  background: #eff0ee;
}

.eyebrow {
  margin: 0 0 10px;
  color: #5c625f;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  color: #111312;
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.summary {
  max-width: 680px;
  margin: 22px 0 0;
  color: #4e5451;
  font-size: clamp(1rem, 2.2vw, 1.14rem);
  line-height: 1.55;
}

.effective-date {
  margin: 18px 0 0;
  color: #686e6a;
  font-size: 0.88rem;
}

.language-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px clamp(24px, 6vw, 56px);
  border-bottom: 1px solid #d3d5d2;
}

.language-label {
  color: #4e5451;
  font-size: 0.88rem;
  font-weight: 650;
}

.language-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-select-wrap::after {
  position: absolute;
  right: 14px;
  color: #565c58;
  content: "⌄";
  font-size: 0.9rem;
  pointer-events: none;
}

.language-select {
  min-height: 40px;
  max-width: min(54vw, 250px);
  padding: 0 38px 0 16px;
  border: 1px solid #c1c5c1;
  border-radius: 999px;
  appearance: none;
  color: #252826;
  background: #fafbf9;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.language-select:focus-visible {
  outline: 3px solid rgb(23 77 135 / 22%);
  outline-offset: 2px;
}

.translation-notice {
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 1px solid #d3c49c;
  border-radius: 14px;
  color: #4b412a;
  background: #f7f1e2;
  font-size: 0.86rem;
  line-height: 1.55;
}

.translation-notice[hidden] {
  display: none;
}

.legal-content {
  padding: clamp(24px, 6vw, 56px);
}

.language-heading {
  margin: 0 0 32px;
  color: #676d69;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

section + section {
  margin-top: 34px;
}

h2 {
  margin: 0 0 10px;
  color: #191b1a;
  font-size: 1.18rem;
  line-height: 1.3;
}

p,
li {
  color: #3e4441;
  font-size: 0.98rem;
  line-height: 1.68;
}

p {
  margin: 0;
}

p + p {
  margin-top: 12px;
}

ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 8px;
}

.notice {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid #b47a18;
  border-radius: 0 14px 14px 0;
  background: #f5eddc;
}

.notice p {
  color: #3f3524;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 4px 0;
  color: #676d69;
  font-size: 0.82rem;
}

footer p {
  color: inherit;
  font-size: inherit;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

footer a {
  color: #4a504d;
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 20px, 880px);
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-links {
    max-width: 160px;
    gap: 6px 12px;
  }

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

  .legal-header,
  .legal-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .language-nav {
    padding-right: 22px;
    padding-left: 22px;
  }

  .language-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .language-select {
    max-width: calc(100vw - 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
