:root {
  --navy: #1A2B4C;
  --navy-deep: #132038;
  --gold: #C5A059;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --muted: #475569;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.juridical-topbar {
  background: var(--navy-deep);
  color: #E2E8F0;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.35);
}

.topbar-flex {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.law-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.law-logo {
  height: 46px;
  width: auto;
}

.law-nav {
  display: none;
  gap: 24px;
}

.law-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

.btn-gold-outline {
  display: inline-block;
  border: 1.5px solid var(--gold);
  color: var(--navy);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--navy);
  line-height: 1.15;
}

.law-hero {
  padding: 48px 0 60px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.selo-google {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 28px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-navy, .btn-navy-full {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--gold);
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-navy-full {
  width: 100%;
  font-family: inherit;
}

.btn-subtle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 6px;
  font-weight: 600;
}

.pillars-line {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-frame {
  border: 2px solid var(--gold);
  padding: 8px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.practice-section, .partners-section, .testimonials-section, .triage-section {
  padding: 56px 0;
}

.sec-title {
  margin-bottom: 32px;
}

.sec-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9A742B;
  margin-bottom: 8px;
}

.sec-title h2, .partners-copy h2, .triage-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.practice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 26px;
}

.roman-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.practice-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.practice-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.partners-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.partners-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.partners-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.partners-copy p {
  color: var(--muted);
  margin: 14px 0 18px;
}

.ethics-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.ethics-list li::before {
  content: '§ ';
  color: var(--gold);
  font-weight: 700;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.quote-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: 6px;
  padding: 22px;
}

.quote-box p {
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.quote-box footer {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.88rem;
}

.triage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.triage-card, .office-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.triage-card {
  padding: 28px;
}

.lgpd-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 22px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label, .field-caption {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font: inherit;
  background: #F8FAFC;
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-chip {
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.area-chip.selected {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.form-status {
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.office-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.office-info {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.office-info h3 {
  font-size: 1.5rem;
}

.office-info p {
  color: var(--muted);
  font-size: 0.94rem;
}

.law-footer {
  background: var(--navy-deep);
  color: #CBD5E1;
  padding: 24px 0;
  font-size: 0.86rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-flex a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

@media (min-width: 768px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .triage-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 1024px) {
  .law-nav {
    display: flex;
  }
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
