:root {
  --legal-coral: #f84f43;
  --legal-coral-dark: #d93b31;
  --legal-ink: #20211f;
  --legal-muted: #6d6f6b;
  --legal-line: #dededb;
}

html,
body.legal-page {
  margin: 0;
  min-height: 100%;
}

body.legal-page {
  background: #fff !important;
  color: var(--legal-ink);
  font-family: Arial, sans-serif;
}

.legal-site-header {
  background: var(--legal-coral);
  border: 0;
  padding: 22px 20px 18px;
  text-align: center;
}

.legal-site-header a,
.legal-site-header img {
  display: inline-block;
}

.legal-site-header img {
  height: auto;
  max-width: 250px;
  width: 100%;
}

.legal-title-bar {
  background: #fff;
  border-bottom: 1px solid var(--legal-line);
  padding: 24px 32px;
}

.legal-title-content {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1380px;
}

.legal-kicker {
  color: var(--legal-coral);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.legal-title-bar h1 {
  color: var(--legal-ink);
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  margin: 0 0 6px;
}

.legal-title-bar p {
  color: var(--legal-muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

.legal-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.legal-button {
  align-items: center;
  border: 1px solid var(--legal-coral);
  border-radius: 10px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none !important;
}

.legal-button-primary {
  background: var(--legal-coral);
  color: #fff !important;
}

.legal-button-primary:hover,
.legal-button-primary:focus {
  background: var(--legal-coral-dark);
  border-color: var(--legal-coral-dark);
}

.legal-button-secondary {
  background: #fff;
  color: var(--legal-coral) !important;
}

.legal-document-shell {
  background: #3d3d3d;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  width: 100%;
}

.legal-document-shell object,
.legal-document-shell iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.legal-fallback {
  align-items: center;
  background: #f7f7f5;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.legal-fallback strong {
  font-family: 'Lora', Georgia, serif;
  font-size: 24px;
}

.legal-fallback p {
  color: var(--legal-muted);
  line-height: 1.6;
  margin: 10px auto 20px;
  max-width: 520px;
}

body.legal-page .legal-site-footer {
  background: #000;
  margin-top: 0;
  padding-top: 48px;
}

body.legal-page .legal-site-footer .logo img {
  height: auto;
  max-width: 350px;
  width: 100%;
}

body.legal-page .legal-site-footer .footer_bottom {
  margin-top: 35px;
  width: 100%;
}

@media (max-width: 760px) {
  .legal-site-header {
    padding: 15px 18px 12px;
  }

  .legal-site-header img {
    max-width: 190px;
  }

  .legal-title-bar {
    padding: 20px 16px;
  }

  .legal-title-content {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .legal-title-bar h1 {
    font-size: 32px;
  }

  .legal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .legal-document-shell {
    height: 82vh;
    min-height: 540px;
  }

  body.legal-page .legal-site-footer {
    padding-top: 36px;
  }
}

@media (max-width: 420px) {
  .legal-actions {
    grid-template-columns: 1fr;
  }
}
