/* =========================================================
   Atypical Tech — Design Tokens (HSL) + base utilities
   Spec: APPLYATYPICALDESIGN.md (Atypical Design System)
   ========================================================= */

/* ---------------------------------------------------------
   Inter, servido por nós.

   Vinha do Google Fonts como <link> no <head>, e uma folha de estilo de
   terceiros bloqueia o render: o browser tinha de resolver DNS, negociar TLS e
   descarregar o CSS noutro domínio antes de pintar o primeiro pixel. Media-se
   nos números: o FCP era 2,84–2,89 s nas cinco páginas medidas, praticamente
   igual independentemente do conteúdo — um custo que não vinha da página.

   O ficheiro é o mesmo para os quatro pesos porque o Inter é hoje uma fonte
   variável. Daí `font-weight: 100 900`: um só woff2 por subconjunto cobre o
   400, o 500, o 600 e o 700, e são 133 KB em vez dos 534 KB que quatro cópias
   do mesmo ficheiro custariam.

   `swap` para que o texto apareça imediatamente na fonte do sistema e troque
   quando o Inter chegar — nunca há um período de texto invisível.
   --------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit carrega os títulos (Design System Atypical: display/h1–h3). Mesmo esquema do
   Inter: fonte variável, um woff2 por subconjunto cobre 500–700, servida por nós. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Paleta do Design System Atypical (APPLYATYPICALDESIGN.md). Os HSL abaixo são conversões
   exatas dos hex do documento — ink #395061, accent #17739F (light) / #6FC2EA (dark),
   neutros com viés ~205°. Cada token existe nos DOIS temas; um componente nunca nomeia cor. */
:root {
  --background: 210 40% 98%;            /* page  #F8FAFC */
  --foreground: 205.5 26% 30.2%;        /* ink   #395061 */
  --card: 0 0% 100%;                    /* surface #FFFFFF */
  --card-foreground: 205.5 26% 30.2%;
  --popover: 0 0% 100%;                 /* raised #FFFFFF */
  --popover-foreground: 205.5 26% 30.2%;
  --primary: 199.4 74.7% 35.7%;         /* accent #17739F */
  --primary-foreground: 0 0% 100%;      /* #FFFFFF */
  --secondary: 205.7 33.3% 95.9%;       /* sunken #F1F5F8 */
  --secondary-foreground: 205.5 26% 30.2%;
  --muted: 205.7 33.3% 95.9%;           /* #F1F5F8 */
  --muted-foreground: 207.6 17.9% 40.6%; /* #55697A */
  --accent: 203.3 60% 94.1%;            /* accent-quiet #E7F2F9 */
  --accent-foreground: 199.4 74.7% 35.7%;
  --destructive: 3 54.3% 49.8%;         /* danger #C4413A */
  --destructive-foreground: 0 0% 100%;
  --border: 208.2 25.4% 86.9%;          /* hairline #D5DEE6 */
  --input: 207.5 20.7% 77.3%;           /* border-strong #B9C6D1 */
  --ring: 199.4 74.7% 35.7%;            /* accent #17739F */
  --radius: 0.625rem;                   /* md 10px */

  /* Elevação (design system: borda primeiro, sombra depois). Sombra tingida do ink
     #111A21 em vez de preto puro, para ficar na mesma família da paleta. */
  --shadow-1: 0 1px 2px rgb(17 26 33 / 0.06);
  --shadow-2: 0 2px 8px -2px rgb(17 26 33 / 0.10);
  --shadow-3: 0 8px 24px -6px rgb(17 26 33 / 0.16);
}

