

/* Importa variables y componentes UI */
@import url('variables.css');

/* ===========================
   HEADER (self-contained)
   — SolucionPH
   — Dependencias mínimas: tokens + utilidades
   =========================== */

/* ===== Utilidades mínimas que usa el header ===== */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #000; color: #fff; padding: .5rem; border-radius: 8px; }

/* ===========================
   HEADER — layout en 3 slots
   =========================== */
.site-header {
  position: sticky; 
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  overflow: visible; /* Permitir que el menú desplegable se muestre */
}

.header__wrap{
  position: relative;              /* referencia p/ botón móvil */
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  height: 72px; 
  gap: .5rem;
  overflow: visible; /* Permitir que el botón hamburguesa se vea */
}

/* Slots rojo/verde/azul */
.header__slot{ display: flex; align-items: center; }
.header__slot--left  { flex: 0 0 auto; }   /* logo */
.header__slot--center{ 
  flex: 1 1 auto; 
  min-width: 0; 
  justify-content: center;
  overflow: hidden; /* Prevenir que el nav se desborde */
} /* nav centrado */
.header__slot--right { flex: 0 0 auto; }   /* switch + idioma */

/* Marca/Logo */
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--text);
}
.brand .accent { color: var(--brand); }

/* Logo alterno por tema */
.logo{ inline-size: 36px; block-size: 36px; display: inline-block; }
/* Default light */
.logo--light{ display: inline-block; }
.logo--dark { display: none; }
/* Dark por data-theme en <html> */
:root[data-theme="dark"] .logo--light{ display: none; }
:root[data-theme="dark"] .logo--dark { display: inline-block; }

/* ===========================
   Navegación principal
   — centrada en desktop, colapsable en móvil
   =========================== */
.site-nav ul {
  list-style: none; display: flex; gap: 1rem;
  margin: 0; padding: 0;
}
.site-nav a {
  padding: .5rem .75rem; border-radius: 8px;
}
.site-nav a.active, .site-nav a:hover {
  background: var(--bg-alt); text-decoration: none;
}

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
  display: none; border: 1px solid var(--border);
  background: transparent; border-radius: 8px;
  padding: .4rem .5rem;
}
.nav-toggle__bar {
  display: block; width: 22px; height: 2px; background: var(--text);
  box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text);
}

/* Móvil: reorden y dropdown */
@media (max-width: 900px) {
  .nav-toggle { 
    display: inline-flex !important;
    position: absolute !important;
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: var(--bg-alt) !important;
  }

  /* reorden slots: logo centrado */
  .header__slot--center { 
    order: 1; 
    flex: 0 0 auto; 
    position: relative;
    width: auto;
    min-width: 0;
    overflow: visible;
  }
  .header__slot--left   { 
    order: 2; 
    flex: 1 1 auto; 
    justify-content: center; 
    min-width: 0;
    padding-left: 3rem; /* Espacio para el botón hamburguesa */
  }
  .header__slot--right  { 
    order: 3; 
    flex: 0 0 auto;
  }

  /* Asegurar que solo se vea el botón hamburguesa, no los enlaces */
  .header__slot--center > .site-nav {
    position: fixed !important;
  }
  
  /* Posiciona la hamburguesa a la altura del logo */
  .nav-toggle {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
  }

  /* menú desplegable bajo el header - completamente oculto cuando está cerrado */
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg); 
    border-bottom: 1px solid var(--border);
    display: none !important;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  /* cuando tu JS ponga aria-expanded="true" en <nav> */
  .site-nav[aria-expanded="true"] { 
    display: block !important;
  }
  
  .site-nav a {
    position: relative;
    z-index: 101;
  }

  .site-nav ul { 
    flex-direction: column; 
    padding: 1rem; 
    margin: 0;
    gap: 0.5rem;
    list-style: none;
  }
  
  .site-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .site-nav a {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
  }
  
  /* Asegurar que el nav no se muestre cuando está dentro del header en móvil */
  .header__wrap .site-nav:not([aria-expanded="true"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
  }
}

/* ===========================
   Switch de tema (sol/luna)
   =========================== */
.theme-switch{
  --h: 28px; 
  --w: 64px; 
  --pad: 4px; 
  --thumb: calc(var(--h) - var(--pad) * 2);
  position: relative; 
  display: inline-flex; 
  align-items: center;
  cursor: pointer; 
  user-select: none;
  height: 28px;
}
.theme-switch input{ position: absolute; inset: 0; opacity: 0; }
.theme-switch__sr{ position: absolute; left: -9999px; }

