/* ==========================================================================
   Ribeiro Cordeiro — Sociedade Individual de Advocacia
   Folha de estilos do site institucional (HTML + CSS + JS, sem framework)
   ========================================================================== */

/* ---------- Fontes (hospedadas localmente, subset latin) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --surface: #ffffff;
  --surface-2: #fbf9f4;

  --ink: #152033;
  --ink-2: #3a4457;
  --muted: #5a6070;
  --line: #e2dbcd;
  --line-strong: #cfc5b2;

  --navy: #12203a;
  --navy-2: #0d182c;
  --navy-3: #1b2d4f;
  --navy-line: rgba(255, 255, 255, 0.12);
  --on-navy: #efe9dd;
  --on-navy-muted: #aeb6c6;

  --bronze: #a8844a;       /* decorativo (linhas, ícones) */
  --bronze-ink: #7e5f2c;   /* texto sobre fundo claro (contraste AA) */
  --bronze-2: #c8a769;     /* texto/detalhes sobre azul-marinho */
  --bronze-soft: #f1e8d6;

  --ok: #2f7a55;
  --ok-bright: #5fc48e;

  --font-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(18, 32, 58, 0.06), 0 12px 32px -16px rgba(18, 32, 58, 0.22);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-numeric: lining-nums;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: inherit;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

address {
  font-style: normal;
}

strong {
  font-weight: 700;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--bronze-soft);
  color: var(--ink);
}

.num {
  font-variant-numeric: lining-nums;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Tipografia de seção ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section--navy .eyebrow {
  color: var(--bronze-2);
}

.section-title {
  margin-top: 16px;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.04;
}

.section-intro {
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--ink-2);
}

.section--navy .section-intro {
  color: var(--on-navy-muted);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--navy);
  color: var(--on-navy);
}

.btn-primary:hover {
  background: var(--navy-3);
  box-shadow: 0 12px 24px -14px rgba(18, 32, 58, 0.75);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--ink);
}

.btn-sm {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn.is-copied {
  background: var(--ok);
  color: #fff;
}

/* ---------- Marca ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
}

.brand-mark .mark-bg {
  fill: var(--navy);
}

.brand-mark .mark-ring {
  fill: none;
  stroke: var(--bronze-2);
  stroke-width: 0.9;
}

.brand-mark .mark-text {
  fill: var(--on-navy);
  font-family: var(--font-serif);
  font-weight: 600;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.brand-name {
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.brand-sub {
  margin-top: 4px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

.brand--light {
  color: var(--on-navy);
}

.brand--light .brand-sub {
  color: var(--on-navy-muted);
}

.brand--light .brand-mark .mark-bg {
  fill: rgba(255, 255, 255, 0.04);
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.97);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(18, 32, 58, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  gap: 28px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link[aria-current] {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link[aria-current]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close,
.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

.header-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header-back .icon {
  transform: scaleX(-1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}

.hero::before {
  content: "§";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  transform: translate(-58%, -46%);
  font-family: var(--font-serif);
  font-size: 560px;
  line-height: 1;
  color: var(--bronze);
  opacity: 0.06;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(3.3rem, 8.6vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-title .line {
  display: block;
}

.hero-subtitle {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.45rem, 2.9vw, 2.15rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--bronze-ink);
}

.hero-lead {
  max-width: 33rem;
  margin-top: 26px;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  line-height: 1.7;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Cartão institucional (resumo cadastral) */
.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: clamp(28px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--on-navy);
  box-shadow: 0 36px 70px -36px rgba(13, 24, 44, 0.6);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(200, 167, 105, 0.18), transparent 62%),
    repeating-radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 9px);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(200, 167, 105, 0.28);
  border-radius: 8px;
  pointer-events: none;
}

.seal {
  width: 152px;
  height: 152px;
  margin: 2px auto 0;
  color: var(--bronze-2);
}

.seal .seal-text {
  fill: currentColor;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.6px;
}

.seal .seal-mono {
  fill: var(--on-navy);
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 600;
  letter-spacing: 1px;
}

.seal .ring {
  fill: none;
  stroke: currentColor;
}

.card-kicker {
  margin-top: 22px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}

.fact-list {
  margin-top: 16px;
  border-top: 1px solid var(--navy-line);
}

.fact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--navy-line);
  font-size: 0.9rem;
}

.fact dt {
  color: var(--on-navy-muted);
}

.fact dd {
  font-weight: 600;
  text-align: right;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok-bright);
  box-shadow: 0 0 0 4px rgba(95, 196, 142, 0.18);
}

.status--light {
  color: var(--ok);
}

.status--light::before {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(47, 122, 85, 0.14);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-block: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bronze-2);
  text-decoration: none;
}

.card-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- Seções ---------- */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section--rule {
  border-top: 1px solid var(--line);
}

.section--alt {
  background: var(--paper-2);
}

.section--navy {
  background: var(--navy);
  color: var(--on-navy);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* A sociedade */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.about-text .section-title {
  margin-bottom: 26px;
}

.about-text p:not(.eyebrow) {
  font-size: 1.05rem;
  color: var(--ink-2);
}

.about-text p:not(.eyebrow) + p {
  margin-top: 16px;
}

.principles {
  border-top: 1px solid var(--line-strong);
}

.principle {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.principle-num {
  grid-row: span 2;
  padding-top: 4px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bronze);
}

.principle h3 {
  font-size: 1.65rem;
}

.principle p {
  color: var(--ink-2);
}

/* Atuação */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  column-gap: 24px;
  padding: 32px 32px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-icon {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bronze-soft);
  color: var(--bronze-ink);
}