.dark {
  --background: 206.2 32% 9.8%;         /* page  #111A21 */
  --foreground: 205 33.3% 92.9%;        /* text  #E7EEF3 */
  --card: 205.7 30.4% 13.5%;            /* surface #18242D */
  --card-foreground: 205 33.3% 92.9%;
  --popover: 205.4 29.5% 17.3%;         /* raised #1F2E39 */
  --popover-foreground: 205 33.3% 92.9%;
  --primary: 199.5 74.5% 67.6%;         /* accent #6FC2EA */
  --primary-foreground: 206.2 32% 9.8%; /* inverte no dark: #111A21 */
  --secondary: 210 30.6% 19.2%;         /* inset #223140 */
  --secondary-foreground: 205 33.3% 92.9%;
  --muted: 210 30.6% 19.2%;
  --muted-foreground: 205.5 20.8% 68.8%; /* #9FB2C0 */
  --accent: 201.8 37.9% 17.1%;          /* accent-quiet: sky a 14% sobre a page */
  --accent-foreground: 199.5 74.5% 67.6%;
  --destructive: 5.4 78.9% 72.2%;       /* danger #F08A80 */
  --destructive-foreground: 206.2 32% 9.8%; /* inverte no dark */
  --border: 205.2 26.1% 23.3%;          /* #2C3E4B */
  --input: 206.2 24.2% 31.6%;           /* border-strong #3D5364 */
  --ring: 199.5 74.5% 67.6%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9375rem; /* body 15/24 na escala do design system */
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Escala tipográfica do design system: títulos em Outfit com tracking negativo;
   h4 fica em Inter 600, como o documento define. */
h1, h2, h3 {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* `<FocusOnNavigate Selector="h1">` no Routes.razor põe tabindex="-1" no título e foca-o,
   para que um leitor de ecrã anuncie a página nova. Com a home renderizada estaticamente
   isso passou a acontecer também no primeiro carregamento, e o Chromium desenhava um anel
   de foco azul à volta do <h1> — visível a cada visita.

   Só o anel é removido, não o foco: quem foi focado por código não chegou ali pelo teclado,
   então não precisa de ver onde está. Elementos realmente focáveis (tabindex >= 0, botões,
   links, campos) não são tocados por este seletor e mantêm o anel. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Container */
.container-x {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
  max-width: 1400px;
}
@media (min-width: 768px) { .container-x { padding-inline: 2rem; } }

/* Section */
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section-muted { background: hsl(var(--muted) / 0.3); }
.section-title {
  font-size: 1.875rem; line-height: 1.2; font-weight: 700;
  text-align: center; margin: 0 0 3rem;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-subtitle { color: hsl(var(--muted-foreground)); text-align: center; max-width: 42rem; margin: -2rem auto 3rem; }

/* Grid helpers */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Buttons */
/* Botões: 38px de altura (design system), rótulo Inter 500 a 14px, radius md. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 1rem; height: 2.375rem;
  border-radius: var(--radius); font-weight: 500; font-size: 0.875rem;
  transition: all 200ms;
  border: 1px solid transparent;
}
/* Anel de foco visível em tudo que é interativo: 2px de accent com 2px de offset.
   Campos de formulário têm o próprio halo (.input:focus) e não são afetados. */
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { background: hsl(var(--primary) / 0.9); }
.btn-outline { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-outline:hover { background: hsl(var(--accent)); }
.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--accent)); }
.btn-lg { height: 3rem; padding: 0 2rem; font-size: 1.125rem; }
/* "sm" encolhe o padding, não a altura: 38px é o alvo mínimo de clique. */
.btn-sm { height: 2.375rem; padding: 0 0.75rem; font-size: 0.8125rem; }
.btn-icon { width: 2.375rem; padding: 0; }
.btn-block { width: 100%; }

/* Cards */
.card-x {
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
}
.card-body { padding: 1.5rem; }
.card-hover { transition: all 300ms; }
.card-x { box-shadow: var(--shadow-1); }
.card-hover:hover {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: var(--shadow-2);
  transform: translateY(-4px);
}

/* Inputs */
.input, .textarea, .select-x {
  display: block; width: 100%;
  background: transparent; color: hsl(var(--foreground));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem; font-size: 0.875rem;
  transition: border-color 150ms, box-shadow 150ms;
}
.input:focus, .textarea:focus, .select-x:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}
.textarea { min-height: 6rem; resize: vertical; }
.label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
/* Campo inválido: a borda muda de cor mas o erro nunca é só cor — o texto sob o campo
   nomeia a correção (regra do design system). */
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: hsl(var(--destructive)); }
.field-error { margin: 0.375rem 0 0; font-size: 0.75rem; line-height: 1.4; color: hsl(var(--destructive)); }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.125rem 0.625rem; border-radius: 9999px;
  background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground));
  font-size: 0.75rem; font-weight: 500;
}

/* ============= Header ============= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (min-width: 768px) { .header-inner { height: 5rem; } }
.header-logo { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: hsl(var(--foreground)); display: inline-flex; align-items: center; }
.header-logo img { height: 40px; width: auto; display: block; }
/* Um asset por tema, em vez do filter invert que achatava as cores da marca: o light
   mostra o logo colorido de wordmark ink; o dark, a variante oficial de wordmark branco
   (logo_completo_vert_color_2). Cada tema esconde o logo do outro. */
