/* ============================================================
   Daleu Studio — landing page
   Design tokens transcribed from "Daleu Editorial.dc.html".
   Editorial: hairline rules, one blue accent, generous type. Claro e escuro
   são definidos só no nível dos tokens — nenhum componente abaixo redefine
   cor por tema. Toda cor é pintada explicitamente.
   ============================================================ */

/* ---------- Tema claro (padrão) ---------- */

:root {
  color-scheme: light;

  /* Accent — overridable at runtime via CONFIG.accent in app.js */
  --accent: #1B45D7;
  --on-accent: #FFFFFF;
  --accent-tint: #EFF2FE;
  --tint-base: #FFFFFF;
  --tint-pct: 9%;

  /* Ink + prose greys, biased slightly cool to sit with the blue */
  --ink: #0E0E10;
  --body: #55555E;
  --body-strong: #4A4A52;
  --body-soft: #6A6A72;
  --muted: #7A7A82;
  --muted-soft: #9A9AA2;

  /* Structure */
  --line: #E7E7EA;
  --line-strong: #D6D6DB;
  --bg: #FFFFFF;
  --header-bg: rgba(255, 255, 255, 0.92);
  --surface: #F4F4F6;
  --surface-soft: #FAFAFB;

  /* Status */
  --live: #12A150;
  --alert: #C4262E;

  /* Layout */
  --nav-breakout: calc(-1 * var(--shell-pad));
  --shell-max: 1440px;
  --shell-pad: clamp(20px, 5vw, 72px);
  --section-pad: clamp(48px, 7vw, 100px);
  --header-h: 79px;
}

/* ---------- Tema escuro ----------
   Só os tokens mudam; nenhum componente é redefinido aqui. O bloco aparece
   duas vezes de propósito: a media query atende quem está no "sistema" (o
   estado padrão, sem marcação no html), e o [data-theme] atende a escolha
   explícita do botão — inclusive escolher claro num sistema escuro.
   O acento sobe de tom para funcionar sobre fundo escuro, e por isso o texto
   sobre ele passa a ser escuro (--on-accent). */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --accent: #7A97FF;
    --on-accent: #0B0F1F;
    --accent-tint: #1C2440;
    --tint-base: #0E0E10;
    --tint-pct: 22%;

    --ink: #F2F2F4;
    --body: #A6A6B0;
    --body-strong: #C6C6CE;
    --body-soft: #9C9CA6;
    --muted: #8A8A94;
    --muted-soft: #7C7C87;

    --line: #26262C;
    --line-strong: #3A3A43;
    --bg: #0E0E10;
    --header-bg: rgba(14, 14, 16, 0.92);
    --surface: #17171B;
    --surface-soft: #1B1B20;

    --live: #3ECF8E;
    --alert: #FF6B6B;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --accent: #7A97FF;
  --on-accent: #0B0F1F;
  --accent-tint: #1C2440;
  --tint-base: #0E0E10;
  --tint-pct: 22%;

  --ink: #F2F2F4;
  --body: #A6A6B0;
  --body-strong: #C6C6CE;
  --body-soft: #9C9CA6;
  --muted: #8A8A94;
  --muted-soft: #7C7C87;

  --line: #26262C;
  --line-strong: #3A3A43;
  --bg: #0E0E10;
  --header-bg: rgba(14, 14, 16, 0.92);
  --surface: #17171B;
  --surface-soft: #1B1B20;

  --live: #3ECF8E;
  --alert: #FF6B6B;
}

/* Mantém o tint do status atrelado ao acento quando CONFIG.accent muda.
   Os literais acima ficam como fallback e como o valor exato do design. */
@supports (background: color-mix(in srgb, red 9%, white)) {
  :root { --accent-tint: color-mix(in srgb, var(--accent) var(--tint-pct), var(--tint-base)); }
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure { margin: 0; }

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover { opacity: 0.65; }

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection { background: var(--accent); color: var(--on-accent); }

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

/* Sticky header would otherwise cover anchored section headings */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Shared primitives ---------- */

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  opacity: 1;
}

/* Uppercase eyebrow — 12px tier */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.eyebrow--accent {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
}

.eyebrow--accent::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

/* Uppercase micro label — 11px tier */
.microlabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

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

/* Section head: title left, eyebrow right, sharing a baseline */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

/* Two-column "label left / content right" split used by Context + Studio */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Pill buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.btn:hover { opacity: 0.85; }

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--ink { background: var(--ink); color: var(--bg); }

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

.btn--outline:hover {
  opacity: 1;
  background: var(--surface-soft);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
}

/* :not(.nav-cta) mantém esta regra fora do botão de contato. Sem isso ela
   tem especificidade (0,1,1) contra (0,1,0) do .nav-cta e sobrescreve a cor
   do texto dele — preto sobre preto. */
.site-nav a:not(.nav-cta) {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}

/* Language switcher */
.langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-left: 6px;
}

.lang-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-btn:hover { color: var(--ink); }

.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

/* Agrupa o seletor de idioma e o botão de tema */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Mostra o ícone do tema para o qual o clique vai levar. Puro CSS, então
   funciona antes do JS carregar e sem JS nenhum. */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile menu toggle — hidden until the nav can no longer fit */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  padding: clamp(56px, 9vw, 130px) 0 44px;
}

.hero-eyebrow { margin-bottom: 26px; }

.hero-title {
  font-size: clamp(38px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: pretty;
  max-width: 16ch;
}

.hero-lead {
  margin-top: 30px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--body);
  max-width: 52ch;
  text-wrap: pretty;
}

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

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  flex: none;
}

