:root {
  color-scheme: dark;
  --background: #050914;
  --surface: #0d1524;
  --surface-soft: #111d30;
  --text: #f5f8ff;
  --muted: #aeb9ca;
  --line: rgba(171, 198, 229, 0.18);
  --accent: #42dfc4;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(55, 115, 170, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 115, 170, 0.08) 1px, transparent 1px),
    var(--background);
  background-size: 42px 42px;
}

a {
  color: var(--accent);
}

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

.legal-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
}

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

.legal-header nav,
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-header nav a,
.legal-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.legal-main {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) 0;
}

.legal-main--wide {
  width: min(1080px, calc(100% - 40px));
}

.legal-main > header {
  margin-bottom: 36px;
}

.legal-main > header > p:last-child {
  max-width: 720px;
  font-size: 1.05rem;
}

.legal-eyebrow {
  margin: 0 0 10px;
  color: var(--accent) !important;
  font-size: 0.78rem !important;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-main h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.legal-main h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
}

.legal-main section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-main ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.support-contact {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.support-contact strong {
  display: block;
  margin-bottom: 5px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.support-sidebar {
  display: grid;
  gap: 24px;
  padding-top: 4px;
}

.support-sidebar > div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.support-sidebar strong,
.support-sidebar a {
  display: block;
}

.support-sidebar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.support-form-panel {
  padding: clamp(22px, 4vw, 34px) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  background: rgba(13, 21, 36, 0.86);
}

.support-form-panel h2 {
  margin-bottom: 22px;
}

.support-form,
.field {
  display: grid;
  gap: 8px;
}

.support-form {
  gap: 18px;
}

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

.field > span {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(171, 198, 229, 0.24);
  border-radius: 6px;
  background: rgba(4, 9, 17, 0.78);
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(66, 223, 196, 0.12);
}

.field small {
  color: var(--muted);
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.support-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.support-submit {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #04100d;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 12px 18px;
}

.support-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-status {
  flex: 1 1 250px;
  margin: 0;
  font-size: 0.9rem;
}

.form-status.is-success {
  color: #76e7b0;
}

.form-status.is-error {
  color: #ff9b9b;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 620px) {
  .legal-header,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .support-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
