:root {
  --ink: #13151a;
  --ink-soft: #59616d;
  --paper: #f7f8f8;
  --paper-deep: #eef0f2;
  --line: #d9dde2;
  --blue: #4056b8;
  --blue-deep: #344896;
  --white: #ffffff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 48px, var(--max)); margin: 0 auto; }

header {
  border-bottom: 1px solid rgba(19, 21, 26, .10);
  background: rgba(247, 248, 248, .94);
}
nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.wordmark { display: inline-flex; align-items: baseline; font-size: 16px; line-height: 1; text-transform: uppercase; }
.wordmark-app { font-size: 1em; font-weight: 700; letter-spacing: .035em; }
.wordmark-slash { margin: 0 .13em; color: var(--blue); font-size: 1.05em; font-weight: 550; }
.wordmark-code { font-size: 1em; font-weight: 850; letter-spacing: -.055em; }
.nav-links { display: flex; align-items: center; gap: 27px; color: #444954; font-size: 14px; font-weight: 650; }
.nav-links a:not(.button):hover, .footer-links a:hover { color: var(--blue); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--blue); border-color: var(--blue); }

main { padding: clamp(64px, 10vw, 132px) 0 clamp(84px, 11vw, 144px); }
.legal-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding-bottom: 52px; border-bottom: 2px solid var(--ink); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); content: ""; }
h1 {
  max-width: 620px;
  margin: 14px 0 0;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 780;
  line-height: .96;
  letter-spacing: -.07em;
}
.legal-intro { max-width: 540px; align-self: end; margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.55; letter-spacing: -.02em; }
.legal-document { width: min(100%, 760px); margin: 58px 0 0 auto; }
.legal-section { padding: 30px 0 33px; border-bottom: 1px solid var(--line); }
.legal-section:first-child { padding-top: 0; }
.legal-section h2 { margin: 0 0 13px; font-size: 22px; line-height: 1.12; letter-spacing: -.045em; }
.legal-section p, .legal-section li { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.legal-section p { margin: 0; }
.legal-section p + p { margin-top: 14px; }
.legal-section ul { margin: 13px 0 0; padding-left: 20px; }
.legal-section li + li { margin-top: 7px; }
.legal-section a { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-section strong { color: var(--ink); }

.contact-document { width: min(100%, 760px); margin: 58px 0 0 auto; }
.contact-form { padding-top: 0; }
.contact-form > p { max-width: 590px; margin: 0 0 30px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field > span { color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.form-field > span small { color: var(--ink-soft); font-size: 10px; letter-spacing: .05em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid #abb2bb; border-radius: 3px; outline: none;
  background: var(--white); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(64, 86, 184, .12); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #747c86; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.form-submit { min-height: 46px; padding: 0 18px; cursor: pointer; }
.form-submit:disabled { cursor: wait; opacity: .7; }
.form-status { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.form-status.is-error { color: #9f2525; }
.form-status.is-success { color: #236843; }
.form-privacy { margin: 18px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.form-privacy a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.contact-direct { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-direct h2 { margin: 0 0 10px; font-size: 16px; letter-spacing: -.03em; }
.contact-direct p, .contact-direct a { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.contact-direct a { color: var(--blue-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

footer { padding: 32px 0; background: var(--ink); color: #c8cdd6; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 14px; font-weight: 750; }
.footer-brand .wordmark { font-size: 14px; }
.footer-brand .wordmark-app { color: #c8cdd6; }
.footer-brand .wordmark-slash { color: #cfd8ff; }
.footer-links { display: flex; gap: 20px; font-size: 13px; }
.footer-links a[aria-current="page"] { color: var(--white); }

@media (max-width: 740px) {
  .container { width: min(100% - 36px, var(--max)); }
  nav { min-height: 66px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: 0; }
  .legal-hero { grid-template-columns: 1fr; gap: 26px; padding-bottom: 38px; }
  .legal-document { margin-top: 42px; }
  .contact-document { margin-top: 42px; }
  .form-grid, .contact-direct { grid-template-columns: 1fr; }
  .form-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .legal-section { padding: 26px 0 29px; }
  .legal-section p, .legal-section li { font-size: 15px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 17px; }
}
