:root {
  color-scheme: dark;
  --bg: #06140e;
  --panel: #0c2118;
  --cream: #f7f3e8;
  --gold: #caaa68;
  --muted: #c8d1ca;
  --line: rgba(247, 243, 232, 0.16);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 8%, rgba(41, 102, 78, 0.32), transparent 32rem),
    linear-gradient(145deg, #081a12, var(--bg) 58%, #040b08);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

a { color: #d8bd83; text-underline-offset: 4px; }
a:hover, a:focus-visible { color: #fff1cc; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(202, 170, 104, 0.34);
  outline-offset: 3px;
}

.site-header,
.legal,
.site-footer {
  width: min(calc(100% - 40px), 920px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  display: block;
  width: 34px;
  height: 58px;
  object-fit: contain;
  mix-blend-mode: normal;
  background: var(--cream);
  border-radius: 999px;
}

.back {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal { padding-block: clamp(48px, 8vw, 92px); }

.eyebrow {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 9vw, 6.7rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: none;
}

.intro {
  max-width: 48rem;
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-grid {
  display: grid;
  gap: 18px;
}

.card {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 33, 24, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.card h2 {
  margin: 0 0 16px;
  color: var(--cream);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  line-height: 1.25;
}

.card h3 {
  margin: 24px 0 10px;
  font-size: 1rem;
}

.card p,
.card li,
address {
  color: #d6ddd7;
  font-size: 1rem;
  line-height: 1.75;
}

.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 10px 0 0; padding-left: 1.2rem; }
.card li + li { margin-top: 7px; }
address { font-style: normal; }
strong { color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 18px;
}

.contact-copy p { margin: 0 0 16px; }

.contact-copy .privacy-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form { display: grid; gap: 20px; }

.field { display: grid; gap: 8px; }

.field label {
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.field .optional,
.form-hint {
  color: #9eaaa1;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 243, 232, 0.24);
  border-radius: 10px;
  color: var(--cream);
  background: rgba(2, 12, 8, 0.56);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 180ms ease, background-color 180ms ease;
}

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

.field input:hover,
.field textarea:hover,
.field input:focus,
.field textarea:focus {
  border-color: rgba(202, 170, 104, 0.72);
  background: rgba(2, 12, 8, 0.78);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #ef9a91;
}

.field-error {
  margin: 0;
  color: #ffc1ba;
  font-size: 0.84rem;
  line-height: 1.5;
}

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

.submit-button {
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #102017;
  background: var(--gold);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  color: var(--cream);
  background: transparent;
}

.notice {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(239, 154, 145, 0.54);
  border-radius: 12px;
  color: #ffe0dc;
  background: rgba(96, 27, 22, 0.34);
  line-height: 1.6;
}

.notice--success {
  border-color: rgba(121, 167, 124, 0.55);
  color: #e1f2e2;
  background: rgba(22, 74, 65, 0.36);
}

.success-card { text-align: center; }

.success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border: 1px solid rgba(121, 167, 124, 0.6);
  border-radius: 50%;
  color: #bfe0c1;
  background: rgba(22, 74, 65, 0.34);
}

.success-mark svg { width: 30px; height: 30px; }

.success-card .submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  text-decoration: none;
}

.hp-field {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px 34px;
  border-top: 1px solid var(--line);
  color: #9eaaa1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: #b7c2ba; text-decoration: none; }
.site-footer a[aria-current="page"] { color: var(--gold); }

@media (max-width: 560px) {
  .site-header, .legal, .site-footer { width: min(calc(100% - 32px), 920px); }
  .brand span { max-width: 13ch; }
  .back { max-width: 12ch; text-align: right; }
  .legal { padding-block: 44px 56px; }
  .site-footer { align-items: flex-end; }
  .site-footer nav { flex-direction: column; align-items: flex-end; gap: 8px; }
  .form-actions { align-items: stretch; }
  .submit-button { width: 100%; }
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}