/* pista */
.theme-switch__track{
  display: inline-grid; grid-auto-flow: column; align-items: center; justify-content: space-between;
  width: var(--w); height: var(--h); padding: 0 var(--pad);
  border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); box-shadow: var(--shadow);
  position: relative;
}
.theme-switch__icon{ font-size: 0.9rem; line-height: 1; color: var(--muted); }

/* thumb */
.theme-switch__track::after{
  content: ""; position: absolute; top: 50%; left: var(--pad);
  width: var(--thumb); height: var(--thumb); transform: translateY(-50%);
  border-radius: 50%;
  background: color-mix(in oklab, var(--bg) 70%, #000 30%);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: left .25s ease, background .25s ease, box-shadow .25s ease;
}

/* checked = modo oscuro */
.theme-switch input:checked + .theme-switch__track{
  background: color-mix(in oklab, var(--bg-alt) 60%, #000 40%);
}
.theme-switch input:checked + .theme-switch__track::after{
  left: calc(var(--w) - var(--pad) - var(--thumb));
  background: color-mix(in oklab, var(--bg) 30%, #000 70%);
}

/* ===========================
   Language dropdown compacto
   =========================== */
.lang-menu__list[hidden]{ display: none !important; pointer-events: none; }
.lang-menu{
  position:relative; 
  z-index:99999; 
  display:inline-block; 
  font-size:.95rem;
}
.lang-menu__btn{
  display:inline-flex; 
  align-items:center; 
  gap:.35rem;
  height:28px; 
  padding:0 .65rem;
  border:1px solid var(--border); 
  border-radius:999px;
  background:var(--bg-alt); 
  color:var(--text); 
  font-weight:600; 
  cursor:pointer;
  transition: background .2s, border-color .2s;
  position:relative;
  z-index:99999;
  box-sizing:border-box;
  line-height:1;
}
.lang-menu__btn:hover{
  background:color-mix(in oklab, var(--bg-alt) 85%, var(--brand) 15%);
  border-color:var(--brand);
}
.lang-menu__chev{ opacity:.7; }

.lang-menu__list{
  position:fixed;
  min-width:180px;
  background:var(--bg-alt); 
  color:var(--text);
  border:1px solid var(--border); 
  border-radius:12px; 
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
  padding:.35rem; 
  display:grid; 
  gap:.25rem;
  z-index:99999;
}
.lang-menu__item{
  text-align:left; 
  width:100%; 
  padding:.5rem .6rem;
  border-radius:8px; 
  border:1px solid transparent;
  background:transparent; 
  color:inherit; 
  cursor:pointer; 
  font-weight:600;
  position:relative;
  z-index:99999;
}
.lang-menu__item[aria-current="true"]{ background:var(--brand); color:#fff; }
.lang-menu__item:hover{
  background:color-mix(in oklab, var(--bg-alt) 80%, var(--brand) 20%);
}

@media (max-width:900px){
  .lang-menu{ font-size:.9rem; }
  .lang-menu__btn{ 
    height:28px; 
    padding:0 .6rem; 
  }
  .theme-switch{
    --h: 28px;
    height: 28px;
  }
}

/* (Opcional) agrupar acciones del slot derecho */
.header__actions,
.header__slot--right{ display:inline-flex; align-items:center; gap:.5rem; }






/* INICIO BLOQUE: FOOTER — ajustes de layout y listas */

   
.site-footer .footer__top{ row-gap: clamp(1rem, 2vw, 1.5rem);
}

.site-footer .footer__heading{ margin: .5rem 0 .25rem; font-weight: 800; color: var(--text);
}

.site-footer .footer-list{ margin: 0 0 .75rem 0; padding: 0; list-style: none;
}
.site-footer .footer-list li{ margin: .25rem 0; color: var(--muted);
}
.site-footer .footer-list a{ color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease;
}
.site-footer .footer-list a:hover{ color: var(--brand); border-color: var(--brand);
}

/* Grid: 4→2→1 columnas (si ya tienes utilidades grid--X, se respetan) */
.grid.grid--4{ display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 1024px){
  .grid.grid--4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .grid.grid--4{ grid-template-columns: 1fr; }
}

/* Línea final del footer */
.footer__legal{ display: flex; justify-content: space-between; align-items: center; padding-top: .8rem; margin-top: clamp(1rem, 2vw, 1.5rem); border-top: 1px solid var(--border);
}
.footer__legal small{ color: var(--muted); }
/* FIN BLOQUE: FOOTER */

/* ===========================
   ESTILOS PARA LEY-675.HTML
   Mejoras de tipografía y diseño
   =========================== */

/* Asegurar que el footer en ley-675 se vea igual que en otras páginas */
.pp-container ~ .site-footer,
main ~ .site-footer {
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

.pp-container ~ .site-footer .footer__top,
main ~ .site-footer .footer__top {
  padding-top: 0;
  margin-top: 0;
  padding-bottom: 0;
}

.pp-container ~ .site-footer .footer__legal,
main ~ .site-footer .footer__legal {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding-top: 0.8rem;
}

/* Smooth scroll para toda la página - solo cuando el usuario hace clic */
html {
  scroll-behavior: smooth;
}

/* Prevenir scroll automático en el TOC */
.pp-toc {
  scroll-behavior: auto;
}

/* Mejorar scroll para secciones de ley */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  
  .pp-toc {
    scroll-behavior: auto;
  }
}

/* Layout principal de la página */
.pp-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem 1rem;
  min-height: calc(100vh - 72px);
}

.pp-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* TOC lateral */
.pp-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--bg-alt);
  /* Scrollbar independiente del body - NO auto-scroll */
  scrollbar-gutter: stable;
  /* Prevenir scroll automático */
  scroll-behavior: auto;
}

.pp-toc::-webkit-scrollbar {
  width: 8px;
}

.pp-toc::-webkit-scrollbar-track {
  background: var(--bg-alt);
  border-radius: 4px;
  margin: 0.5rem 0;
}

.pp-toc::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
  border: 2px solid var(--bg-alt);
  min-height: 40px;
}

