/* William Müller Advocacia, folha de estilo das páginas internas
   Identidade: off-white #FAFAF8, dourado #B8934A, grafite #1C1C1C
   Tipografia (dez/2026): Source Serif 4 (títulos) + Figtree (texto). A marca segue em Cormorant Garamond. */

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

:root{
  --black:#1C1C1C; --surface:#F4F2EE; --surface2:#E8E5DF; --border:#DCD7CE;
  --gold:#B8934A; --gold-lt:#CDA55E; --gold-dk:#8C6C30; --white:#FAFAF8; --paper:#FFFFFF; --dark:#1C1C1C;
  --muted:#625E57; --graphite:#2E2E2E;
  --font-brand:'Cormorant Garamond',Georgia,serif;
  --font-display:'Source Serif 4',Georgia,'Times New Roman',serif;
  --font-body:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;
  --nav-h:122px;
}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--nav-h) + 16px)}
body{background:var(--white);color:var(--dark);font-family:var(--font-body);line-height:1.7;font-size:17px;overflow-x:hidden;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto}
a{color:var(--gold-dk)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* ---------- NAV ---------- */
nav{position:sticky;top:0;z-index:100;background:rgba(250,250,248,.95);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}
.nav-row-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 5vw;max-width:1280px;margin:0 auto}
.nav-logo{font-family:var(--font-brand);font-weight:500;font-size:clamp(1.1rem,3.4vw,1.45rem);letter-spacing:.04em;color:var(--dark);text-decoration:none;flex-shrink:0;white-space:nowrap}
.nav-logo span{color:var(--gold)}
.nav-cta{flex-shrink:0;font-size:clamp(.72rem,2.2vw,.82rem);font-weight:600;letter-spacing:.06em;color:#fff;background:var(--black);border:1px solid var(--black);padding:.7rem 1.15rem;text-decoration:none;transition:background .25s,border-color .25s;white-space:nowrap;border-radius:2px}
.nav-cta:hover{background:var(--gold-dk);border-color:var(--gold-dk)}
.nav-row-bottom{border-top:1px solid var(--border);padding:.5rem 5vw;overflow-x:auto;scrollbar-width:none}
.nav-row-bottom::-webkit-scrollbar{display:none}
.nav-links{display:flex;justify-content:center;gap:clamp(1rem,3vw,2.2rem);list-style:none;max-width:1280px;margin:0 auto}
.nav-links a{font-size:clamp(.78rem,2vw,.86rem);font-weight:500;color:var(--muted);text-decoration:none;white-space:nowrap;transition:color .2s;padding:.2rem 0;border-bottom:2px solid transparent}
.nav-links a:hover{color:var(--dark)}
.nav-links a[aria-current]{color:var(--dark);border-bottom-color:var(--gold)}

/* ---------- CABEÇALHO DA PÁGINA ---------- */
.page-head{background:var(--black);color:#fff;padding:4.6rem 5vw 3.4rem;position:relative;overflow:hidden}
.page-head::after{content:"";position:absolute;right:-60px;top:-80px;width:360px;height:360px;border:1px solid rgba(184,147,74,.16);transform:rotate(45deg);pointer-events:none}
.page-head-inner{max-width:1120px;margin:0 auto;position:relative;z-index:1}
.breadcrumb{font-size:.8rem;color:rgba(255,255,255,.6);margin-bottom:1.4rem}
.breadcrumb a{color:var(--gold-lt);text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{margin:0 .5rem;opacity:.5}
.page-head h1{font-family:var(--font-display);font-weight:600;font-size:clamp(2rem,4.6vw,3.1rem);line-height:1.15;letter-spacing:-.015em;max-width:24ch}
.page-head h1 em{font-style:italic;font-weight:500;color:var(--gold-lt)}
.page-head .lede{margin-top:1.3rem;max-width:62ch;font-size:1.12rem;line-height:1.75;color:rgba(255,255,255,.78)}
.page-head-line{display:none}

/* linha de data, tema, tempo de leitura e autor */
.meta-bar{border-bottom:1px solid var(--border);background:var(--paper)}
.meta{max-width:1120px;margin:0 auto;padding:1rem 5vw;display:flex;flex-wrap:wrap;align-items:center;gap:.35rem 1.1rem;font-size:.86rem;color:var(--muted)}
.meta > *{display:inline-flex;align-items:center;white-space:nowrap}
.meta > * + *::before{content:"";width:4px;height:4px;background:var(--gold);transform:rotate(45deg);margin-right:.7rem}
.meta strong{color:var(--dark);font-weight:600}
.meta a{color:var(--gold-dk);text-decoration:none;font-weight:600}
.meta a:hover{text-decoration:underline}
@media(min-width:1100px){.meta{padding-left:0;padding-right:0}}

/* ---------- ESTRUTURA: TEXTO + COLUNA LATERAL ---------- */
main{padding:3.4rem 5vw 5rem}
.layout{max-width:1120px;margin:0 auto}
.col-main{min-width:0}
.sidebar{display:none}
@media(min-width:1100px){
  .layout.has-aside{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:72px;align-items:start}
  .sidebar{display:block;position:sticky;top:calc(var(--nav-h) + 24px);max-height:calc(100vh - var(--nav-h) - 48px);overflow:auto;scrollbar-width:thin}
  .toc-mobile{display:none}
}
article{max-width:720px;margin:0 auto}
.layout.has-aside article,.layout.has-aside .cta-block,.layout.has-aside .relacionados{margin-left:0;margin-right:0;max-width:740px}

/* índice lateral */
.toc{border-top:2px solid var(--gold);padding-top:1rem}
.toc-title{font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--dark);margin-bottom:.7rem}
.toc ol{list-style:none;border-left:1px solid var(--border)}
.toc li a{display:block;padding:.42rem .2rem .42rem 1rem;margin-left:-1px;border-left:2px solid transparent;font-size:.88rem;line-height:1.4;color:var(--muted);text-decoration:none;transition:color .2s,border-color .2s,background .2s}
.toc li a:hover{color:var(--dark)}
.toc li a.ativo{color:var(--dark);font-weight:600;border-left-color:var(--gold);background:rgba(184,147,74,.08)}
.side-cta{margin-top:1.8rem;background:var(--black);color:#fff;padding:1.5rem 1.4rem}
.side-cta p{font-size:.9rem;line-height:1.6;color:rgba(255,255,255,.75);margin-bottom:1rem}
.side-cta .side-cta-title{font-family:var(--font-display);font-size:1.2rem;font-weight:600;color:#fff;margin-bottom:.5rem;line-height:1.3}
.side-cta a{display:block;text-align:center;text-decoration:none;font-size:.86rem;font-weight:600;padding:.75rem 1rem;border-radius:2px}
.side-cta a.wa{background:var(--gold);color:#1C1C1C;margin-bottom:.55rem}
.side-cta a.wa:hover{background:var(--gold-lt)}
.side-cta a.mail{color:var(--gold-lt);border:1px solid rgba(205,165,94,.45)}
.side-cta a.mail:hover{border-color:var(--gold-lt)}

/* índice no celular */
.toc-mobile{border:1px solid var(--border);background:var(--paper);margin:0 0 2.4rem}
.toc-mobile summary{cursor:pointer;list-style:none;padding:1rem 1.2rem;font-size:.82rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;display:flex;justify-content:space-between;align-items:center}
.toc-mobile summary::-webkit-details-marker{display:none}
.toc-mobile summary::after{content:"+";font-size:1.3rem;color:var(--gold);font-weight:400;transition:transform .2s}
.toc-mobile[open] summary::after{transform:rotate(45deg)}
.toc-mobile ol{list-style:none;padding:0 1.2rem 1rem;counter-reset:t}
.toc-mobile li{counter-increment:t;border-top:1px solid var(--surface2)}
.toc-mobile li a{display:flex;gap:.7rem;padding:.6rem 0;font-size:.95rem;line-height:1.4;color:var(--graphite);text-decoration:none}
.toc-mobile li a::before{content:counter(t);color:var(--gold-dk);font-weight:700;font-size:.82rem;min-width:1.1rem;padding-top:.1rem}

/* ---------- CONTEÚDO ---------- */
article h2{font-family:var(--font-display);font-weight:600;font-size:clamp(1.55rem,3.4vw,2.05rem);line-height:1.22;color:var(--dark);margin:3.2rem 0 1.1rem;letter-spacing:-.012em}
article > h2:first-child,article > .resumo:first-child + h2{margin-top:0}
article h2 em{font-style:italic;font-weight:500;color:var(--gold-dk)}
article h3{font-family:var(--font-display);font-weight:600;font-size:clamp(1.2rem,2.6vw,1.38rem);line-height:1.3;color:var(--dark);margin:2.3rem 0 .7rem}
article p{color:var(--graphite);margin-bottom:1.2rem;font-size:1.1rem;line-height:1.78}
article strong,article b{color:var(--dark);font-weight:600}
article ul,article ol{margin:0 0 1.5rem 0;padding-left:0;list-style:none}
article ol{counter-reset:li}
article ul li,article ol li{position:relative;padding-left:1.8rem;margin-bottom:.8rem;color:var(--graphite);font-size:1.08rem;line-height:1.75}
article ul li::before{content:"";position:absolute;left:.2rem;top:.72em;width:6px;height:6px;background:var(--gold);transform:rotate(45deg)}
article ol li{counter-increment:li}
article ol li::before{content:counter(li);position:absolute;left:0;top:.15em;width:1.3rem;height:1.3rem;border:1px solid var(--gold);color:var(--gold-dk);font-size:.72rem;font-weight:700;display:flex;align-items:center;justify-content:center;border-radius:50%}
article a{color:var(--gold-dk);text-decoration:underline;text-decoration-color:rgba(140,108,48,.4);text-underline-offset:3px;text-decoration-thickness:1px}
article a:hover{text-decoration-color:var(--gold-dk)}

/* caixa de resumo no topo */
.resumo{background:var(--paper);border:1px solid var(--border);border-left:4px solid var(--gold);padding:1.6rem 1.7rem 1.4rem;margin:0 0 2.6rem}
.resumo .resumo-title{display:block;font-size:.76rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-dk);margin-bottom:.6rem}
.resumo p{font-size:1.06rem;line-height:1.72;margin-bottom:.8rem}
.resumo p:last-child{margin-bottom:0}

.callout{border:1px solid var(--border);border-left:4px solid var(--gold);background:var(--surface);padding:1.6rem 1.7rem;margin:2.4rem 0}
.callout p{font-size:1.05rem}
.callout p:last-child{margin-bottom:0}
.callout .callout-title{font-family:var(--font-display);font-size:1.22rem;color:var(--dark);margin-bottom:.6rem;display:block;font-weight:600}

.prazo-box{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;background:var(--border);border:1px solid var(--border);margin:2.4rem 0}
.prazo-box div{background:var(--paper);padding:1.5rem 1.3rem}
.prazo-box strong{display:block;font-family:var(--font-display);font-size:1.6rem;color:var(--gold-dk);line-height:1.15;margin-bottom:.45rem;font-weight:600}
.prazo-box span{font-size:.92rem;line-height:1.65;color:var(--muted);display:block}

table{width:100%;border-collapse:collapse;margin:2rem 0;font-size:.96rem;background:var(--paper)}
table th,table td{border:1px solid var(--border);padding:.85rem 1rem;text-align:left;vertical-align:top;line-height:1.6}
table th{background:var(--black);font-weight:600;color:#fff;font-size:.82rem;letter-spacing:.04em}
table td{color:var(--graphite)}
table tr:nth-child(even) td{background:#FBFAF7}

/* ---------- FAQ ---------- */
.faq-item{border-bottom:1px solid var(--border)}
.faq-item:first-of-type{border-top:1px solid var(--border)}
.faq-q{display:flex;justify-content:space-between;align-items:flex-start;gap:1.2rem;padding:1.25rem 0;cursor:pointer;font-family:var(--font-display);font-weight:600;font-size:1.16rem;color:var(--dark);line-height:1.4}
.faq-q:hover{color:var(--gold-dk)}
.faq-icon{color:var(--gold);font-size:1.3rem;line-height:1;flex-shrink:0;transition:transform .25s;font-family:var(--font-body);font-weight:400}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease;color:var(--graphite);font-size:1.04rem;line-height:1.78}
.faq-item.open .faq-a{max-height:1400px;padding-bottom:1.4rem}
.faq-item.open .faq-icon{transform:rotate(45deg)}

/* ---------- AUTOR ---------- */
.autor{display:grid;grid-template-columns:88px 1fr;gap:1.3rem;align-items:start;margin:3.4rem 0 0;padding:1.6rem;border:1px solid var(--border);background:var(--paper)}
.autor img{width:88px;height:88px;object-fit:cover;border-radius:50%;filter:grayscale(15%)}
.autor .autor-label{display:block;font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-dk);margin-bottom:.25rem}
.autor .autor-nome{font-family:var(--font-display);font-size:1.25rem;font-weight:600;color:var(--dark);margin-bottom:.4rem;display:block}
article .autor p{font-size:.96rem;line-height:1.65;margin-bottom:.5rem;color:var(--muted)}
article .autor p:last-child{margin-bottom:0}
@media(max-width:520px){.autor{grid-template-columns:1fr}.autor img{width:72px;height:72px}}

/* ---------- CTA ---------- */
.cta-block{background:var(--black);color:#fff;padding:3rem 2.2rem;margin:3.6rem auto 0;max-width:720px;text-align:center}
.cta-block h2{font-family:var(--font-display);font-weight:600;font-size:clamp(1.5rem,3.6vw,2rem);color:#fff;margin:0 0 1rem;line-height:1.25}
.cta-block h2 em{font-style:italic;font-weight:500;color:var(--gold-lt)}
.cta-block p{color:rgba(255,255,255,.75);max-width:520px;margin:0 auto 1.8rem;font-size:1.02rem;line-height:1.75}
.btn-primary{display:inline-block;background:var(--gold);color:#1C1C1C;padding:.95rem 1.8rem;font-size:.9rem;font-weight:600;text-decoration:none;border:1px solid var(--gold);transition:background .25s;border-radius:2px}
.btn-primary:hover{background:var(--gold-lt);border-color:var(--gold-lt)}
.btn-ghost{display:inline-block;color:var(--gold-lt);padding:.95rem 1.8rem;font-size:.9rem;font-weight:600;text-decoration:none;border:1px solid rgba(205,165,94,.45);transition:border-color .25s;border-radius:2px}
.btn-ghost:hover{border-color:var(--gold-lt)}
.cta-actions{display:flex;flex-wrap:wrap;gap:.9rem;justify-content:center}

/* ---------- LINKS RELACIONADOS ---------- */
.relacionados{max-width:720px;margin:3.6rem auto 0}
.relacionados h2{font-family:var(--font-display);font-weight:600;font-size:1.6rem;margin-bottom:1.3rem}
.rel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1px;background:var(--border);border:1px solid var(--border)}
.rel-grid a{background:var(--paper);padding:1.4rem 1.35rem;text-decoration:none;display:block;transition:background .25s;border:0}
.rel-grid a:hover{background:var(--surface)}
.rel-grid strong{display:block;font-family:var(--font-display);font-size:1.1rem;color:var(--dark);margin-bottom:.35rem;font-weight:600;line-height:1.35}
.rel-grid span{font-size:.92rem;color:var(--muted);line-height:1.6;display:block}
article .rel-grid a{text-decoration:none}

/* ---------- RODAPÉ ---------- */
footer{background:var(--surface);border-top:1px solid var(--border);padding:3.4rem 5vw;text-align:center}
.footer-name{font-family:var(--font-brand);font-weight:500;font-size:1.45rem;color:var(--dark);margin-bottom:1.4rem}
.footer-name span{color:var(--gold)}
.footer-links{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem 1.6rem;margin-bottom:1.4rem}
.footer-links a{font-size:.86rem;font-weight:500;color:var(--muted);text-decoration:none}
.footer-links a:hover{color:var(--dark)}
.footer-nap{font-size:.88rem;line-height:1.9;color:var(--muted)}
.footer-nap a{color:var(--muted);text-decoration:none;border-bottom:1px solid var(--border)}
.footer-nap a:hover{color:var(--dark)}
.footer-legal{margin-top:1.2rem;font-size:.8rem;color:var(--muted);line-height:1.8;max-width:680px;margin-left:auto;margin-right:auto}

@media(max-width:768px){
  :root{--nav-h:112px}
  body{font-size:16px}
  .page-head{padding:3.2rem 5vw 2.6rem}
  .page-head .lede{font-size:1.04rem}
  main{padding:2.4rem 5vw 3.6rem}
  article p{font-size:1.06rem;line-height:1.75}
  article ul li,article ol li{font-size:1.04rem}
  .resumo,.callout{padding:1.3rem 1.2rem}
  .cta-block{padding:2.4rem 1.4rem}
  .nav-row-top{padding:.75rem 5vw}
  .nav-links{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ---------- TABELAS LARGAS EM TELA PEQUENA ---------- */
.tabela-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:2rem 0;border:0}
.tabela-scroll table{margin:0;min-width:560px}
@media(max-width:600px){
  table{font-size:.88rem}
  table th,table td{padding:.6rem .6rem}
}

/* texto corrido justificado, com hifenização para evitar espaços largos */
article p,article li,.page-head .lede,.faq-a,.callout p,.resumo p{text-align:justify;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:7 3 3}
article .nota-trechos{text-align:justify}
.toc li,.toc-mobile li,.rel-grid span,.autor p{text-align:left;-webkit-hyphens:manual;hyphens:manual}
.nh{-webkit-hyphens:none;hyphens:none}

@media print{nav,.sidebar,.toc-mobile,.cta-block,.relacionados,footer{display:none}.page-head{background:none;color:#000}.page-head h1,.page-head .lede{color:#000}}

/* índice de artigos: grade mais larga */
article.indice{max-width:1120px}
article.indice .rel-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
article.indice h2{margin-top:3.6rem}

/* índice do celular: não herdar o marcador das listas do texto */
article .toc-mobile ol li{padding-left:0;margin-bottom:0;font-size:inherit;text-align:left}
article .toc-mobile ol li::before{content:none;display:none}
article .toc-mobile li a{text-decoration:none;text-align:left}

/* faixa de data/autor: manter os espaços entre texto e links */
.meta > *{display:inline;white-space:nowrap}
.meta > * + *::before{display:inline-block;vertical-align:middle;position:relative;top:-1px}
