:root {
  color-scheme: light;
  --background: #f7f7f4;
  --surface: #ffffff;
  --text: #171916;
  --muted: #62675f;
  --line: #deded6;
  --green: #16a36b;
  --red: #d94c40;
  --ink: #202720;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-language-picker select {
  width: 104px;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.site-language-picker select:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 163, 107, 0.12);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(44px, 8vw, 86px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  min-height: calc(100vh - 80px);
  padding-top: 0;
  padding-bottom: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-art {
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
  margin-top: 34px;
}

.support-form,
.support-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(32, 39, 32, 0.08);
}

.support-form {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
}

.support-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-card {
  padding: 26px;
}

.support-form label {
  display: grid;
  gap: 9px;
}

.support-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 163, 107, 0.12);
}

.support-form input,
.support-form select {
  height: 48px;
  padding: 10px 13px;
}

.support-form textarea {
  min-height: 190px;
  resize: vertical;
  padding: 13px;
}

.support-form .button {
  width: 100%;
  margin-top: 2px;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.support-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
}

.support-card h2:not(:first-child) {
  margin-top: 26px;
}

.support-card p {
  margin: 0;
  color: var(--muted);
}

.support-card p + p {
  margin-top: 14px;
}

.support-card a {
  color: var(--green);
  font-weight: 800;
}

.legal-page h1,
.support-page h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.legal-viewer-page {
  width: min(1120px, calc(100% - 40px));
}

.legal-viewer-hero {
  margin-bottom: 28px;
}

.legal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.language-picker {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.language-picker select {
  width: 150px;
  height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.language-picker select:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 163, 107, 0.12);
}

.legal-viewer {
  display: grid;
  gap: 14px;
}

.document-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-tabs button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.document-tabs button.active {
  background: var(--ink);
  color: #fff;
}

.document-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.embedded-legal-document {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px) clamp(18px, 5vw, 56px);
  color: var(--text);
  line-height: 1.65;
}

.embedded-legal-document h1,
.embedded-legal-document h2,
.embedded-legal-document h3 {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.embedded-legal-document h1 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 1.45rem + 1vw, 2.35rem);
}

.embedded-legal-document h2 {
  margin: 36px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
}

.embedded-legal-document h3 {
  margin: 28px 0 10px;
  color: var(--muted);
  font-size: 1.05rem;
}

.embedded-legal-document p {
  margin: 0 0 16px;
}

.embedded-legal-document ul {
  margin: 0 0 18px;
  padding-inline-start: 1.4rem;
}

.embedded-legal-document li + li {
  margin-top: 6px;
}

.locale-list {
  display: grid;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.locale-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.locale-row span {
  font-weight: 800;
}

.locale-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.locale-row a {
  text-decoration: none;
}

.locale-row a:hover {
  color: var(--text);
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .site-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: clamp(10px, 3vw, 16px);
    font-size: 14px;
  }

  .site-language-picker select {
    width: 88px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: calc(100vh - 96px);
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .hero section {
    order: 2;
    text-align: center;
  }

  .hero-art {
    max-width: 320px;
    order: 1;
  }

  .hero h1,
  .hero .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-form-row {
    grid-template-columns: 1fr;
  }

  .legal-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-tabs {
    width: 100%;
  }

  .document-tabs button {
    flex: 1 1 0;
  }

  .language-picker {
    width: 100%;
  }

  .language-picker select {
    width: 100%;
  }

  .locale-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