.header-logo .logo-dark { display: none; }
.dark .header-logo .logo-light { display: none; }
.dark .header-logo .logo-dark { display: block; }
/* Com o CTA de agendamento a nav completa só cabe confortável a partir de 1280px;
   entre 1024 e 1279 os itens quebravam em duas linhas — abaixo disso é o menu mobile. */
.header-nav { display: none; gap: 0.25rem; align-items: center; }
@media (min-width: 1280px) { .header-nav { display: flex; } }
.header-nav button, .header-nav a.header-nav-link { color: hsl(var(--muted-foreground)); padding: 0.5rem 0.75rem; border-radius: var(--radius); font-size: 0.875rem; line-height: 1.25rem; white-space: nowrap; }
.header-nav .btn { white-space: nowrap; }
.header-nav button:hover, .header-nav a.header-nav-link:hover { color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.header-right { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .header-right { display: flex; } }
.lang-flags { display: flex; gap: 0.25rem; align-items: center; }
/* Force a color-emoji font so flag glyphs render as pictures — without this,
   some browsers (notably Windows via 'Segoe UI') resolve the regional-indicator
   codepoints to plain letters instead of deferring to the OS emoji font. */
/* Each language is a real link now, so the rules have to cover <a> as well as <button>. */
.lang-flags a { font-size: 1.25rem; line-height: 1; opacity: 0.5; padding: 0.125rem 0.375rem; transition: opacity 150ms; font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif; text-decoration: none; }
.lang-flags a.active { opacity: 1; }
.lang-flags a.lang-ca { display: inline-flex; align-items: center; padding: 0.125rem 0.375rem; }
.lang-flags a.lang-ca img {
  height: 0.95rem; width: auto; display: block;
  border: 1px solid hsl(var(--border)); border-radius: 2px;
}
.theme-toggle { min-width: 2.375rem; min-height: 2.375rem; display: inline-flex; align-items: center; justify-content: center; padding: 0.375rem; border-radius: var(--radius); color: hsl(var(--muted-foreground)); }
.theme-toggle:hover { color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.menu-btn { display: inline-flex; padding: 0.5rem; border-radius: var(--radius); }
@media (min-width: 1280px) { .menu-btn { display: none; } }

.mobile-menu {
  display: flex; flex-direction: column;
  border-top: 1px solid hsl(var(--border));
  padding: 0.5rem 0;
}
.mobile-menu button, .mobile-menu > a { display: block; padding: 0.75rem 1rem; text-align: left; color: hsl(var(--foreground)); text-decoration: none; }
.mobile-menu button:hover, .mobile-menu > a:hover { background: hsl(var(--accent)); }
.mobile-menu .lang-row { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid hsl(var(--border)); }
/* O CTA de agendamento no menu mobile: destacado dos itens de navegação. */
.mobile-menu .mobile-menu-cta {
  margin: 0.5rem 1rem;
  padding: 0.625rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 500;
}
.mobile-menu .mobile-menu-cta:hover { background: hsl(var(--primary) / 0.9); }

/* ============= Hero ============= */
/* O hero de imagem stock desfocada + overlay saiu; este é o padrão do /ai (fundo de
   accent, texto claro), agora global porque a home e as landings partilham a estética.
   Também levou consigo o hero-banner.jpg — o hero pesa zero bytes de asset. */
.hero-dark {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 8rem 0 4rem;
}
@media (min-width: 768px) { .hero-dark { padding: 10rem 0 5rem; } }
.hero-dark-inner { max-width: 52rem; }
.hero-badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  background: hsl(var(--primary-foreground) / 0.12);
  border: 1px solid hsl(var(--primary-foreground) / 0.25);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.hero-dark h1 {
  font-size: 2.25rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 1.25rem; max-width: 44rem;
}
@media (min-width: 768px) { .hero-dark h1 { font-size: 3.25rem; } }
.hero-dark p {
  font-size: 1.125rem; line-height: 1.6;
  color: hsl(var(--primary-foreground) / 0.85);
  max-width: 40rem; margin: 0 0 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
/* O .btn-primary global tem a mesma cor do fundo do hero — inverte para se destacar. */
.hero-ctas .btn-primary {
  background: hsl(var(--primary-foreground));
  color: hsl(var(--primary));
  border-color: transparent;
  box-shadow: 0 1px 2px hsl(0 0% 0% / 0.15);
}
.hero-ctas .btn-primary:hover { background: hsl(var(--primary-foreground) / 0.88); }
.hero-cta-secondary {
  border-color: hsl(var(--primary-foreground) / 0.4);
  color: hsl(var(--primary-foreground));
  background: transparent;
}
.hero-cta-secondary:hover {
  background: hsl(var(--primary-foreground) / 0.12);
  border-color: hsl(var(--primary-foreground) / 0.6);
}
/* Mais específico que `.hero-dark p` para vencer sem !important. */
.hero-dark .hero-footnote { font-size: 0.8125rem; color: hsl(var(--primary-foreground) / 0.6); margin: 0; max-width: none; }

/* ============= Stats bar ============= */
.stats-section { padding-block: 3rem; }
.stats {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  max-width: 60rem; margin: 0 auto; text-align: center;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); text-align: left; } }
.stat-value {
  font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em;
  color: hsl(var(--foreground)); line-height: 1; margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }

/* ============= Split de problema (kicker+título | prosa) ============= */
.split-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .split-2 { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split-2-title { font-size: 1.875rem; font-weight: 700; line-height: 1.2; margin: 0; }
@media (min-width: 768px) { .split-2-title { font-size: 2.25rem; } }
.split-2-p { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 1.25rem; }
.split-2-p:last-child { margin-bottom: 0; }

/* ============= Partners ============= */
.partners-block { margin-bottom: 3rem; }
.partners-block h3 { text-align: center; color: hsl(var(--muted-foreground)); font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 1.5rem; }
/* Todos os PNGs têm agora transparência real (netsuite e payhawk tinham fundo branco
   chapado no arquivo — corrigidos), então o logo wall dispensa chips e caixas:

   - Altura uniforme por fileira, e não largura: logos têm proporções díspares e a
     largura fixa (eram 420px!) fazia uns gritarem e outros sumirem.
   - Tema claro: partners em cores de marca (são os destaques clicáveis); tecnologias
     em cinza uniforme, cor plena no hover — o padrão sóbrio de logo wall.
   - Tema escuro: tudo vira silhueta branca (brightness 0 + invert). Funciona para
     qualquer marca com transparência e elimina os chips brancos que gritavam no dark. */
.partners-single { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2.5rem 3.5rem; }
.partners-single img { height: 3rem; width: auto; max-width: 100%; }
.tech-wall {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 1.75rem 3rem;
}
.tech-wall img {
  height: 2.25rem; width: auto; max-width: 9rem;
  object-fit: contain;
  filter: grayscale(1); opacity: 0.65;
  transition: filter 200ms, opacity 200ms;
}
.tech-wall img:hover { filter: none; opacity: 1; }
.dark .partners-block img { filter: brightness(0) invert(1); opacity: 0.85; }
.dark .partners-block img:hover { filter: brightness(0) invert(1); opacity: 1; }
/* Salesforce e SAP são formas preenchidas com o texto vazado por dentro — a silhueta
   branca as achata num bloco. As cores originais das duas já são legíveis no escuro. */
.dark .partners-block img[src*="salesforce"],
.dark .partners-block img[src*="sap-"] { filter: none; opacity: 0.9; }
.dark .partners-block img[src*="salesforce"]:hover,
.dark .partners-block img[src*="sap-"]:hover { filter: none; opacity: 1; }
.partner-tile {
  display: flex; align-items: center; justify-content: center;
  height: 4rem; background: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  font-weight: 500; font-size: 0.875rem; color: hsl(var(--muted-foreground));
  transition: border-color 200ms;
}
@media (min-width: 768px) { .partner-tile { height: 5rem; font-size: 1rem; } }
.partner-tile:hover { border-color: hsl(var(--primary) / 0.5); }

/* ============= Features ============= */
.feature-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.feature-icon svg { width: 1.75rem; height: 1.75rem; }
.feature-card { text-align: center; }
.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.5rem; }
.feature-card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin: 0; }