.pp-toc::-webkit-scrollbar-thumb:hover {
  background: var(--brand-600);
  border-color: var(--bg-alt);
}

:root[data-theme="dark"] .pp-toc::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--brand) 80%, var(--bg-alt) 20%);
  border: 2px solid var(--bg-alt);
}

:root[data-theme="dark"] .pp-toc::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

.pp-toc .pp-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"] .pp-toc .pp-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: color-mix(in oklab, var(--bg-alt) 98%, transparent 2%);
  border-color: color-mix(in oklab, var(--border) 90%, transparent 10%);
}

.pp-toc__title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand);
}

.pp-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pp-toc li {
  margin: 0.5rem 0;
}

.pp-toc a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  border-left: 3px solid transparent;
}

.pp-toc a:hover {
  background: var(--bg);
  color: var(--brand);
  padding-left: 1rem;
  border-left-color: var(--brand);
}

.pp-toc a:active,
.pp-toc a.active {
  background: color-mix(in oklab, var(--brand) 20%, var(--bg-alt) 80%);
  color: var(--brand);
  font-weight: 700;
  border-left-color: var(--brand);
  border-left-width: 4px;
  padding-left: 1rem;
  box-shadow: 0 2px 8px color-mix(in oklab, var(--brand) 25%, transparent 75%);
}

:root[data-theme="dark"] .pp-toc a.active {
  background: color-mix(in oklab, var(--brand) 25%, var(--bg-alt) 75%);
  border-left-color: var(--brand);
  box-shadow: 0 2px 12px color-mix(in oklab, var(--brand) 40%, transparent 60%);
  color: var(--brand);
}

/* Contenido principal */
.pp-main {
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

:root[data-theme="dark"] .pp-main {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: color-mix(in oklab, var(--bg) 99%, transparent 1%);
  border-color: color-mix(in oklab, var(--border) 90%, transparent 10%);
}

@media (max-width: 900px) {
  .pp-main {
    padding: 1.5rem;
  }
}

.pp-intro {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"] .pp-intro {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: color-mix(in oklab, var(--bg-alt) 98%, transparent 2%);
}

.pp-intro strong {
  color: var(--brand);
  font-weight: 700;
}

.pp-intro em {
  font-style: italic;
  color: var(--muted);
}

/* Tarjeta */
.pp-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pp-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: color-mix(in oklab, var(--border) 80%, var(--brand) 20%);
}

