/* Preserved AppDock footer and legal dialog. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: flex;
  width: 30px;
  height: 30px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 7.5px;
  background: #171e1b;
}

.brand-bars {
  display: flex;
  height: 14px;
  align-items: flex-end;
  gap: 2px;
}

.brand-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
}

.brand-bars i:nth-child(1) {
  height: 10px;
  background: #fff;
}

.brand-bars i:nth-child(2) {
  height: 14px;
  background: #849f92;
}

.brand-bars i:nth-child(3) {
  height: 12px;
  background: #f08133;
}

.brand-baseline {
  display: block;
  width: 14px;
  height: 2px;
  background: #fff;
}

.brand-word {
  color: #171e1b;
  font-family: var(--font-latin);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
}

.site-footer,
.legal-modal {
  --paper: #fafaf7;
  --white: #fff;
  --ink: #1a1a1a;
  --muted: #736a61;
  --border: #e5e1db;
  --orange: #f28c3a;
  --gray-soft: #f2f0ed;
  --deep-green: #314c40;
  --footer: #1a1a1a;
  --footer-muted: #a3aba7;
  --footer-rule: #404040;
  font-family: var(--font-original);
}
.section-inner {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
}
.footer-languages button {
  cursor: pointer;
  background: transparent;
  font-family: var(--font-latin);
  font-size: 12px;
  line-height: 20px;
}
.site-footer {
  height: 260px;
  color: var(--white);
  background: var(--footer);
}

.footer-inner {
  padding-top: 48px;
}

.brand-dark .brand-word {
  color: var(--white);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-github-link {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--footer-rule);
  border-radius: 50%;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.footer-github-link img {
  width: 15px;
  height: 15px;
  filter: invert(1);
  opacity: 0.84;
}

.footer-github-link:hover {
  border-color: #727a76;
  transform: translateY(-1px);
}

.footer-brand p {
  margin-top: 17px;
  color: var(--footer-muted);
  font-family: var(--font-latin);
  font-size: 12px;
}

.footer-nav {
  position: absolute;
  top: 52px;
  left: 430px;
  display: flex;
  gap: 32px;
}

.footer-nav a,
.footer-nav button {
  padding: 0;
  color: #d4d8d6;
  background: transparent;
  font-size: 13px;
  line-height: inherit;
  cursor: pointer;
  transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: var(--white);
}

.footer-languages {
  position: absolute;
  top: 52px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-languages button {
  padding: 0;
  color: var(--footer-muted);
}

.footer-languages button.is-active {
  color: var(--white);
}

.footer-languages span {
  color: #656b68;
  font-size: 11px;
}

.footer-bottom {
  position: absolute;
  right: 0;
  bottom: 40px;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  color: #7d8581;
  border-top: 1px solid var(--footer-rule);
  font-family: var(--font-latin);
  font-size: 11px;
}

.footer-bottom .footer-contact {
  color: #aeb6b2;
  transition: color 160ms ease;
}

.footer-bottom .footer-contact:hover {
  color: var(--white);
}

body.is-modal-open {
  overflow: hidden;
}

.legal-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(18 23 21 / 58%);
  backdrop-filter: blur(5px);
  animation: legal-backdrop-in 180ms ease-out both;
}

.legal-dialog {
  position: relative;
  display: flex;
  width: min(760px, 100%);
  height: min(720px, calc(100dvh - 48px));
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgb(15 25 20 / 24%);
  animation: legal-dialog-in 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.legal-dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 36px 24px;
}

.legal-dialog-eyebrow {
  margin-bottom: 7px;
  color: var(--orange);
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.4px;
}

.legal-dialog h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.legal-close-button {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--muted);
  background: var(--gray-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.legal-close-button:hover {
  color: var(--ink);
  background: var(--white);
  border-color: #cec8c0;
}

.legal-tabs {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr 1fr;
  margin-inline: 36px;
  padding: 4px;
  background: #eeece8;
  border-radius: 12px;
}

.legal-tabs button {
  min-height: 42px;
  padding: 8px 16px;
  color: var(--muted);
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.legal-tabs button[aria-selected="true"] {
  color: var(--deep-green);
  background: var(--white);
  box-shadow: 0 1px 4px rgb(31 42 37 / 10%);
}

.legal-document-scroll {
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 20px;
  padding: 0 40px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c7c2bb transparent;
  scrollbar-width: thin;
}

.legal-effective-date {
  padding-bottom: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.legal-document-section {
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}

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

.legal-document-section h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.legal-document-section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

@keyframes legal-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes legal-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1099px) {
  .site-footer {
    height: auto;
  }
  .footer-inner {
    min-height: 260px;
  }
}
@media (max-width: 960px) {
  .footer-inner {
    min-height: 340px;
    padding-top: 42px;
    padding-bottom: 40px;
  }
  .footer-nav,
  .footer-languages,
  .footer-bottom {
    position: relative;
    inset: auto;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 36px;
  }
  .footer-languages {
    margin-top: 27px;
  }
  .footer-bottom {
    display: flex;
    margin-top: 30px;
  }
}
@media (max-width: 820px) {
  .section-inner {
    width: min(100% - 40px, 680px);
  }
}
@media (max-width: 560px) {
  .section-inner {
    width: calc(100% - 32px);
  }
  .brand {
    gap: 9px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .brand-word {
    font-size: 16px;
  }
  .footer-inner {
    min-height: 380px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .legal-modal {
    padding: 8px;
  }

  .legal-dialog {
    width: 100%;
    height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .legal-dialog-header {
    gap: 12px;
    padding: 22px 20px 18px;
  }

  .legal-dialog h2 {
    font-size: 20px;
  }

  .legal-close-button {
    min-height: 34px;
    padding: 6px 10px;
  }

  .legal-close-button span {
    display: none;
  }

  .legal-tabs {
    margin-inline: 20px;
  }

  .legal-tabs button {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .legal-document-scroll {
    margin-top: 16px;
    padding: 0 22px 30px;
  }

  .legal-document-section {
    padding-block: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-modal-backdrop,
  .legal-dialog {
    animation: none;
  }
}
