:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d1014;
  color: #f5f4f0;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #0d1014;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #0d1014;
  color: #f5f4f0;
  line-height: 1.6;
}

a {
  color: #f2bd45;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffe09a;
}

a:focus-visible {
  outline: 3px solid #f2bd45;
  outline-offset: 4px;
}

.site-shell {
  width: min(100% - 48px, 860px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 0 26px;
  display: flex;
  flex-direction: column;
}

.home-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 56px 0 48px;
  text-align: center;
}

.home-content {
  width: min(100%, 760px);
}

.home-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 0 auto 22px;
}

.home-accent {
  width: 42px;
  height: 2px;
  margin: 0 auto 20px;
  background: #e6ad30;
}

.home-main h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.home-contact {
  margin: 22px 0 0;
  color: #d5d7da;
  font-size: clamp(0.98rem, 2vw, 1.06rem);
}

.home-contact [data-support-email] {
  color: #f5f4f0;
  font-weight: 500;
}

.home-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 36px;
  color: #aeb3b9;
  font-size: 0.95rem;
}

.home-nav a,
.site-footer a {
  color: #cbd0d5;
}

.home-nav span {
  color: #6f767e;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding-top: 22px;
  border-top: 1px solid #292e34;
  color: #9da4ab;
  font-size: 0.94rem;
  text-align: center;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #292e34;
}

.brand {
  display: inline-block;
  line-height: 0;
}

.brand img {
  display: block;
  width: min(100%, 144px);
  height: auto;
}

.back-link {
  color: #cbd0d5;
  font-size: 0.94rem;
  white-space: nowrap;
}

.legal-main {
  flex: 1;
  padding: 48px 0 56px;
}

.legal-content {
  width: min(100%, 800px);
}

.legal-content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.last-updated {
  margin: 12px 0 38px;
  color: #aeb4ba;
  font-size: 0.98rem;
}

.legal-content h2 {
  margin: 34px 0 10px;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.35rem);
  font-weight: 650;
  line-height: 1.3;
}

.legal-content p {
  margin: 0 0 16px;
  color: #d7d9dc;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
}

.legal-content strong {
  color: #f5f4f0;
}

.contact-email {
  margin: 24px 0 28px !important;
  font-size: 1.08rem !important;
}

.action-link,
.action-button {
  display: inline-block;
  margin: 2px 0 14px;
  padding: 11px 16px;
  border: 1px solid #efb53a;
  border-radius: 7px;
  background: #efb53a;
  color: #15120b;
  font-weight: 700;
  text-decoration: none;
}

.action-link:hover,
.action-button:hover {
  border-color: #ffcf65;
  background: #ffcf65;
  color: #15120b;
}

.action-button {
  font: inherit;
  cursor: pointer;
}

.action-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.public-form {
  width: min(100%, 680px);
  margin: 28px 0 0;
}

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

.form-field {
  margin: 0 0 18px !important;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #f5f4f0;
  font-size: 0.98rem;
  font-weight: 600;
}

.optional-label {
  color: #aeb4ba;
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #444b53;
  border-radius: 7px;
  background: #15191e;
  color: #f5f4f0;
  font: inherit;
  line-height: 1.45;
}

.form-field input {
  min-height: 44px;
  padding: 9px 11px;
}

.form-field textarea {
  min-height: 132px;
  padding: 10px 11px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #efb53a;
  outline: 3px solid rgba(239, 181, 58, 0.24);
  outline-offset: 1px;
}

.form-status {
  min-height: 1.6em;
  margin: 4px 0 0 !important;
  font-size: 0.98rem !important;
}

.form-status[data-state="loading"] {
  color: #c6cbd1;
}

.form-status[data-state="success"] {
  color: #d8e8b7;
}

.form-status[data-state="error"] {
  color: #ffc6b8;
}

.form-notice {
  margin: 24px 0 !important;
  padding-left: 15px;
  border-left: 2px solid #e6ad30;
  color: #e1e3e6 !important;
}

.form-note {
  margin-top: 20px !important;
  color: #b8bec4 !important;
  font-size: 0.98rem !important;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid #292e34;
  font-size: 0.96rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 32px, 860px);
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .home-main {
    padding: 44px 0 38px;
  }

  .home-logo {
    width: min(100%, 210px);
    margin-bottom: 18px;
  }

  .home-accent {
    margin-bottom: 18px;
  }

  .home-main h1 {
    font-size: clamp(1.75rem, 8vw, 2rem);
  }

  .home-nav {
    gap: 8px 10px;
    margin-top: 30px;
  }

  .home-nav span {
    display: none;
  }

  .home-nav a {
    flex-basis: 100%;
  }

  .page-header {
    padding-bottom: 18px;
  }

  .brand img {
    width: min(100%, 122px);
  }

  .legal-main {
    padding: 36px 0 46px;
  }

  .last-updated {
    margin-bottom: 30px;
  }

  .legal-content h2 {
    margin-top: 30px;
  }

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