.metric {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metric-k {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.metric-v {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- Context (pain) ---------- */

.pain-title {
  margin-top: 14px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 20ch;
  text-wrap: pretty;
}

.pain-list {
  display: flex;
  flex-direction: column;
}

/* Numbered because these really are an enumerated set the copy refers back to */
.pain-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.pain-n {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.pain-t {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pain-d {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body-soft);
  margin-top: 6px;
  max-width: 60ch;
}

.pain-note {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 62ch;
  font-weight: 500;
}

/* ---------- Services ---------- */

/* 1px grid gap over a line-coloured ground draws the hairline rules */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  background: var(--bg);
  padding: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 206px;
  transition: background-color 0.15s ease;
}

.service:hover { background: var(--surface-soft); }

.service-n {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.service-t {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service-d {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body-soft);
  flex: 1;
  text-wrap: pretty;
}

/* ---------- Work ---------- */

.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 44px);
}

.work-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(18px, 2vw, 26px);
}

.work-figure {
  position: relative;
  height: clamp(240px, 26vw, 360px);
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}

.work-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Shown until a real screenshot is dropped into assets/img/ */
.work-figure figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
}

.work-figure.has-image figcaption { display: none; }

/* Estado "prévia em breve": hachura diagonal discreta e rótulo assumido, em
   vez do tracejado que pede uma imagem. Lê como decisão, não como buraco. */
.work-figure--soon {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 10px,
      var(--surface-soft) 10px 20px
    ),
    var(--surface);
}

.work-figure--soon figcaption {
  border: 0;
  gap: 10px;
  flex-direction: column;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-figure--soon figcaption::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.work-body { padding: clamp(4px, 1.5vw, 22px); }

/* Projeto sem imagem: uma coluna só. Sem isso o auto-fit deixaria metade da
   largura vazia e pareceria um card com a imagem quebrada. */
.work-item--text { grid-template-columns: minmax(0, 1fr); }

.work-item--text .work-body { padding: clamp(8px, 1.6vw, 22px); }

.work-item--text .work-d { max-width: 62ch; }

.work-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.work-meta .rule {
  width: 14px;
  height: 1px;
  background: var(--line-strong);
}

.work-t {
  margin-top: 14px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: pretty;
}

.work-d {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-soft);
  max-width: 48ch;
  text-wrap: pretty;
}

.work-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}

.work-tags { margin-top: 20px; }

.work-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 11px;
}

.work-tags .tag { padding: 6px 11px; }

.work-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted-soft);
}

/* ---------- Studio ---------- */

.facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.fact {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.fact-v {
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
}

.studio-title {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 26ch;
  text-wrap: balance;
}

.studio-body {
  margin-top: 24px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--body-strong);
  max-width: 66ch;
  text-wrap: pretty;
}

.studio-body + .studio-body { margin-top: 16px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 5vw, 72px);
}

.contact-title {
  margin-top: 14px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 18ch;
  text-wrap: balance;
}

.contact-lead {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-soft);
  max-width: 44ch;
}

.contact-direct {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-phone {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
}

.contact-hours {
  font-size: 13px;
  color: var(--muted-soft);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  align-content: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field--wide { grid-column: 1 / -1; }

.field input,
.field select {
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.15s ease;
}

.field select { padding: 0 11px; }

.field input:hover,
.field select:hover { border-color: var(--muted); }

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-actions .btn { height: 50px; padding: 0 28px; }

.form-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--live);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-status.is-visible { opacity: 1; }

.form-status--error { color: var(--alert); }

.form-status-link {
  color: inherit;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.form-actions .btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(36px, 4vw, 60px) 0 40px;
  border-top: 1px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-about {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}

.footer-col .microlabel { margin-bottom: 12px; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  align-items: flex-start;
}

.footer-rights {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-soft);
}

/* ---------- Páginas legais ---------- */

.brand--link {
  text-decoration: none;
  color: inherit;
}

.brand--link:hover { opacity: 1; }

.legal {
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
  max-width: 72ch;
}

.legal-head {
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.legal-title {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.legal-updated {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted-soft);
  font-variant-numeric: tabular-nums;
}

.legal-intro {
  margin-top: 20px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--body-strong);
  text-wrap: pretty;
}

.legal-section {
  padding-top: clamp(28px, 3.5vw, 42px);
}

.legal-h {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

.legal-p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

.legal-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.legal-list li::marker { color: var(--accent); }

.legal-noscript {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
}

.site-footer--legal { margin-top: 0; }

/* ---------- Responsive ---------- */

/* The mockup's fractional two-column splits have no mobile form — stack them. */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 40px;
  }

  .hero-title { max-width: 22ch; }

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

  .pain-title { max-width: none; }
}

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

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

  /* Break out of the shell's side padding so the panel spans the viewport */
  .site-nav {
    position: absolute;
    top: 100%;
    left: var(--nav-breakout);
    right: var(--nav-breakout);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--shell-pad) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -18px rgba(14, 14, 16, 0.5);
  }

  .site-nav[hidden] { display: none; }

  .site-nav a:not(.nav-cta) {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-tools {
    margin: 12px 0 0;
    justify-content: flex-start;
  }

  .nav-cta {
    margin-top: 12px;
    height: 46px;
    justify-content: center;
  }

  /* As páginas legais não têm menu hambúrguer, então a nav delas não pode
     virar o painel absoluto — ficaria flutuando aberta sobre o conteúdo. */
  .site-nav--legal {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }

  .site-nav--legal .nav-tools { margin: 0; }

  .site-nav--legal .nav-cta {
    margin-top: 0;
    height: 38px;
  }
}

@media (max-width: 560px) {
  :root { --header-h: 71px; }

  .pain-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .hero-actions .btn { width: 100%; }

  .work-item { padding: 14px; }

  .work-body { padding: 4px 6px 8px; }
}