/* ============= Service cards (a seção #solutions da home) ============= */
/* O carrossel auto-rotativo que vivia aqui saiu (escondia 2/3 do conteúdo e girava sem
   controle de pausa); os serviços agora são cards estáticos, e cada um é um link. */
.service-card { display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.75rem; }
.service-card p { font-size: 0.9375rem; line-height: 1.6; margin: 0 0 1rem; }
.service-card-link {
  margin-top: auto;
  font-size: 0.875rem; font-weight: 600;
  color: hsl(var(--primary));
}

/* ============= Diagrama de fluxo (HTML/CSS, sem imagem) ============= */
/* Desktop: fontes → seta ⇄ → hub → seta → resultado, numa grelha de 5 colunas.
   Mobile: tudo empilha e as setas giram 90°. */
.flow-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: center;
  justify-items: center;
  max-width: 62rem;
  margin: 0 auto 1rem;
}
@media (min-width: 900px) {
  .flow-diagram { grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: 1rem; }
}
.flow-sources { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
.flow-node {
  width: 100%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 0.875rem 1rem;
  text-align: center;
}
.flow-node strong { display: block; font-size: 0.9375rem; font-weight: 600; }
.flow-node span { display: block; font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
.flow-hub {
  background: hsl(var(--accent));
  border-color: hsl(var(--primary) / 0.5);
  padding: 1.25rem 1rem;
}
.flow-hub strong { color: hsl(var(--accent-foreground)); font-size: 1.0625rem; }
.flow-out { border-left: 3px solid hsl(var(--primary)); }
.flow-arrow { width: 3rem; height: 1.5rem; color: hsl(var(--primary)); flex-shrink: 0; }
@media (max-width: 899.98px) { .flow-arrow { transform: rotate(90deg); } }
.flow-caption {
  text-align: center; font-size: 0.875rem; color: hsl(var(--muted-foreground));
  max-width: 40rem; margin: 0 auto 3rem;
}

/* ============= Passos do método ============= */
.process-step-head { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.75rem; }
.process-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 9999px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-size: 0.8125rem; font-weight: 700; flex-shrink: 0;
}
.process-step-head h3 { font-size: 1.0625rem; font-weight: 600; margin: 0; }
.process-step p { margin: 0; }

/* ============= Página institucional ============= */
.about-partner-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.about-company {
  max-width: 44rem; margin: 0 auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 2rem;
}
.about-company-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.5rem; }
/* Rótulo à esquerda, valor à direita a partir do tablet; empilhado no telemóvel, onde
   duas colunas obrigariam o endereço a quebrar em quatro linhas. */
