@import "./theme.css";

/* Páginas internas: trabalhe conosco, contato, contratos, políticas, cancelamento */

.inner-page {
  flex: 1 0 auto;
  min-height: 50vh;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

/* Faixa de título (substitui #titlepage + .intro3 genéricos) */
.inner-page-hero,
#titlepage.inner-page-hero {
  padding: clamp(5.5rem, 12vw, 7rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  margin: 0;
  background: linear-gradient(
    145deg,
    var(--navy) 0%,
    var(--navy-mid) 42%,
    rgba(52, 152, 219, 0.22) 100%
  );
  border-bottom: 1px solid var(--nav-border);
}

.inner-page-hero .container {
  max-width: 960px;
}

.inner-page-hero__text {
  max-width: 720px;
}

.inner-page-hero__title {
  font-family: "Plus Jakarta Sans", "Raleway", sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-color);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.inner-page-hero__line2,
.inner-page-hero__line3,
.inner-page-hero__line4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin: 0.25rem 0 0;
}

.inner-page-hero__sub {
  font-size: 1rem;
  color: rgba(232, 238, 243, 0.88);
  margin: 0.75rem 0 0;
  line-height: 1.55;
  max-width: 560px;
}

.inner-page-hero__sub2 {
  font-size: 0.9rem;
  color: rgba(232, 238, 243, 0.75);
  margin: 0.5rem 0 0;
}

.inner-page-hero--compact {
  padding-bottom: clamp(2.75rem, 6vw, 3.75rem);
}

.inner-page-hero__eyebrow {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 0.4rem;
}

/* Corpo em cartão */
.inner-page__body {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.inner-page__card {
  background: var(--white-background);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.inner-page__card--wide {
  max-width: min(960px, 100%);
}

/* Texto jurídico / políticas */
.inner-page__prose,
#bodyContrato.inner-page__prose {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  text-align: left;
}

.inner-page__prose.text-just,
.text-just.inner-page__prose {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.inner-page__prose h3,
#bodyContrato.inner-page__prose h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
  text-align: left;
}

.inner-page__prose h5,
#bodyContrato.inner-page__prose h5 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 1.75rem 0 0.65rem;
  text-align: left;
}

.inner-page__prose p,
#bodyContrato.inner-page__prose p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--paragraph-color);
  margin: 0 0 1rem;
}

.inner-page__prose ul,
.inner-page__prose ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  color: var(--paragraph-color);
}

.inner-page__prose li {
  margin-bottom: 0.35rem;
  line-height: 1.65;
}

