body {
  background: #0a0e17;
}

.legal-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    #0a0e17;
  background-size: 48px 48px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
}

.butler-hero-layout {
  grid-template-areas:
    "intro"
    "demo"
    "details";
}

.butler-hero-intro {
  grid-area: intro;
}

.butler-hero-details {
  grid-area: details;
}

.butler-demo {
  grid-area: demo;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: #05070c;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42), 0 0 36px rgba(34, 211, 238, 0.12);
}

.butler-demo::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-top: 2px solid #22d3ee;
  pointer-events: none;
  z-index: 1;
}

.butler-demo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .butler-hero-layout {
    grid-template-areas:
      "intro demo"
      "details demo";
    grid-template-columns: minmax(0, 1fr) minmax(360px, 540px);
  }
}

.legal-kicker {
  color: #22d3ee;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-copy h2 {
  margin-top: 2.5rem;
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 700;
}

.legal-copy h3 {
  margin-top: 1.5rem;
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 700;
}

.legal-copy p,
.legal-copy li {
  color: #94a3b8;
  line-height: 1.75;
}

.legal-copy p {
  margin-top: 0.75rem;
}

.legal-copy code {
  overflow-wrap: anywhere;
}

.legal-copy ul,
.legal-copy ol {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.legal-copy ul {
  list-style: disc;
}

.legal-copy ol {
  list-style: decimal;
}

.legal-copy a {
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 1.5rem;
  border-left: 3px solid #22d3ee;
  background: rgba(14, 165, 233, 0.08);
  padding: 1rem 1.25rem;
}

.legal-nav a[aria-current="page"] {
  color: #22d3ee;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.legal-card {
  border: 1px solid #1e293b;
  background: rgba(17, 24, 39, 0.86);
  padding: 1.25rem;
}

.legal-card h2,
.legal-card h3 {
  margin-top: 0;
}

.support-form-section {
  margin-top: 2.5rem;
  scroll-margin-top: 5.5rem;
}

.support-form-section > .legal-kicker {
  margin-top: 0;
}

.support-form-section > h2 {
  margin-top: 0.35rem;
}

.support-form {
  position: relative;
  margin-top: 1.25rem;
  border: 1px solid #1e293b;
  border-top-color: #22d3ee;
  background:
    linear-gradient(rgba(34, 211, 238, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px),
    rgba(17, 24, 39, 0.92);
  background-size: 24px 24px;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.08);
  padding: 1.75rem;
}

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

.support-field-wide {
  grid-column: 1 / -1;
}

.support-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 600;
}

.support-field label span {
  color: #64748b;
  font-weight: 500;
}

.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 0;
  background-color: rgba(10, 14, 23, 0.96);
  color: #f8fafc;
  font: inherit;
  padding: 0.7rem 0.8rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.support-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2322d3ee' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.8rem center;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.support-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
  outline: none;
}

.support-field input::placeholder,
.support-field textarea::placeholder {
  color: #64748b;
}

.support-submit {
  margin-top: 1.25rem;
  border: 1px solid #22d3ee;
  border-radius: 0;
  background: #22d3ee;
  color: #0a0e17;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.support-submit:hover {
  background: #f8fafc;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.support-submit:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.3);
  outline-offset: 3px;
}

.legal-copy .support-form-note,
.legal-copy .support-status {
  font-size: 0.8rem;
  line-height: 1.5;
}

.legal-copy .support-status {
  border-left: 3px solid #22c55e;
  color: #bbf7d0;
  padding-left: 0.75rem;
}

.support-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .legal-shell nav > div > a > span {
    display: none;
  }

  .legal-nav {
    gap: 0.7rem;
    overflow: visible;
    white-space: nowrap;
    font-size: 0.75rem;
  }

  .support-form {
    padding: 1.1rem;
  }

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

  .support-field-wide {
    grid-column: auto;
  }

  .support-submit {
    width: 100%;
  }
}