.about-company-dl { display: grid; grid-template-columns: 1fr; gap: 0.25rem 1.5rem; margin: 1.5rem 0 0; }
@media (min-width: 640px) { .about-company-dl { grid-template-columns: auto 1fr; } }
.about-company-dl dt {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
  padding-top: 0.5rem;
}
.about-company-dl dd { margin: 0 0 0.75rem; font-size: 0.9375rem; }
@media (min-width: 640px) { .about-company-dl dd { padding-top: 0.4rem; margin-bottom: 0.5rem; } }
.about-company-dl dd:last-child { margin-bottom: 0; }
.about-company-dl a { color: hsl(var(--primary)); text-decoration: underline; }

/* ============= Banda final de CTA ============= */
.cta-band {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  border-radius: 1rem; padding: 3rem 2rem; text-align: center;
}
@media (min-width: 768px) { .cta-band { padding: 4rem 3rem; } }
/* Descendente, e não `.cta-band-kicker` sozinho: `.kicker` é declarado mais abaixo neste
   ficheiro e, com a mesma especificidade, ganhava por ordem — o rótulo saía em
   muted-foreground sobre o fundo de accent, ou seja, quase invisível. */
.cta-band .cta-band-kicker { color: hsl(var(--primary-foreground) / 0.75); }
.cta-band-title { font-size: 1.875rem; font-weight: 700; line-height: 1.2; margin: 0 0 1rem; }
@media (min-width: 768px) { .cta-band-title { font-size: 2.25rem; } }
.cta-band-subtitle {
  color: hsl(var(--primary-foreground) / 0.85);
  max-width: 40rem; margin: 0 auto 2rem;
  font-size: 1.0625rem; line-height: 1.6;
}
.cta-band-btn { background: hsl(var(--primary-foreground)); color: hsl(var(--primary)); }
.cta-band-btn:hover { background: hsl(var(--primary-foreground) / 0.9); }
.cta-band-footnote { font-size: 0.8125rem; color: hsl(var(--primary-foreground) / 0.6); margin: 1.25rem 0 0; }

