/* Páginas públicas do AgendaJus (Sobre, Privacidade, Termos): o mesmo visual da página inicial. */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --navy: #102a43;
  --navy-3: #0a1d33;
  --primary: #1f6feb;
  --primary-dark: #1759c4;
  --primary-soft: #eaf2ff;
  --sky: #4f9cff;
  --teal: #1ea7a1;
  --laudo: #1fa774;
  --laudo-dark: #16895d;
  --laudo-soft: #e6f6ef;
  --text: #172b3f;
  --muted: #5b6b7f;
  --border: #e4eaf1;
  --card: #ffffff;
  --surface: #f5f7fb;
  --on-dark: #c9d6e6;
  --radius: 28px;
  --gutter: max(34px, calc((100% - 1320px) / 2));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--card); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.frame { padding: 12px; }

/* topo escuro com o menu */
.hero {
  position: relative; color: #fff; border-radius: var(--radius); overflow: hidden;
  padding: 22px var(--gutter) 64px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(79, 156, 255, .22), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(30, 167, 161, .14), transparent 60%),
    linear-gradient(160deg, #14365c 0%, var(--navy) 45%, var(--navy-3) 100%);
}
.top { display: flex; align-items: center; gap: 24px; position: relative; z-index: 3; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--on-dark); letter-spacing: .02em; margin-top: -3px; }
.links { display: flex; gap: 28px; margin: 0 auto; font-size: 14px; }
.links a { text-decoration: none; color: #dbe6f3; position: relative; padding: 4px 0; }
.links a:hover { color: #fff; }
.links a.on { color: #fff; font-weight: 600; }
.links a.on::before, .links a.on::after { content: ''; position: absolute; left: 50%; width: 14px; height: 2px; margin-left: -7px; background: var(--sky); border-radius: 2px; }
.links a.on::before { top: -4px; }
.links a.on::after { bottom: -4px; }
.actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid rgba(255,255,255,.35); color: #fff; border-radius: 12px; width: 42px; height: 42px; font-size: 20px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn.light { background: #fff; color: var(--navy); }
.btn.wa { background: var(--laudo); color: #fff; }
.btn.wa:hover { background: var(--laudo-dark); }

.page-head { position: relative; z-index: 2; margin-top: 52px; max-width: 820px; }
.page-head .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #a8cdff; font-weight: 600; margin-bottom: 14px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 0 0 14px; }
.page-head h1 em { font-style: normal; background: linear-gradient(90deg, #8cc2ff, #6fd6cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--on-dark); font-size: 17px; margin: 0; max-width: 680px; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 14px; color: var(--on-dark); }
.page-head .meta span { display: inline-flex; align-items: center; gap: 8px; }

/* documentos (Termos e Privacidade): índice ao lado e texto em cartão */
.doc-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; padding: 40px calc(var(--gutter) + 8px) 0; }
.toc { position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px; }
.toc b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; text-decoration: none; padding: 8px 12px; border-radius: 12px; font-size: 14.5px; color: var(--text); transition: background .15s, color .15s; }
.toc a:hover { background: #fff; color: var(--primary); }
.toc .other { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; }
.toc .other a { display: inline; padding: 0; color: var(--primary); font-weight: 600; }
.toc .other a:hover { background: none; text-decoration: underline; }
.doc { background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: clamp(22px, 4vw, 48px); font-size: 16.5px; }
.doc > p:first-child { margin-top: 0; font-size: 17.5px; }
.doc h2 { margin: 38px 0 10px; font-size: 22px; letter-spacing: -.01em; scroll-margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.doc h2::before { content: ''; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--sky), var(--primary-dark)); flex: none; }
.doc h2:first-of-type { margin-top: 30px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--primary); }
.doc .box { background: var(--primary-soft); border: 1px solid #cfe0fb; border-radius: 16px; padding: 16px 18px; }
.doc a { color: var(--primary); }

/* seções (Sobre) */
section { padding: 84px calc(var(--gutter) + 8px) 0; scroll-margin-top: 20px; }
h2.t { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
.sub { color: var(--muted); font-size: 17px; max-width: 700px; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.split p { color: var(--muted); font-size: 16.5px; }
.split p strong { color: var(--text); }
.shot { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(16,42,67,.55), 0 0 0 1px var(--border); transition: transform .2s, box-shadow .2s; }
.shot:hover { transform: translateY(-4px); box-shadow: 0 50px 90px -40px rgba(16,42,67,.6), 0 0 0 1px #b9d1f5; }
.shot .chrome { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #e9eef5; }
.shot .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #c5cfdb; }
.shot .chrome span { margin-left: 10px; font-size: 11px; color: #64748b; background: #fff; border-radius: 6px; padding: 1px 10px; }
.shot img { display: block; width: 100%; height: auto; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; transition: border-color .18s, box-shadow .18s, transform .18s, background .18s; }
.card:hover { border-color: #b9d1f5; box-shadow: 0 22px 44px -28px rgba(16,42,67,.55); transform: translateY(-3px); background: #fff; }
.card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 17.5px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.timeline { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline li { position: relative; padding: 22px; border-radius: 22px; border: 1px solid var(--border); background: #fff; transition: border-color .18s, box-shadow .18s, transform .18s; }
.timeline li:hover { border-color: #b9d1f5; box-shadow: 0 22px 44px -28px rgba(16,42,67,.55); transform: translateY(-3px); }
.timeline b { display: block; font-size: 16px; margin: 10px 0 4px; }
.timeline span { color: var(--muted); font-size: 14.5px; }
.timeline .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; }
.mods { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.mod { border-radius: 26px; padding: 28px 28px 0; color: #fff; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.mod:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(16,42,67,.7); }
.mod.a { background: linear-gradient(150deg, #2a66c4, #173f80 70%, var(--navy)); }
.mod.l { background: linear-gradient(150deg, var(--laudo), #13704d 70%, #0c3b2b); }
.mod .logo { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.mod .logo img { width: 44px; height: 44px; border-radius: 13px; }
.mod p { color: rgba(255,255,255,.84); margin: 12px 0 22px; font-size: 15.5px; }
.mod .shot { margin-top: auto; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px -20px rgba(0,0,0,.6); }
.mod .shot:hover { transform: none; }
.google { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.google .ic { width: 56px; height: 56px; border-radius: 16px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; font-size: 26px; color: var(--primary); }
.google h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.01em; }
.google p { margin: 0; color: var(--muted); font-size: 16px; }
.google p + p { margin-top: 10px; }

.cta { margin: 84px 0 0; border-radius: var(--radius); padding: 54px var(--gutter); text-align: center; color: #fff;
  background: radial-gradient(700px 300px at 50% 0%, rgba(79,156,255,.35), transparent 70%), linear-gradient(160deg, #14365c, var(--navy-3)); }
.cta h2 { color: #fff; margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; }
.cta p { color: var(--on-dark); margin: 0 auto 26px; max-width: 560px; font-size: 17px; }
.cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 26px calc(var(--gutter) + 8px) 12px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--primary); }
footer .brand { color: var(--text); font-size: 16px; }
footer .brand img { width: 30px; height: 30px; border-radius: 9px; }

@media (max-width: 1080px) {
  .doc-wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .cards, .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .links, .actions { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .top { flex-wrap: wrap; }
  .top.open .links, .top.open .actions { display: flex; width: 100%; }
  .top.open .links { flex-direction: column; gap: 4px; margin: 10px 0 0; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
  .top.open .links a { padding: 8px 0; font-size: 16px; }
  .top.open .links a.on::before, .top.open .links a.on::after { display: none; }
  .top.open .actions { flex-direction: column; align-items: stretch; }
  .mods { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .frame { padding: 0; }
  .hero { border-radius: 0 0 26px 26px; padding: 16px 16px 40px; }
  .page-head { margin-top: 30px; }
  .doc-wrap { padding: 24px 16px 0; }
  .doc { border-radius: 20px; font-size: 16px; }
  section { padding: 60px 16px 0; }
  .cards, .timeline { grid-template-columns: 1fr; }
  .google { grid-template-columns: 1fr; }
  .cta { margin: 60px 16px 0; padding: 40px 20px; border-radius: 26px; }
  footer { padding: 26px 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .shot, .mod, .timeline li { transition: none; }
}
