@charset "UTF-8";

:root {
  --navy: #123f70;
  --deep: #10365c;
  --yellow: #ffbf24;
  --ink: #15395e;
  --muted: #526579;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--deep); }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: 3px; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #3279c3; outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--deep); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 18px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.brand-header { background: #fff; }
.header-inner { max-width: 1296px; margin: auto; min-height: 80px; display: flex; align-items: center; gap: 28px; padding: 20px 48px; }
.brand-logo { display: block; width: 180px; height: auto; flex-shrink: 0; }
.brand-caption { font-size: 14px; line-height: 1.5; }
.vacancy-page { flex: 1; background: linear-gradient(115deg, #174b7d, #123e68 60%, #10365c); padding: 48px 48px 56px; }
.vacancy-layout { width: 100%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.vacancy-info { color: #ffbf24; min-width: 0; }
h1 { font-size: 48px; line-height: 1.15; letter-spacing: -1px; margin: 0 0 24px; font-weight: 700; overflow-wrap: break-word; }
.vacancy-facts { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-bottom: 28px; }
.location, .salary { min-width: 0; }
.fact-label { display: block; font-size: 14px; line-height: 1.5; color: #d9e5f1; margin-bottom: 5px; }
.vacancy-facts p { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; }
.state { font-size: 17px; font-weight: 400; }
.salary p { color: var(--yellow); }
.job-description { font-size: 18px; font-weight: 400; line-height: 1.6; margin: 0; color: #edf3f9; max-width: 55ch; }

.application-panel { min-width: 0; background: #fff; border: 1px solid #dce4ec; border-radius: 14px; padding: 32px; box-shadow: 0 6px 24px #061e3414; }
.application-panel h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.3px; margin: 0 0 10px; font-weight: 700; }
.form-intro { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0 0 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; margin-bottom: 8px; }
.field input { display: block; width: 100%; min-height: 50px; background: #fafbfd; border: 1px solid #8193a5; border-radius: 7px; padding: 12px 14px; font-size: 16px; line-height: 1.5; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #68798a; }
.field input:hover { border-color: #657f98; }
.field input:focus { border-color: #3279c3; box-shadow: 0 0 0 3px #3279c31c; outline: 2px solid transparent; }
.field input[aria-invalid="true"] { border-color: #ac3030; }
.field-error { font-size: 13px; line-height: 1.5; color: #a12b2b; margin: 7px 0 0; }
.privacy-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; }
.privacy-row input { width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; margin: 1px 0 0; }
.privacy-row label { font-size: 13px; line-height: 1.6; color: #41566c; }
.privacy-row a { font-weight: 600; }
.privacy-row a:hover { color: #175d9d; }
.privacy-pending { font-size: 13px; line-height: 1.5; color: #596b7d; margin: 8px 0 20px 28px; }
.submit-button { width: 100%; min-height: 50px; border: 0; border-radius: 7px; background: var(--yellow); color: #12365b; font-weight: 700; font-size: 16px; line-height: 1.5; padding: 12px 16px; }
.submit-button:disabled { opacity: 1; cursor: not-allowed; }
.submit-button:not(:disabled):hover { background: #ffd15c; }
.preview-notice { font-size: 13px; text-align: center; line-height: 1.5; color: #596b7d; margin: 12px 0 0; }
.form-status:empty { display: none; }
.form-status { font-size: 13px; line-height: 1.5; color: #8e3b23; margin: 15px 0 0; }
form[data-state="sending"] .submit-button { cursor: wait; }
form[data-state="error"] .form-status { color: #a12b2b; }
form[data-state="success"] .form-status { color: #226346; }
.footer { width: 100%; max-width: 1296px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; padding: 20px 48px; color: #d9e5f1; font-size: 13px; line-height: 1.5; }
.privacy-page { flex: 1; padding: 40px 24px; }
.privacy-page .application-panel { max-width: 760px; margin: auto; }
.privacy-page .operation-label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 18px; }
.privacy-page h1 { font-size: 34px; margin-bottom: 20px; }
.privacy-page h2 { font-size: 22px; }
.privacy-page p { line-height: 1.6; }
.return-link { display: inline-block; padding: 12px 0; font-weight: 600; }

@media (max-width: 900px) {
  .vacancy-layout { grid-template-columns: 1fr; max-width: 620px; gap: 28px; }
  h1 { font-size: 44px; }
  .vacancy-page { padding-top: 32px; }
}
@media (max-width: 600px) {
  .header-inner { padding: 18px 24px; min-height: 68px; gap: 24px; flex-wrap: wrap; }
  .brand-logo { width: 150px; }
  .brand-caption { font-size: 13px; }
  .vacancy-page { padding: 24px 24px 32px; }
  h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.5px; margin-bottom: 20px; }
  .vacancy-facts { gap: 20px 32px; margin-bottom: 20px; }
  .fact-label { font-size: 13px; }
  .vacancy-facts p { font-size: 20px; }
  .state { font-size: 16px; }
  .job-description { font-size: 16px; line-height: 1.55; }
  .application-panel { padding: 24px; border-radius: 12px; }
  .application-panel h2 { font-size: 23px; }
  .form-intro { font-size: 14px; }
  .footer { padding: 20px 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 374px) {
  .header-inner { padding-inline: 20px; gap: 20px; }
  .vacancy-page { padding-inline: 20px; }
  .application-panel { padding: 22px 20px; }
  .footer { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Identidade da v2 com a escala compacta da v3. */
.invitation { font-size: 39px; line-height: 1.3; font-weight: 400; margin: 0 0 6px; }
.invitation strong { color: var(--yellow); font-weight: 600; }
.team-invitation { color: #edf3f9; font-size: 17px; line-height: 1.5; margin: 0 0 20px; }
.vacancy-info .operation-label { display: flex; align-items: center; gap: 8px; color: #edf3f9; font-size: 17px; line-height: 1.5; margin: 0 0 20px; }
.institution-mark { display: block; width: 40px; height: auto; flex-shrink: 0; }
@media (max-width: 900px) {
  .header-inner { justify-content: center; }
  .vacancy-info, .application-panel { text-align: center; }
  .vacancy-facts, .vacancy-info .operation-label { justify-content: center; }
  .job-description { margin-inline: auto; }
  .field input { text-align: center; }
  .privacy-row { justify-content: center; }
  .privacy-pending { margin-left: 0; }
  .footer { justify-content: center; align-items: center; text-align: center; }
  .invitation { font-size: 30px; }
  .team-invitation { font-size: 17px; margin-bottom: 16px; }
  .vacancy-info .operation-label { margin-bottom: 18px; gap: 6px; }
  .institution-mark { width: 60px; }
}

/* Mobile: assinatura amarela acima da chamada, sem alterar o desktop. */
@media (max-width: 600px) {
  .vacancy-info { display: flex; flex-direction: column; }
  .vacancy-info .operation-label { display: contents; }
  .vacancy-info .institution-mark { order: -1; align-self: center; margin: 0 auto 12px; }
  .vacancy-info .team-invitation { line-height: 1.3; margin-bottom: 6px; }
  .vacancy-info .operation-label > span { display: block; line-height: 1.3; margin-bottom: 18px; }
}

/* Rodapé e diálogos: referência pública de Entregadores; composição aprovada acima preservada. */
.legal-footer-surface, .legal-dialog {
  --navy-950: #031e38; --navy-900: #062f55; --navy-800: #0a4676;
  --line: #dfe6ec; --soft: #f3f7f9; --muted: #5f6d7c;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: auto; line-height: 1.5;
}
.legal-footer-surface { background: #f4f7f9; padding-top: 32px; display: flow-root; }
.legal-footer-surface a:focus-visible, .legal-dialog :focus-visible { outline: 3px solid #ffbd2e; outline-offset: 3px; }
.legal-dialog { padding: 0; border: 0; border-radius: 24px; box-shadow: 0 28px 100px rgba(3,30,56,.32); text-align: left; }
.legal-dialog::backdrop { background: rgba(3, 22, 42, .72); backdrop-filter: blur(5px); }
.site-footer {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto 35px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #607080;
  font-size: .78rem;
  text-align: center;
}
.footer-logo { width: min(300px, 74vw); height: auto; margin-bottom: 2px; }
.site-footer p { margin: 0; }
.footer-tagline { color: var(--navy-900); font-size: .92rem; font-weight: 800; }
.footer-copyright { line-height: 1.5; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 7px; }
.footer-legal a { color: var(--navy-800); font-weight: 750; text-underline-offset: 3px; }
.footer-credit { color: var(--navy-900); font-weight: 400; }
.legal-dialog { width: min(720px, calc(100% - 28px)); max-height: min(88dvh, 820px); overflow: hidden; }
.legal-dialog-shell { max-height: min(88dvh, 820px); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.legal-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.legal-dialog-header h2 { margin: 0; color: var(--navy-950); font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.15; }
.legal-dialog-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin: -8px -8px 0 0;
  color: #667;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.legal-dialog-close:hover { background: var(--soft); }
.legal-dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px 30px; color: var(--muted); }
.legal-dialog-body > :first-child { margin-top: 0; }
.legal-dialog-body > :last-child { margin-bottom: 0; }
.legal-dialog-body h3 { margin: 24px 0 6px; color: var(--navy-900); font-size: 1.05rem; }
.legal-dialog-body p { line-height: 1.65; }
.legal-dialog-body ul { margin: 8px 0 18px; padding-left: 1.35rem; }
.legal-dialog-body li { margin: 7px 0; line-height: 1.55; }
.legal-dialog-body a { color: var(--navy-800); font-weight: 750; overflow-wrap: anywhere; text-underline-offset: 2px; }
.legal-dialog-body .legal-update { margin-top: 28px; color: var(--navy-900); font-weight: 800; }
.legal-dialog-body code { overflow-wrap: anywhere; color: var(--navy-900); }


@media (max-width: 640px) {
  .site-footer { width: calc(100% - 30px); gap: 9px; }
  .legal-dialog { width: calc(100% - 20px); max-height: 92dvh; border-radius: 18px; }
  .legal-dialog-shell { max-height: 92dvh; }
  .legal-dialog-header { padding: 20px 18px 14px; }
  .legal-dialog-body { padding: 18px 18px 24px; }
}
@media (max-width: 360px) {
  .footer-legal span { display: none; }
  .footer-legal a { width: 100%; }
}

/* Rodapé compacto: identidade legal preservada, sem logo e slogan. */
.legal-footer-surface { padding: 20px 0; }
.site-footer { margin: 0 auto; gap: 7px; font-size: 13px; }
.footer-legal { gap: 4px 8px; }
.footer-legal a { font-weight: 600; }
@media (max-width: 360px) {
  .footer-legal span { display: inline; }
  .footer-legal a { width: auto; }
}

/* O currículo é uma opção, sem bloquear o cadastro de contato. */
.resume-field { margin: 24px 0; }
.resume-label { margin: 0 0 9px; color: var(--ink); font-size: 14px; line-height: 1.4; font-weight: 600; }
.resume-label span { font-weight: 400; color: var(--muted); }
.resume-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.resume-choose { min-height: 48px; padding: 10px 16px; color: var(--ink); background: #fff; border: 1px solid #8193a5; border-radius: 7px; font-size: 14px; font-weight: 600; cursor: pointer; }
.resume-choose:hover { background: #f3f7fb; border-color: #3279c3; }
.resume-choose[aria-invalid="true"] { border-color: #ac3030; }
.resume-remove { min-height: 44px; padding: 8px; border: 0; background: transparent; color: #526579; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.resume-remove[hidden], .resume-status[hidden] { display: none; }
.resume-help { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.resume-status { margin: 9px 0 0; color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.resume-field .field-error { overflow-wrap: anywhere; }
@media (max-width: 900px) { .resume-actions { justify-content: center; } }