/* ============= FAQ ============= */
.faq-card h3 { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.75rem; }
.faq-card p { color: hsl(var(--muted-foreground)); margin: 0; font-size: 0.9375rem; }

/* ============= Contact ============= */
.contact-grid { display: grid; gap: 2rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 1.5rem; height: 1.5rem; }
.contact-info-row .label-sm { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: hsl(var(--muted-foreground)); margin: 0 0 0.125rem; }
.contact-info-row .value { font-weight: 500; margin: 0; }

/* ============= Footer ============= */
.footer { background: hsl(var(--card)); border-top: 1px solid hsl(var(--border)); padding-block: 3rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer h4 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.75rem; }
.footer p, .footer a, .footer button { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.footer button { display: block; padding: 0.25rem 0; }
.footer-links a { display: block; padding: 0.25rem 0; text-decoration: none; }
.footer button:hover, .footer a:hover { color: hsl(var(--foreground)); }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground));
  transition: all 200ms;
}
.footer-socials a:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.footer-bottom {
  border-top: 1px solid hsl(var(--border)); margin-top: 2rem; padding-top: 1.5rem;
  text-align: center; font-size: 0.875rem; color: hsl(var(--muted-foreground));
}
.footer-bottom p { margin: 0; }
/* The LSSI identifying line: smaller and dimmer than the copyright, present but not shouting. */
.footer-legal-id { margin-top: 0.5rem; font-size: 0.8125rem; opacity: 0.85; }

/* ============= Page (blog/post) ============= */
.page-with-fixed-header { padding-top: 5rem; }
@media (min-width: 768px) { .page-with-fixed-header { padding-top: 6rem; } }

.blog-card { overflow: hidden; }
.blog-card .img-wrap { aspect-ratio: 16/9; overflow: hidden; background: hsl(var(--muted)); }
.blog-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms; }
.blog-card:hover .img-wrap img { transform: scale(1.05); }
.blog-card h3 {
  font-size: 1.125rem; font-weight: 600; margin: 0.75rem 0 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card .excerpt {
  color: hsl(var(--muted-foreground)); font-size: 0.875rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.search-row { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 42rem; margin: 0 auto 2rem; }
.search-row .with-icon { position: relative; flex: 1 1 auto; min-width: 200px; }
.search-row .with-icon svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: hsl(var(--muted-foreground)); }
.search-row .with-icon input { padding-left: 2.5rem; }
.search-row select { width: 100%; max-width: 12rem; }
/* O seletor de quantidade é o mais curto dos três controlos e o menos importante:
   fica com a largura do seu conteúdo e cede o espaço à busca, que é quem cresce. */
.search-row .select-narrow { max-width: 8rem; flex: 0 0 auto; }

/* Markdown content */
/* Artigo
   Duas medidas: a prosa fica numa largura confortável de leitura, e os elementos que
   ganham com espaço — tabelas, blocos de código, imagens — usam a largura cheia do
   artigo. Alinhados pela esquerda, então a diferença lê como intencional. */
.article { --prose: 46rem; max-width: 60rem; margin-inline: auto; }
.article-head { max-width: var(--prose); }
/* Capa do artigo em proporção natural. Antes era aspect-ratio:16/9 + object-fit:cover,
   que recortava as laterais: as capas são ~1.9:1, e nas que são diagrama o recorte
   cortava texto do próprio diagrama. Os atributos width/height no <img> reservam o
   espaço e evitam deslocamento de layout. */
.article-cover {
  width: 100%; height: auto;
  border-radius: var(--radius); margin-bottom: 1.5rem;
}
.article-title { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem); line-height: 1.15; margin: 0.75rem 0 0.5rem; }
.article-footer { max-width: var(--prose); }
.article-comments { --prose: 46rem; max-width: 60rem; margin-inline: auto; }
.article-comments > * { max-width: var(--prose); }

/* Approved comments render as highlighted cards: a muted tint plus a primary left
   accent bar so they stand out from the page in both light and dark themes (in dark,
   --card equals --background, so a plain card would not read as distinct). */
