# Coalición Floresta > Pragmatic rainforest conservation in Costa Rica. Costa Rica's southern Osa region holds one of the most biodiverse rainforests in the Americas — Coalición Floresta researches, defends, and reports on the legal and ecological systems that protect it. ## Forest & Environmental Law Library A bilingual, full-text-searchable library of 5,900+ Costa Rican legal documents covering forest law, environmental regulation, and constitutional cases — every document enriched with English summaries, structured citation graphs, and cross-references between docs. Built for environmental lawyers, researchers, defenders, and anyone tracing how Costa Rica's environmental jurisprudence actually works. The library is split across four subdomains, by file class: - **`docs.coalicionfloresta.org/`** — pre-rendered bilingual HTML for every document (canonical citation surface, AI-fetchable, no JS required). - **`meta.coalicionfloresta.org/data/legal/...`** — structured JSON: per-doc enrichment records, citation index, anchor index, topic bundles, etc. - **`law.coalicionfloresta.org`** — English-language search and topic browser UI. - **`ley.coalicionfloresta.org`** — Spanish-language search and topic browser UI. The corpus indexes: - **Norms** — laws (leyes), executive decrees (decretos), regulations (reglamentos), municipal regulations, treaties, and the Constitution. Sourced from Costa Rica's official SCIJ legal database (PGR). - **PGR opinions** — non-binding legal opinions (dictámenes, opiniones jurídicas) from the Procuraduría General de la República, often interpreting how a law should apply in a given situation. - **Court decisions** — Constitutional Chamber (Sala IV) and Supreme Court rulings on environmental and procedural matters, sourced from the Poder Judicial's Nexus database. - **Constitutional case summaries** — PGR's structured ASC pages summarizing the procedural history and outcome of constitutional cases. Each document page renders: bilingual title and summary, key Spanish excerpt with English translation, the original Spanish source body (and a chunked English translation for most docs), structured citation graph showing which corpus docs this one cites and which cite it, plus structured external references (votos and norms cited but not yet in the corpus, linked directly to the upstream PGR/Nexus URL). Pagefind indexes both languages for full-text search. ### Crawler-friendly URLs (recommended for AI agents and search engines) These are pre-rendered, fully self-contained HTML / JSON — no JavaScript required. An AI agent with web fetch can read them directly. - **Start here:** — small (~28 KB) entry index for AI agents. Inlines the four access surfaces (topics, crimes, principles, citation-index) with their IDs, names, doc counts, and bundle URLs, plus the 12 lead docs. Pick the entry point that matches what you have (a citation string, a subject area, a tipo penal, a doctrinal principle) and fetch the corresponding bundle. There is no full-corpus file to download; route through these surfaces instead. - — citation lookup for the whole corpus. Maps a normalized citation string (lowercase, punctuation collapsed to spaces) to its doc_id(s); resolve any document by citation here, then fetch its HTML or JSON below. Use the topic / crime / principle bundles first when you have a subject rather than a citation. - Per-document HTML at `https://docs.coalicionfloresta.org/` — bilingual page. Includes title + summary, key Spanish excerpt + English translation, outcome (for cases), pull quotes, citation graph (each cite/cited-by linking to other doc pages), external references, full Spanish source body, and English translation when available. Example: [case-02-003124-0007-co (Voto 2181-2002, definition of healthy environment)](https://docs.coalicionfloresta.org/case-02-003124-0007-co). - Per-document raw JSON at `https://meta.coalicionfloresta.org/data/legal/docs/.json` — same payload as the HTML page plus extras: `keywords_en/es`, `concept_anchors`, `regulations_by_article`, `tier`, `cascade_only`. Example: [case-02-003124-0007-co.json](https://meta.coalicionfloresta.org/data/legal/docs/case-02-003124-0007-co.json). - Topic landing at `https://law.coalicionfloresta.org/legal/topics/` (English UI) or `https://ley.coalicionfloresta.org/legal/topics/` (Spanish UI) — bilingual HTML, every doc in the topic grouped by type (laws → decretos → constitutional decisions → dictámenes → case summaries), each linking to its `docs.coalicionfloresta.org/` page. Available topics: - [forestry-law-7575](https://law.coalicionfloresta.org/legal/topics/forestry-law-7575) — Forestry Law 7575, land-use change, forest definition - [art-50-constitution](https://law.coalicionfloresta.org/legal/topics/art-50-constitution) — Article 50 (right to a healthy environment) - [environmental-law-7554](https://law.coalicionfloresta.org/legal/topics/environmental-law-7554) — Organic Environmental Law - [biodiversity-law-7788](https://law.coalicionfloresta.org/legal/topics/biodiversity-law-7788) — Biodiversity Law - [water-law](https://law.coalicionfloresta.org/legal/topics/water-law) — Water Law and ASADAS - [wildlife-law-7317](https://law.coalicionfloresta.org/legal/topics/wildlife-law-7317) — Wildlife Conservation Law - [soil-conservation-7779](https://law.coalicionfloresta.org/legal/topics/soil-conservation-7779) — Soil Conservation Law - [biological-corridors](https://law.coalicionfloresta.org/legal/topics/biological-corridors) — Biological corridors - [criminal-environmental](https://law.coalicionfloresta.org/legal/topics/criminal-environmental) — Environmental criminal law - [procedural-environmental](https://law.coalicionfloresta.org/legal/topics/procedural-environmental) — Procedural environmental law - [property-and-titling](https://law.coalicionfloresta.org/legal/topics/property-and-titling) — Property and titling - [subdivision-fraccionamiento](https://law.coalicionfloresta.org/legal/topics/subdivision-fraccionamiento) — Subdivision (fraccionamiento) - [landscape-protection](https://law.coalicionfloresta.org/legal/topics/landscape-protection) — Landscape protection - [indigenous-law-6172](https://law.coalicionfloresta.org/legal/topics/indigenous-law-6172) — Indigenous Law 6172 - [archaeological-heritage-6703](https://law.coalicionfloresta.org/legal/topics/archaeological-heritage-6703) — Archaeological heritage - Topic bundle JSON at `https://meta.coalicionfloresta.org/data/legal/topic-bundles/.json` — slim per-topic index (every doc in the topic with citation, title, summary). Example: [forestry-law-7575.json](https://meta.coalicionfloresta.org/data/legal/topic-bundles/forestry-law-7575.json). Typical agent workflow: 1. Fetch [the entry index](https://meta.coalicionfloresta.org/data/legal/llms-index.json) once. Read `_agent_instructions` and the four `entry_points`. 2. Pick the entry point that matches what you have: - **A citation string** ("C-007-2024", "Ley 7575", "Res. 9592-2009", "Voto 4654-2003") → fetch [citation-index.json](https://meta.coalicionfloresta.org/data/legal/citation-index.json), lowercase your query, collapse `.,()` to spaces, look up in `keys`, get back a list of doc_ids. - **A subject area** (forestry, water, indigenous, biodiversity, etc.) → pick the closest topic from the inline list in `entry_points.by_topic.topics`, then fetch its `bundle_url` (`topic-bundles/.json`) for a slim per-doc index of every doc in that topic. - **A tipo penal** (cambio de uso, tala ilegal, caza, invasión de área protegida, etc.) → pick the matching crime from `entry_points.by_crime.crimes`, fetch its bundle for charging cases and doctrine. - **A doctrinal principle** (in dubio pro natura, principio precautorio, no regresividad, etc.) → pick from `entry_points.by_principle.principles`, fetch its bundle. - **Free-text keywords with no obvious topic** → pick the closest topic bundle and scan its summaries; if no topic fits, use the law./ley. search UI (Pagefind full-text), or scan several topic bundles. 3. Once you have a `doc_id`, fetch `https://docs.coalicionfloresta.org/` for the rendered HTML or `https://meta.coalicionfloresta.org/data/legal/docs/.json` for the raw record. ### In-app URLs (require running JavaScript) - [law.coalicionfloresta.org](https://law.coalicionfloresta.org/): English-language landing — topic browser, recently-cited authorities, search entry point - [ley.coalicionfloresta.org](https://ley.coalicionfloresta.org/): Spanish-language landing (mirror of the English UI in Spanish) - `https://law.coalicionfloresta.org/legal/topic?id=` (or ley. for Spanish): Rich topic browser (filters, anchor citations, paginated tail) ## Conservation reporting & analysis - [/blog](https://coalicionfloresta.org/blog): Investigations and field reporting — environmental crime, ecotourism economics, Diquis dam history, Palmar Sur airport opposition, water-law enforcement, biodiversity defense - [/handbook](https://coalicionfloresta.org/handbook): The Forest Defender's Handbook — practical guide for community organizers, environmental attorneys, and citizens documenting forest violations in Costa Rica - [/trees](https://coalicionfloresta.org/trees): Profiles of 180+ Costa Rican tree species with botanical illustrations, ecology notes, and conservation status - [/personas](https://coalicionfloresta.org/personas): Conservation history portraits — Alvaro Ugalde, Mario Boza, Adelaida Chaverri, Christopher Vaughan, and dozens of others who built Costa Rica's national-park system and its scientific institutions - [/airport](https://coalicionfloresta.org/airport): The Palmar Sur airport investigation — why a proposed runway threatens the Térraba-Sierpe wetlands and Boruca/Térraba indigenous territories ## About - [/pages/about](https://coalicionfloresta.org/pages/about): About Coalición Floresta and its work in the Osa - [/pages/contact](https://coalicionfloresta.org/pages/contact): Contact information - [/pages/donate](https://coalicionfloresta.org/pages/donate): Support the work ## Crawling notes The legal library's per-document pages number in the thousands. Each is pre-rendered as static HTML at `https://docs.coalicionfloresta.org/` and the corresponding raw JSON at `https://meta.coalicionfloresta.org/data/legal/docs/.json`. Both surfaces have permissive CORS headers and `robots: index, follow` — search engines and AI agents are welcome to crawl them. When citing this corpus, individual documents should be cited by their canonical citation key visible on each doc page (e.g. "C-007-2024", "Ley 7575", "Res. 9592-2009 Sala Constitucional"). Each doc page links to the original PGR or Nexus source URL, which is the authoritative original. Coalición Floresta's value-add is the structured cross-reference graph and the English translations, not the source text itself.