:root {
  color-scheme: dark;
  --background: #11100f;
  --surface: #1b1917;
  --surface-raised: #24211e;
  --border: #3b3631;
  --text: #f8f4ed;
  --muted: #b8afa4;
  --accent: #ae7df2;
  --accent-hover: #c298fb;
  --danger: #ff918c;
  --success: #78d9a2;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 15% 0%, rgb(174 125 242 / 16%), transparent 34rem), var(--background);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-footer {
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer a:hover,
.secondary-link:hover {
  color: var(--accent-hover);
}

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

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-hover);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.language-nav {
  display: flex;
  max-width: 65%;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.language-link {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.language-link:hover,
.language-link-active {
  color: var(--text);
  background: var(--surface-raised);
}

.support-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: calc(100vh - 11rem);
  padding: 4rem 0;
}

.intro h1,
.legal-main h1,
.error-page h1 {
  margin: 0 0 1rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
}

.intro > p:last-child {
  max-width: 32rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.support-form,
.status-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgb(27 25 23 / 92%);
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 24%);
}

.support-form label {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 650;
}

.support-form input,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.8rem 0.9rem;
  color: var(--text);
  background: var(--surface-raised);
  font: inherit;
}

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

.support-form input:focus-visible,
.support-form textarea:focus-visible,
.support-form button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(174 125 242 / 45%);
  outline-offset: 2px;
}

.support-form button,
.button-link {
  display: inline-flex;
  justify-content: center;
  border: 0;
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  color: #160f1f;
  background: var(--accent);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.support-form button:hover,
.button-link:hover {
  background: var(--accent-hover);
}

.captcha {
  min-height: 4.875rem;
  margin: 0.75rem 0;
  overflow: hidden;
}

.error-message {
  border-left: 3px solid var(--danger);
  padding: 0.65rem 0.8rem;
  color: var(--danger);
  background: rgb(255 145 140 / 8%);
}

.status-card {
  align-items: center;
  justify-content: center;
  min-height: 18rem;
  text-align: center;
}

.status-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid var(--success);
  border-radius: 50%;
  color: var(--success);
  font-size: 2rem;
}

.status-success p {
  font-size: 1.15rem;
}

.secondary-link {
  color: var(--accent-hover);
}

.legal-main {
  width: min(100%, 52rem);
  min-height: calc(100vh - 11rem);
  margin: 0 auto;
  padding: 4rem 0;
}

.legal-main h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
}

.legal-content {
  margin-top: 3rem;
  color: #ded7ce;
}

.legal-content h2 {
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.legal-content li + li {
  margin-top: 0.55rem;
}

.legal-content a {
  color: var(--accent-hover);
}

.error-page {
  display: grid;
  width: min(100% - 2rem, 34rem);
  min-height: 100vh;
  margin: 0 auto;
  place-content: center;
  text-align: center;
}

.error-page .button-link {
  margin-top: 1.5rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-nav {
    max-width: 100%;
    justify-content: flex-start;
  }

  .support-main {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 0;
  }

  .intro h1 {
    font-size: clamp(3.5rem, 20vw, 5.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