.comment-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.comment {
  display: flex;
  gap: 0.875rem;
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--primary));
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.comment-avatar {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.comment-content { flex: 1 1 auto; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.comment-author { font-weight: 600; }
.comment-body { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }

.content-html {
  line-height: 1.7;
  /* A seção de fontes lista URLs cruas, que o autolink do Markdig transforma em <a>.
     São tokens sem ponto de quebra: sem isto, uma URL longa empurra a página inteira
     para o lado no mobile — 880px de scrollWidth num viewport de 390px. */
  overflow-wrap: break-word;
}
.content-html a { overflow-wrap: anywhere; }
.content-html > p,
.content-html > ul,
.content-html > ol,
.content-html > h2,
.content-html > h3,
.content-html > h4,
.content-html > blockquote { max-width: var(--prose, 46rem); }
.content-html h2 { margin-top: 2rem; }
.content-html h3 { margin-top: 1.5rem; }
.content-html pre { background: hsl(var(--muted)); padding: 1rem; border-radius: var(--radius); overflow-x: auto; }
.content-html code { background: hsl(var(--muted)); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; }
.content-html pre code { background: transparent; padding: 0; }
.content-html blockquote { border-left: 3px solid hsl(var(--border)); padding-left: 1rem; color: hsl(var(--muted-foreground)); margin-inline: 0; }
.content-html a { color: hsl(var(--primary)); text-decoration: underline; }
.content-html img { border-radius: var(--radius); margin: 1.5rem 0; }

/* Tabelas de conteúdo
   O markdown não tinha estilo algum aqui — saía com o default do browser, sem borda
   nem padding. O contêiner rolável vem do MarkdownRenderer.WrapTables. */
.table-scroll {
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Evita que o swipe horizontal na tabela vire o gesto de "voltar" do navegador. */
  overscroll-behavior-x: contain;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.content-html table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
  /* Faz a tabela rolar dentro do contêiner em vez de esmagar as colunas no mobile. */
  min-width: 36rem;
}
.content-html thead th {
  background: hsl(var(--muted));
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.content-html th,
.content-html td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: top;
}
.content-html thead th + th,
.content-html tbody td + td { border-left: 1px solid hsl(var(--border)); }
.content-html tbody tr:nth-child(even) { background: hsl(var(--muted) / 0.35); }
.content-html tbody tr:last-child td { border-bottom: 0; }
.content-html table code { white-space: nowrap; }

@media (max-width: 640px) {
  .content-html table { font-size: 0.875rem; min-width: 30rem; }
  .content-html th, .content-html td { padding: 0.5rem 0.625rem; }
}

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: 0.75rem 1rem; box-shadow: var(--shadow-3);
  max-width: 24rem;
}
.toast.error { border-color: hsl(var(--destructive)); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.25rem; margin-top: 2rem; }
/* <a> para as páginas e <span> para a atual e para as pontas — eram <button>, que
   nenhum crawler segue. O inline-flex repõe a centragem que o botão dava de graça. */
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.375rem; height: 2.375rem; padding: 0 0.75rem;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--background));
  color: inherit; text-decoration: none;
}
.pagination .active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.pagination .disabled { opacity: 0.5; cursor: not-allowed; }

/* Utils */
/* Rótulo de seção em caps (o "label" da escala tipográfica). Antes era o mesmo
   style= inline repetido em cada página; agora as páginas só dizem o quê, não o como. */
.kicker {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.75rem;
}
.kicker-loose { margin-bottom: 1.5rem; }
.text-muted-fg { color: hsl(var(--muted-foreground)); }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none; }
.block { display: block; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.blazor-error-boundary {
  background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground));
  padding: 1rem; border-radius: var(--radius);
}
.blazor-error-boundary::after { content: "An error has occurred."; }

/* ============= Oferta de idioma ============= */
/* Fixa no rodapé, e não no topo em fluxo, por dois motivos aprendidos em produção:
   o `.header` é `position: fixed` e cobria a faixa por inteiro, e estando no fluxo ela
   empurrava o `main` 38px para baixo enquanto o header ficava pinado — conteúdo
   desalinhado e faixa invisível. Fora do fluxo não empurra nada e não disputa espaço
   com o header nem com o `.celigo-topbar` do BareLayout. */
.lang-offer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: hsl(var(--accent));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -1px 4px rgb(17 26 33 / 0.06);
  font-size: 0.875rem;
}
.lang-offer-inner {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 1rem; min-height: 2.25rem;
}
.lang-offer a { color: hsl(var(--foreground)); text-decoration: none; font-weight: 500; }
.lang-offer a:hover { text-decoration: underline; }
.lang-offer a.lang-offer-dismiss {
  margin-left: auto; padding: 0.125rem 0.5rem; border-radius: var(--radius);
  color: hsl(var(--muted-foreground)); font-weight: 400; line-height: 1;
}
.lang-offer a.lang-offer-dismiss:hover {
  color: hsl(var(--foreground)); background: hsl(var(--background)); text-decoration: none;
}

