body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #333;
}

.hero {
    background-color: #0a3b4f;
    color: white;
    padding: 80px 20px;
}

.search-box {
     max-width: 600px;
     margin: auto;
}

.search-box input.form-control {
     border: none;
     box-shadow: none;
}

.search-box .btn {
     background-color: #0072bb;
     color: white;
     border: none;
}

.search-box .btn:hover {
    background-color: #005d99;
}

.text-white-50 {
    color: #99cde2 !important;
}

.card-icon {
    font-size: 2.5rem;
    color: #0072bb;
}

.card-text {
    color: #555;
}

.accordion-button:not(.collapsed) {
    background-color: #e9f3f7;
    color: #0a3b4f;
}

footer {
    background-color: #f8f9fa;
}

.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.hover-bg:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.rounded-top {
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

.logoOriginal{
    height:auto;
    margin-top:15px;
    margin-bottom:20px;
}

.LawsLinks {
    list-style: none;
    text-decoration:none;

}

.cardLaw{
   color:#0072bb;
}

.cardLaw:hover{
   color:#188ebc;
}

.law-doc-container {
    max-width: 850px;
    margin: 30px auto;
    padding: 30px 30px; /* padding mais suave para evitar quebras */
    background-color: #ffffff;
    border-radius: 4px;
    /* box-shadow pode dar problema no PDF, remover ou neutralizar */
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    page-break-inside: avoid; /* evita quebra dentro do container */
}

.law-doc-container h2 {
    text-align: center;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 15px;
    page-break-after: avoid;
}

.law-meta {
    text-align: center;
    margin-bottom: 25px;
    page-break-after: avoid;
}

.EmentaLaws{
    margin-left:20%;
    font-weight: 500;
}

.law-meta p {
    margin: 3px 0;
}

.law-structure {
    margin-bottom: 25px;
    page-break-inside: avoid;
}

.law-structure p {
    text-align: justify;
    margin-bottom: 12px;
    orphans: 3;
    widows: 3;
}

.law-structure .children {
    margin-left: 30px;
    margin-top: 10px;
}

.brasao {
    display: block;
    margin: 0 auto 25px auto;
    max-height: 120px;
    page-break-inside: avoid;
}

.law-signature {
    text-align: center;
    margin-top: 50px;
    page-break-before: always;
}

.law-signature p {
    margin-bottom: 5px;
}

.law-signature strong {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
}

.law-toolbar {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 15px 0;
    gap: 10px;
}

/* A toolbar é escondida no PDF/print */
@media print {
    body, html {
        margin: 0;
        padding: 0;
    }

    .law-toolbar,
    .app-header,
    .navbar {
        display: none !important;
    }

    .law-doc-container {
        margin: 0 auto !important;
        padding: 0 30px;
        box-shadow: none;
    }

    img {
        margin: 0 !important;
        padding: 0 !important;
        display: block;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


.text-obs {
    font-size: 0.95rem;
    color: #b20000;
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    page-break-inside: avoid;
}

.content-text {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.tablepocp {
    font-size: 14px !important;
}

body > div.law-doc-container > div > p > span{
      font-size: 14px !important;
}

/* efeito hover suave no card */
.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(13, 110, 253, 0.3);
}

/* link remove underline ao passar o mouse */
a.text-decoration-none:hover {
    text-decoration: none;
 }

#buttonHome {
    background-color: #1e5a7e;
    color: #fff;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    margin-left: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    display: inline-block;
}

#buttonHome:hover {
    background-color: #014166;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

#buttonHome:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media(max-width: 768px) {
    #buttonHome {
        width: 100%;
        margin-top: 10px;
    }
}

#cookieBanner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #1e5a7e;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    display: none;
    z-index: 9999;
    max-width: 600px;
    margin: auto;
    animation: fadeIn 0.5s ease-in-out;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#cookieBanner a {
    color: #ffd700;
    text-decoration: underline;
}

#acceptCookies {
    background-color: #ffd700;
    color: #1e5a7e;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#acceptCookies:hover {
    background-color: #e0c200;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.table-responsive {
  width: 100%;
  overflow-x: auto; /* scroll horizontal se precisar */
  -webkit-overflow-scrolling: touch; /* suaviza o scroll no iOS */
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
  min-width: 600px; /* evita que a tabela fique muito estreita */
}

th, td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
  white-space: nowrap; /* evita quebra de texto que bagunça */
}

th {
  background-color: #f4f4f4;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #fafafa;
}

tr:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}

.law-doc-container {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
}


.structure-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;

}

.structure-list.level-1>.structure-item-indented {
     margin-top: 4px;


}

.structure-list.level-2>.structure-item-indented {
    padding-left: 24px;
    margin-top: 4px;

}

.structure-list.level-3>.structure-item-indented {
    padding-left: 48px;
     margin-top: 8px;

}

.structure-list.level-4>.structure-item-indented {
    padding-left: 72px;
     margin-top: 6px;

}


.structure-item-centered {
    text-align: center;
    margin-bottom: 15px;

}

.centered-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.centered-content {
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


.structure-item-indented {
    line-height: 1.6;

}

.indented-line {
    display: flex;
    align-items: baseline;
    gap: 5px;
    text-align: justify;
}

.structure-abrev,
.structure-order {
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;

}

.structure-content {
    flex-grow: 1;
    text-align: justify;

}


.structure-content a {
    color: blue;
    text-decoration: underline;
}


del {
    text-decoration: line-through;
    color: #888;
}



.fw-bold {
    font-weight: bold;
}