:root[data-theme="dark"] .pp-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: color-mix(in oklab, var(--bg-alt) 98%, transparent 2%);
  border-color: color-mix(in oklab, var(--border) 90%, transparent 10%);
}

:root[data-theme="dark"] .pp-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: color-mix(in oklab, var(--border) 70%, var(--brand) 30%);
}

/* Secciones de ley */
.pp-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
  scroll-padding-top: 100px;
  position: relative;
}

.pp-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 1px;
  visibility: hidden;
}

/* Indicador de capítulo activo */
.pp-section:target {
  animation: highlight-section 1s ease;
}

@keyframes highlight-section {
  0% {
    background: color-mix(in oklab, var(--brand) 20%, var(--bg) 80%);
  }
  100% {
    background: transparent;
  }
}

.law-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--brand);
  position: static;
  background: var(--bg);
  z-index: 10;
  padding-top: 1rem;
}

:root[data-theme="dark"] .law-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: color-mix(in oklab, var(--bg) 95%, transparent 5%);
}

.law-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.law-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.law-article {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.law-article:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(2px);
}

:root[data-theme="dark"] .law-article {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: color-mix(in oklab, var(--bg-alt) 98%, var(--brand) 2%);
}

:root[data-theme="dark"] .law-article:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.law-article__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem 0;
}

.law-article__body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.law-article__body p {
  margin: 1rem 0;
}

.law-article__body small {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Listas de principios */
.law-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.law-list li {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg);
  border-radius: 6px;
  line-height: 1.7;
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.law-list li:hover {
  background: color-mix(in oklab, var(--bg) 95%, var(--brand) 5%);
  border-color: color-mix(in oklab, var(--border) 80%, var(--brand) 20%);
}

:root[data-theme="dark"] .law-list li {
  background: color-mix(in oklab, var(--bg) 98%, transparent 2%);
  border-color: color-mix(in oklab, var(--border) 90%, transparent 10%);
}

.law-list li strong {
  display: block;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* Definiciones */
.law-defs {
  margin: 1.5rem 0;
}

.law-defs dt {
  font-weight: 700;
  color: var(--brand);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.law-defs dd {
  margin-left: 0;
  padding-left: 1.5rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
}

.law-defs dd small {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  display: block;
  margin-top: 0.5rem;
}

/* Navegación de ley */
.law-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.law-nav__link {
  padding: 0.75rem 1.25rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 200px;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-prefix {
  font-weight: 700;
}

.nav-chapter {
  flex: 1;
  text-align: left;
}

.law-nav__link:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in oklab, var(--brand) 40%, transparent 60%);
  text-decoration: none;
}

:root[data-theme="dark"] .law-nav__link {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: color-mix(in oklab, var(--brand) 85%, var(--bg-alt) 15%);
}

:root[data-theme="dark"] .law-nav__link:hover {
  box-shadow: 0 4px 12px color-mix(in oklab, var(--brand) 50%, transparent 50%);
  background: var(--brand);
}

/* Responsive */
@media (max-width: 900px) {
  .pp-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pp-toc {
    position: static;
    max-height: none;
    overflow-y: visible;
    order: -1; /* TOC primero en móvil */
  }
  
  .pp-toc .pp-card {
    margin-bottom: 1.5rem;
  }
  
  .pp-main {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .law-title {
    font-size: 1.5rem;
  }
  
  .law-article__title {
    font-size: 1.15rem;
  }
  
  .law-article {
    padding: 1rem;
  }
  
  .law-header {
    position: static;
    top: auto;
    backdrop-filter: none;
    padding-top: 0;
    margin-top: 0;
  }
  
  .pp-section {
    scroll-margin-top: 20px;
    scroll-padding-top: 20px;
    margin-bottom: 2rem;
  }
  
  .law-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .law-nav__link {
    width: 100%;
    text-align: center;
    min-width: auto;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .nav-chapter {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .pp-container {
    padding: 1rem 0.75rem 2rem 0.75rem;
  }
  
  .pp-toc__title {
    font-size: 1rem;
  }
  
  .pp-toc a {
    font-size: 0.85rem;
    padding: 0.45rem 0.65rem;
  }
  
  .pp-intro {
    padding: 1rem;
    font-size: 0.95rem;
  }
}