/* Cookie consent banner. Built by analytics.js rather than by a component, so these classes
   are referenced only from there — see the comment at the top of that file for why. */
.consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -1px 6px rgb(17 26 33 / 0.08);
  font-size: 0.875rem;
}
.consent-banner-text { margin: 0; flex: 1 1 20rem; color: hsl(var(--muted-foreground)); }
.consent-banner-link { color: hsl(var(--primary)); text-decoration: underline; }
.consent-banner-actions { display: flex; gap: 0.5rem; margin-left: auto; }

/* Medido num viewport de 390x844: a faixa ocupava 165px, ou 19,5% do primeiro ecrã. Tipo a
   13px e alturas mais justas põem-na em 138px (16,4%) — os botões passam a dividir a largura
   em vez de ficarem numa linha própria. O texto não é tocado, e o botão de recusar mantém o
   mesmo peso visual do de aceitar, como a AEPD exige. O ganho maior está na regra abaixo:
   era a sobreposição com a oferta de idioma que fazia as duas somarem quase um terço do ecrã. */
@media (max-width: 640px) {
  .consent-banner { padding: 0.625rem 0.875rem; gap: 0.5rem; font-size: 0.8125rem; line-height: 1.45; }
  .consent-banner-text { flex: 1 1 100%; }
  .consent-banner-actions { width: 100%; margin-left: 0; }
  .consent-banner-actions .btn { flex: 1 1 0; height: 2.125rem; }
}

/* Uma só barra fixa no fundo: com a de cookies aberta, a oferta de idioma sai da frente
   (a classe vem do analytics.js, que é quem constrói a faixa de consentimento). */
.has-consent-banner .lang-offer { display: none; }

/* Consent checkbox on the contact and comment forms.
   The box keeps its native size so the affordance is obvious and the hit target is real;
   the label sits beside it and the informational note underneath in muted, smaller type. */
.consent-field { margin-bottom: 1rem; }
.consent-check { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; line-height: 1.4; }
.consent-check input[type="checkbox"] { margin-top: 0.15rem; flex: 0 0 auto; width: 1rem; height: 1rem; }
.consent-check a { color: hsl(var(--primary)); text-decoration: underline; }
.consent-note { margin: 0.5rem 0 0; font-size: 0.75rem; line-height: 1.5; color: hsl(var(--muted-foreground)); }

/* Legal pages: a readable measure, a table that scrolls on small screens, and a linked
   table of contents. Kept token-driven so it inverts with the dark theme like everything else. */
.legal-container { padding-block: 3rem 4rem; }
.legal-page { max-width: 52rem; margin: 0 auto; }
.legal-header h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.75rem; }
.legal-summary { color: hsl(var(--muted-foreground)); font-size: 1.05rem; line-height: 1.6; margin: 0 0 0.5rem; }
.legal-updated { color: hsl(var(--muted-foreground)); font-size: 0.8125rem; margin: 0 0 2rem; }
.legal-toc {
  background: hsl(var(--muted) / 0.4); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2.5rem;
}
.legal-toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.legal-toc a { color: hsl(var(--primary)); text-decoration: none; font-size: 0.9rem; }
.legal-toc a:hover { text-decoration: underline; }
.legal-section { margin-bottom: 2.5rem; scroll-margin-top: 5rem; }
.legal-section h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.legal-section-number { color: hsl(var(--muted-foreground)); font-weight: 600; margin-right: 0.25rem; }
.legal-section p { line-height: 1.7; margin: 0 0 0.75rem; }
.legal-section a { color: hsl(var(--primary)); text-decoration: underline; }
.legal-list { margin: 0 0 0.75rem; padding-left: 1.25rem; display: grid; gap: 0.4rem; line-height: 1.6; }
.legal-table-wrap { overflow-x: auto; margin: 0.5rem 0 0.75rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 30rem; }
.legal-table th, .legal-table td {
  border: 1px solid hsl(var(--border)); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top;
}
.legal-table thead th { background: hsl(var(--muted) / 0.5); font-weight: 600; }
.legal-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
