/* Desenvolvido por: DriveWeb | Rodrigo Soares | © DriveWeb — Todos os direitos reservados · https://driveweb.pt · contacto@driveweb.pt · WhatsApp +351 913 671 493 */

html {
  box-sizing: border-box;
  background: var(--bg);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  padding: 0;
}

body.dwt.dwt-legal {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body, system-ui, sans-serif);
}

.dwt-legal a {
  color: var(--dwt-acc);
}

.lg-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  max-width: 860px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.lg-top > a:first-child {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--disp, var(--body, system-ui, sans-serif));
  font-weight: 700;
  text-decoration: none;
}

.lg-top .brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
}

.lg-top .brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lg-top > a:last-child {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}

.lg-top > a:last-child:hover,
.lg-top > a:last-child:focus-visible {
  border-color: var(--dwt-acc);
  color: var(--dwt-acc);
}

.lg-nav {
  display: flex;
  width: 100%;
  max-width: 860px;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 16px 16px 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.lg-nav::-webkit-scrollbar {
  display: none;
}

.lg-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.lg-nav a:hover,
.lg-nav a:focus-visible {
  border-color: var(--dwt-acc);
  color: var(--dwt-acc);
}

.lg-nav a.on,
.lg-nav a[aria-current="page"] {
  border-color: var(--dwt-acc);
  background: var(--dwt-acc);
  color: var(--dwt-acc-ink);
}

.lg-doc {
  width: calc(100% - 32px);
  max-width: 860px;
  margin: 0 auto;
  padding: 28px;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.lg-doc h1,
.lg-doc h2,
.lg-doc h3 {
  color: var(--text);
  font-family: var(--disp, var(--body, system-ui, sans-serif));
  line-height: 1.25;
}

.lg-doc h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
}

.lg-doc h2 {
  margin: 32px 0 12px;
  font-size: 28px;
}

.lg-doc h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}

.lg-doc h1:first-child,
.lg-doc h2:first-child,
.lg-doc h3:first-child {
  margin-top: 0;
}

.lg-doc p,
.lg-doc li {
  color: var(--text);
}

.lg-doc p {
  margin: 0 0 16px;
}

.lg-doc > p:first-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.lg-doc ul,
.lg-doc ol {
  margin: 0 0 20px;
  padding-inline-start: 1.35em;
}

.lg-doc li + li {
  margin-top: 6px;
}

.lg-doc a {
  overflow-wrap: anywhere;
  color: var(--dwt-acc);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.lg-doc a:hover,
.lg-doc a:focus-visible {
  color: var(--dwt-acc-ink);
}

.lg-doc strong {
  color: var(--text);
}

.lg-doc hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.lg-doc blockquote {
  margin: 24px 0;
  padding: 12px 16px;
  border-inline-start: 3px solid var(--dwt-acc);
  background: var(--bg);
  color: var(--muted);
}

.lg-doc table {
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-collapse: collapse;
  border-spacing: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.lg-doc thead {
  background: var(--panel-2, var(--panel));
}

.lg-doc th,
.lg-doc td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.lg-doc th {
  color: var(--text);
  font-weight: 700;
}

.lg-foot {
  width: calc(100% - 32px);
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.lg-foot a {
  color: var(--dwt-acc);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 600px) {
  .lg-top {
    gap: 10px;
    padding: 12px 16px;
  }

  .lg-top > a:last-child {
    padding-inline: 11px;
  }

  .lg-nav {
    padding-top: 12px;
  }

  .lg-doc {
    width: calc(100% - 32px);
    padding: 16px;
    border-radius: 16px;
  }

  .lg-doc table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .lg-doc th,
  .lg-doc td {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-nav {
    scroll-behavior: auto;
  }
}

.lg-doc table th,
.lg-doc table td {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.lg-doc table th:not(:first-child),
.lg-doc table td:not(:first-child) {
  white-space: nowrap;
}

.lg-doc table td:first-child {
  min-width: 160px;
}
