@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/DMSans-Variable.ttf") format("truetype-variations");
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/DMSans-Italic-Variable.ttf") format("truetype-variations");
}

:root {
  color-scheme: light;
  font-family: "DM Sans", Arial, sans-serif;
  color: #262626;
  background: #f5f5f5;
  --brand-black: #090909;
  --brand-red: #d71920;
  --border: #dedede;
  --muted: #737373;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f5f5;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.legal-header {
  border-bottom: 1px solid #242424;
  background: var(--brand-black);
}

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

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

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.legal-brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.legal-brand-wordmark {
  width: 116px;
  height: auto;
  object-fit: contain;
}

.legal-nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 650;
}

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

.legal-nav a:hover {
  color: #fff;
}

.legal-main {
  margin-top: 36px;
  margin-bottom: 52px;
  padding: 38px 48px 52px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-red);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06);
}

.legal-title {
  margin: 0 0 8px;
  color: #111;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
}

.legal-updated {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.legal-section h2 {
  margin: 0 0 12px;
  color: #171717;
  font-size: 20px;
  line-height: 1.3;
}

.legal-section h3 {
  margin: 20px 0 8px;
  color: #333;
  font-size: 16px;
}

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

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

.legal-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.legal-form label {
  display: grid;
  gap: 7px;
  color: #404040;
  font-weight: 700;
}

.legal-form input,
.legal-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  background: #fff;
  color: #202020;
  font: inherit;
  font-weight: 400;
}

.legal-form input:focus,
.legal-form textarea:focus {
  border-color: var(--brand-red);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.legal-form textarea {
  min-height: 120px;
  resize: vertical;
}

.legal-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 400 !important;
}

.legal-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.legal-button {
  min-height: 42px;
  justify-self: start;
  padding: 10px 18px;
  border: 0;
  border-radius: 5px;
  background: var(--brand-red);
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.legal-button:disabled {
  background: #a8a8a8;
  cursor: not-allowed;
}

.legal-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

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

.legal-footer a {
  color: #525252;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 640px) {
  .legal-header-inner {
    min-height: 58px;
  }

  .legal-nav a:first-child {
    display: none;
  }

  .legal-main {
    width: calc(100% - 28px);
    margin-top: 22px;
    margin-bottom: 28px;
    padding: 28px 20px 36px;
  }

  .legal-title {
    font-size: 29px;
  }

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

@media print {
  .legal-header,
  .legal-footer {
    display: none;
  }

  body {
    background: #fff;
  }

  .legal-main {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
