/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BASE */
body {
  font-family: 'Inter', sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* HEADER / HERO */
header {
  position: relative;
  color: white;
  padding: 30px 20px 80px;
  background-color: #0a2a43; /* azul sólido por baixo */
  overflow: hidden; /* garante que pseudo-elemento não vaze */
}

/* Camada da imagem */
.home-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('juridico.jpg') top/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}

.home-header > * {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo span {
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.5px;
}

.hero {
  text-align: center;
  max-width: 900px;
  margin: auto;
}

header h1 {
  font-size: 2.6em;
  margin-bottom: 15px;
}

header p {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: #2ecc71;
  color: #000;
  padding: 15px 32px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #27ae60;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #0a2a43;
  font-size: 2em;
}

/* ABOUT */
.about {
  background: white;
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.about p {
  font-size: 1.05em;
  text-align: center;
  max-width: 900px;
  margin: auto;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 32px 25px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card span {
  font-size: 2.4em;
  display: block;
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 10px;
  color: #0d4f8b;
}

/* SECURITY */
.security {
  background: #0a2a43;
  color: white;
  border-radius: 20px;
}

.security h2 {
  color: #2ecc71;
}

.security p {
  max-width: 900px;
  margin: auto;
  text-align: center;
  font-size: 1.05em;
  opacity: 0.95;
}

/* CONTACT */
.contact {
  background: white;
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact form {
  max-width: 600px;
  margin: auto;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
}

.contact button {
  width: 100%;
  background: #0d4f8b;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
}

.contact button:hover {
  background: #093b66;
}

/* FOOTER */
footer {
  background: #081f33;
  color: #bbb;
  text-align: center;
  padding: 25px;
  font-size: 14px;
}

footer span {
  color: #2ecc71;
}

/* RESPONSIVO */
@media (max-width: 600px) {
  header h1 {
    font-size: 2.1em;
  }

  .logo span {
    display: none;
  }
}

/* BOTÃO VOLTAR PARA HOME (LEGAL PAGES) */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: #2ecc71;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95em;
  transition: 0.25s ease;
}

.back-home:hover {
  color: #ffffff;
  transform: translateX(-4px);
}