.inner-page__prose a {
  color: var(--accent-blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inner-page__prose a:hover {
  color: var(--accent-green);
}

/* Sobrescreve style.css .text-just (padding em vh). O #bodyContrato É o .inner-page__card — não zerar o padding do cartão. */
main.inner-page #bodyContrato.inner-page__prose.text-just {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Repõe padding interno quando o bloco é cartão + texto (mesmo elemento no DOM) */
main.inner-page #bodyContrato.inner-page__card.inner-page__prose.text-just {
  padding: clamp(1.75rem, 4.5vw, 2.85rem) clamp(1.5rem, 4vw, 2.75rem);
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

main.inner-page.inner-page--legal #bodyContrato.inner-page__card.inner-page__prose.text-just {
  padding: clamp(2.5rem, 6.5vw, 4.25rem) clamp(2rem, 5.5vw, 4rem);
}

.inner-page__prose .highlight,
.inner-page__prose p.is-highlight {
  background: var(--gradient-brand-soft);
  border-left: 4px solid var(--accent-gold);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
}

/* Contratos, políticas, cancelamento — leitura confortável, respiro em relação ao container */
.inner-page--legal {
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.inner-page--legal .inner-page__body.container {
  width: 100%;
  max-width: min(96vw, 1320px);
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.inner-page--legal .inner-page__body {
  margin-top: clamp(1.85rem, 4vw, 2.85rem);
}

.inner-page--legal .inner-page__card {
  max-width: 100%;
  width: 100%;
  /* padding no seletor main…#bodyContrato… acima (evita conflito com reset de .text-just) */
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(13, 31, 45, 0.07);
}

[data-theme="dark"] .inner-page--legal .inner-page__card {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.inner-page--legal .inner-page__prose,
.inner-page--legal #bodyContrato.inner-page__prose {
  max-width: min(82ch, 100%);
  margin-left: auto;
  margin-right: auto;
}

.inner-page--legal .inner-page__prose p,
.inner-page--legal #bodyContrato.inner-page__prose p {
  font-size: clamp(1.0625rem, 0.55vw + 0.9rem, 1.1875rem);
  line-height: 1.78;
  margin-bottom: 1.1rem;
  orphans: 2;
  widows: 2;
}

.inner-page--legal .inner-page__prose h3,
.inner-page--legal #bodyContrato.inner-page__prose h3 {
  font-size: clamp(1.2rem, 1.15vw, 1.4rem);
  margin-top: 2.35rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.inner-page--legal .inner-page__prose h5,
.inner-page--legal #bodyContrato.inner-page__prose h5 {
  font-size: clamp(1.08rem, 0.65vw + 0.88rem, 1.2rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.inner-page--legal .inner-page__prose ul,
.inner-page--legal .inner-page__prose ol {
  margin: 0 0 1.15rem 0;
  padding-left: 1.5rem;
}

.inner-page--legal .inner-page__prose li {
  margin-bottom: 0.45rem;
  line-height: 1.75;
  font-size: clamp(1.0625rem, 0.55vw + 0.9rem, 1.1875rem);
}

.inner-page--legal .inner-page__prose p.is-highlight,
.inner-page--legal .inner-page__prose .highlight {
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
}

.inner-page--legal #titlepage.inner-page-hero .container {
  max-width: min(96vw, 1320px);
}

/* Formulários — hero com gradiente da marca; corpo sem cartão (fundo da página) */
.inner-page--form .inner-page__body {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(2.25rem, 6vw, 4rem);
}

/* Área do form alargada em relação ao .container Bootstrap (~1170px em xl) */
.inner-page--form .inner-page__body.container {
  width: 100%;
  max-width: min(94vw, 1240px);
}

.form-shell {
  max-width: min(44rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.inner-page--form .form-shell {
  max-width: 100%;
}

/* Sem painel: formulário direto sobre --surface-muted do body */
.form-shell--bare {
  padding: clamp(0.5rem, 2vw, 1rem) 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.inner-page--form .form-shell--bare {
  padding-top: clamp(0.75rem, 2.5vw, 1.5rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.inner-form--modern .inner-form__grid {
  display: grid;
  gap: 1.15rem 1.25rem;
}

.inner-page--form .inner-form--modern .inner-form__grid {
  gap: clamp(1.2rem, 2.2vw, 1.65rem) clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 576px) {
  .inner-form--modern .inner-form__grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.inner-form--modern .inner-form__grid {
  margin-bottom: 1.15rem;
}

.inner-form--modern > .inner-form__field {
  margin-bottom: 1.15rem;
}

.inner-form--modern > .inner-form__actions {
  margin-bottom: 0;
}

.inner-form--modern label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  float: none;
}

.inner-form--modern .form-control {
  width: 100%;
  border-radius: 2px;
  border: 1px solid rgba(13, 31, 45, 0.16);
  background: var(--white-background);
  color: var(--paragraph-color);
  padding: 0.7rem 0.85rem;
  font-size: 15px;
  font-family: "Plus Jakarta Sans", "Open Sans", sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inner-page--form .inner-form--modern .form-control {
  padding: clamp(0.8rem, 1.5vw, 1rem) clamp(0.95rem, 2vw, 1.15rem);
  font-size: clamp(15px, calc(0.75rem + 0.65vw), 17px);
}

.inner-form--modern .form-control:hover {
  border-color: rgba(13, 31, 45, 0.28);
}

.inner-form--modern .form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue);
  outline: none;
}

.inner-form--modern .form-control::placeholder {
  color: rgba(61, 79, 92, 0.5);
}

.inner-form__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.inner-page--form .inner-form__textarea {
  min-height: clamp(10.5rem, 24vh, 18rem);
}

[data-theme="dark"] .inner-form--modern .form-control {
  background: rgba(10, 14, 18, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .inner-form--modern .form-control:focus {
  background: rgba(15, 20, 25, 0.85);
}

[data-theme="dark"] .inner-form--modern .form-control::placeholder {
  color: rgba(170, 184, 196, 0.55);
}

/* Zona de arquivo */
.inner-form__file-zone {
  position: relative;
  min-height: 88px;
  border: 1px dashed rgba(13, 31, 45, 0.22);
  border-radius: 2px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.inner-form__file-zone:hover {
  border-color: rgba(13, 31, 45, 0.35);
}

.inner-page--form .inner-form__file-zone {
  min-height: clamp(5.75rem, 14vh, 8.75rem);
}

.inner-form__file-zone--drag {
  border-color: var(--accent-blue);
  border-style: dashed;
  background: rgba(52, 152, 219, 0.06);
}

[data-theme="dark"] .inner-form__file-zone {
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .inner-form__file-zone:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.inner-form__file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
  z-index: 2;
}

.inner-form__file-ui {
  pointer-events: none;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 1;
}

.inner-form__file-cta {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.inner-form__file-hint {
  font-size: 0.82rem;
  color: var(--paragraph-color);
  word-break: break-word;
}

/* Rodapé do formulário */
.inner-form__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(13, 31, 45, 0.08);
  align-items: stretch;
}

.inner-page--form .inner-form__actions {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding-top: clamp(1.35rem, 2.5vw, 1.75rem);
  gap: clamp(1rem, 2vw, 1.35rem);
}

@media (min-width: 576px) {
  .inner-form__actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

[data-theme="dark"] .inner-form__actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.inner-form__fineprint {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--paragraph-color);
  margin: 0;
  max-width: 22rem;
  opacity: 0.9;
}

.inner-page--form .inner-form__fineprint {
  max-width: min(42rem, 100%);
  font-size: clamp(0.78rem, 0.35vw + 0.72rem, 0.84rem);
}

.inner-form__submit {
  font-family: "Plus Jakarta Sans", sans-serif;
  text-transform: none;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0.65rem 1.35rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  cursor: pointer;
  color: var(--white-color);
  background: var(--navy);
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.inner-page--form .inner-form__submit {
  padding: clamp(0.75rem, 1.4vw, 0.95rem) clamp(1.4rem, 3vw, 2.1rem);
  font-size: clamp(0.9375rem, 0.5vw + 0.85rem, 1.0625rem);
}

.inner-form__submit:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

.inner-form__submit:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

[data-theme="dark"] .inner-form__submit {
  background: var(--accent-gold);
  border-color: var(--accent-gold-dark);
  color: var(--navy);
}

[data-theme="dark"] .inner-form__submit:hover {
  background: var(--accent-gold-dark);
  border-color: #b88905;
  color: var(--navy);
}

@media (max-width: 575px) {
  .inner-form__submit {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .inner-page__prose.text-just,
  .text-just.inner-page__prose {
    text-align: left;
    hyphens: none;
  }

  #bodyContrato .text-just {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .text-just {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}