.service-icon .icon {
  width: 22px;
  height: 22px;
}

.service h3 {
  padding-top: 6px;
  font-size: 1.65rem;
}

.service p {
  margin-top: 10px;
  font-size: 0.98rem;
  color: var(--ink-2);
}

.services-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.86rem;
  color: var(--muted);
}

.services-note .icon {
  width: 18px;
  height: 18px;
  color: var(--bronze);
}

/* Atendimento */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--navy-line);
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 1px;
  background: var(--bronze-2);
}

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--bronze-2);
}

.step h3 {
  margin-top: 18px;
  font-size: 1.55rem;
  color: var(--on-navy);
}

.step p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--on-navy-muted);
}

/* Dados cadastrais */
.data-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.data-aside .section-intro {
  margin-top: 22px;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.data-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

.record {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.record-head h3 {
  font-size: 1.55rem;
}

.record-source {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}

.badge {
  flex: none;
  padding: 5px 12px;
  border: 1px solid rgba(168, 132, 74, 0.45);
  border-radius: 999px;
  background: var(--bronze-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.record-list {
  padding: 6px 28px 12px;
}

.record-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.record-row:last-child {
  border-bottom: 0;
}

.record-row dt {
  padding-top: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.record-row dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.record-row .meta {
  font-weight: 500;
  color: var(--muted);
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.contact-label .icon {
  width: 18px;
  height: 18px;
  color: var(--bronze);
}

.contact-value {
  padding-block: 4px;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-value:hover {
  color: var(--bronze-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-address {
  font-weight: 600;
  line-height: 1.6;
}

.contact-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-block: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bronze-ink);
  text-decoration: none;
}

.contact-more .icon {
  width: 16px;
  height: 16px;
}

.contact-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Rodapé ---------- */
.site-footer {
  padding: clamp(56px, 7vw, 80px) 0 32px;
  background: var(--navy-2);
  color: var(--on-navy-muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-brand p {
  max-width: 24rem;
  margin-top: 20px;
}

.footer-title {
  margin-bottom: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-2);
}

.footer-list {
  display: grid;
  gap: 4px;
}

.footer-list li {
  padding-block: 4px;
}

.footer-list a {
  display: inline-block;
  padding-block: 2px;
  color: var(--on-navy);
  text-decoration: none;
  overflow-wrap: anywhere;
  opacity: 0.88;
  transition: opacity 0.2s;
}

.footer-list a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-line);
  font-size: 0.82rem;
}

/* ---------- Páginas legais ---------- */
.legal-hero {
  padding: clamp(48px, 7vw, 80px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.legal-wrap {
  max-width: 720px;
  margin-inline: auto;
}

.legal-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  line-height: 1;
}

.legal-updated {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-body {
  padding: clamp(32px, 5vw, 48px) 0 clamp(64px, 8vw, 96px);
}

.legal-body > p,
.legal-body li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.legal-body > p + p {
  margin-top: 14px;
}

.legal-body h2 {
  margin: 44px 0 12px;
  font-size: 1.8rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.legal-body ul,
.legal-body ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 1.3em;
}

.legal-body ul + p,
.legal-body ol + p {
  margin-top: 14px;
}

.legal-body li::marker {
  color: var(--bronze);
}

.legal-body a {
  color: var(--bronze-ink);
  text-underline-offset: 3px;
}

.toc {
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
}

.toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.legal-body .toc ol {
  columns: 2;
  column-gap: 32px;
  display: block;
  margin-top: 12px;
}

.legal-body .toc li {
  margin-bottom: 6px;
  font-size: 0.93rem;
  line-height: 1.5;
  break-inside: avoid;
}

.legal-body .toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.legal-body .toc a:hover {
  color: var(--bronze-ink);
  text-decoration: underline;
}

.legal-box {
  margin-top: 48px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--bronze);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.legal-box strong {
  color: var(--ink);
}

/* Página 404 */
.notfound {
  padding: clamp(80px, 14vw, 160px) 0;
  text-align: center;
}

.notfound .eyebrow {
  justify-content: center;
}

.notfound h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
}

.notfound p:not(.eyebrow) {
  max-width: 30rem;
  margin: 16px auto 0;
  color: var(--ink-2);
}

.notfound .btn {
  margin-top: 32px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 28px 40px -28px rgba(18, 32, 58, 0.4);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .nav-open.site-header {
    background: var(--paper);
    border-bottom-color: var(--line);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }

  .nav-link::after {
    display: none;
  }

  .site-nav .btn {
    margin-top: 20px;
  }

  .hero-grid,
  .about-grid,
  .data-grid,
  .section-head,
  .services {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    align-items: start;
  }

  .hero::before {
    display: none;
  }

  .hero-card {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 1.3rem;
  }

  .brand-sub {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero-actions .btn,
  .data-actions .btn {
    flex: 1 1 auto;
  }

  .service {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 24px 26px;
  }

  .service-icon {
    grid-row: auto;
    margin-bottom: 20px;
  }

  .service h3 {
    padding-top: 0;
  }

  .service p,
  .step p,
  .principle p,
  .section-intro,
  .about-text p:not(.eyebrow) {
    font-size: 1rem;
  }

  .services,
  .steps,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-head,
  .record-list {
    padding-inline: 20px;
  }

  .record-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card {
    padding: 24px 22px;
  }

  .legal-body .toc ol {
    columns: 1;
  }

  .back-extra {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .brand-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
